nyctergatis.com

Contact

Projects
Sysquake Remote Live
NME
PDF
Hike
Sudoku
GifBuilder
jpeglib for Palm OS
MySQL Client
Cross-GCC for Mac OS
NMEGtkTest.c File Reference

NME viewer for GTK+ 2 (test of NMEStyle). More...

#include <stdlib.h>
#include <stdio.h>
#include <gtk/gtk.h>
#include "NME.h"
#include "NMEStyle.h"
#include "NMEGtk.h"

Go to the source code of this file.

Functions

static void destroy (GtkWidget *widget, gpointer data)
 Quit GTK+ event loop.
static void linkFun (NMEConstText link, void *data)
 Link callback.
static void makeWindow (char const *title, NMEConstText input, NMEInt inputLen)
 Create a text window and fill it with read-only styled text converted from NME input.
int main (int argc, char **argv)
 Main function (optional argument: path of text file with NME markup; else stdin is read).

Detailed Description

NME viewer for GTK+ 2 (test of NMEStyle).

Author:
Yves Piguet.

Definition in file NMEGtkTest.c.


Function Documentation

int main ( int  argc,
char **  argv 
)

Main function (optional argument: path of text file with NME markup; else stdin is read).

Parameters:
[in]argcnumber of arguments, including application name
[in]argvarray of arguments
Returns:
0 for success, nonzero for error

Definition at line 87 of file NMEGtkTest.c.

static void makeWindow ( char const *  title,
NMEConstText  input,
NMEInt  inputLen 
) [static]

Create a text window and fill it with read-only styled text converted from NME input.

Parameters:
[in]titlewindow title
[in]inputNME text with NME markup (UTF-8)
[in]inputLenlength in input in bytes

Definition at line 38 of file NMEGtkTest.c.

Generated by Doxygen.
Copyright 2007-2013, Yves Piguet.
All rights reserved.