Element widget properties

FIXME : Image map
These are the element widget properties of Gwf. Elements are those definitions in the structure definiton of the widget besides the parent widget. A GtkToggleButton has for example a element called active (a guint), which indicates wheter the button is pressed or depressed.
Click on one of the parameter entries to go to the description of that option.

Elements list

This list shows all elements of the current project, and its properties.

Top of the page

Type

This entry sets the type of an element. For example, there is an element "guint active", the type is "guint".

Top of the page

Name

This entry sets the name of an element. For example, there is an element "guint active", the name is "active".

Top of the page

Initial value

This entry sets the intial value of an element. This value is set on creation of the widget.

Top of the page

Create set function

This controls wheter the program should create a set function for this element.

Top of the page

Allocate set value

This controls wheter the value that is assigned to the element should be allocated. For example, a element with type "gint" does not need to be allocated, a "gchar*" (a string) however does.

Top of the page

Allocation [set] code

Here you can type the code which assigns the value given to the set-function to the element. For example, the code for allocation a gchar* could be:

g_free(widget->elem);
widget->elem = g_strdup(elem);


Widget is here the name of the widget variabel, elem is the element in this widget.

Top of the page

Create get function

This controls wheter the program should create a get function for this element.

Top of the page

Allocate get value

This controls wheter the value that is returned should be allocated. For example, a element with type "gint" does not need to be allocated, a "gchar*" (a string) however can be allocated.

Top of the page

Allocation [get] code

Here you can type the code which allocates the returned value. For example, the code for allocation a gchar* could be:

return g_strdup(widget->elem);

Widget is here the name of the widget variabel, elem is the element in this widget.

Top of the page

Add (button)

This button adds a new element to the widget. If an element with the same name exists, nothing happens, as the name should be unique.

Top of the page

Update (button)

This button updates the contents of the currently selected element.

Top of the page

Delete (button)

This button deletes the currently selected element.

Top of the page

Clear (button)

This button clears all entry fields and sets all checkbuttons to disabled.

Top of the page