Top | ![]() |
![]() |
![]() |
![]() |
ToolOption * | tool_option_new () |
void | tool_option_free () |
ToolOption * | tool_option_copy () |
const gchar * | tool_option_getName () |
const gchar * | tool_option_getLabel () |
GType | tool_option_getType () |
GValue * | tool_option_getValue () |
gchar * | tool_option_getValueAndLabel () |
This wrapper is a simple way to store integers, floating point values or booleans in a table, accessing with a string key and remembering their types.
ToolOption * tool_option_new (const gchar *name
,const gchar *label
,GType g_type
);
Create a new Option using the name as identifier.
ToolOption *
tool_option_copy (const ToolOption *from
);
Create a new ToolOption using the values from option from
.
const gchar *
tool_option_getName (ToolOption *option
);
Get the name of the option.
const gchar *
tool_option_getLabel (ToolOption *option
);
Get the label of the option.
GValue *
tool_option_getValue (ToolOption *option
);
Get the location of the storage for the option.
gchar *
tool_option_getValueAndLabel (ToolOption *option
);
This method returns a string with the value followed by the label in parenthesis and with Pango markup for smaller font.
typedef struct _ToolOption ToolOption;
An opaque structure to store values. It is equivalent to GValue but with a name and a label.