NMEGtkTest.c File Reference
Detailed Description
NME viewer for GTK+ 2 (test of
NMEStyle).
- Author:
- Yves Piguet. Copyright 2007-2008, Yves Piguet.
Definition in file NMEGtkTest.c.
#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).
|
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] | argc | number of arguments, including application name |
| [in] | argv | array of arguments |
- Returns:
- 0 for success, nonzero for error
Definition at line 84 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] | title | window title |
| [in] | input | NME text with NME markup (UTF-8) |
| [in] | inputLen | length in input in bytes |
Definition at line 35 of file NMEGtkTest.c.