Function

Gntutil_parse_widgets

Declaration [src]

void
gnt_util_parse_widgets (
  const char* string,
  int num,
  ...
)

Description [src]

Parse widgets from an XML description. For example,

GntWidget win, button; gnt_util_parse_widgets(” * <vwindow id=‘0’ fill=‘0’ align=‘2’> * <label>This is a test</label> * <button id=‘1’>OK</button> * </vwindow>”, w>”, 2, &win, &button);

This function is not directly available to language bindings.

Parameters

string

Type: const char*

The XML string.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
num

Type: int

The number of widgets to return.

...

Type: 

A list of GntWidget** pointers to place the result.