gtk.Settings.Settings Class Reference

Inheritance diagram for gtk.Settings.Settings:

gobject.ObjectG.ObjectG List of all members.

Public Member Functions

GtkSettingsgetSettingsStruct ()
 this (GtkSettings *gtkSettings)
 Sets our main struct and passes it to the parent class.
void setPropertyValue (char[] name, GtkSettingsValue *svalue)
 settings: name: svalue:
void setStringProperty (char[] name, char[] vString, char[] origin)
 settings: name: v_string: origin:
void setLongProperty (char[] name, int vLong, char[] origin)
 settings: name: v_long: origin:
void setDoubleProperty (char[] name, double vDouble, char[] origin)
 settings: name: v_double: origin: Property Details The "color-hash" property "color-hash" GHashTable : Read Holds a hash table representation of the gtk-color-scheme setting, mapping color names to GdkColors.

Static Public Member Functions

static Settings getDefault ()
 Gets the GtkSettings object for the default GDK screen, creating it if necessary.
static Settings getForScreen (Screen screen)
 Gets the GtkSettings object for screen, creating it if necessary.
static void installProperty (GParamSpec *pspec)
 pspec:
static void installPropertyParser (GParamSpec *pspec, GtkRcPropertyParser parser)
 pspec: parser:
static int rcPropertyParseColor (GParamSpec *pspec, StringG gstring, Value propertyValue)
 A GtkRcPropertyParser for use with gtk_settings_install_property_parser() or gtk_widget_class_install_style_property_parser() which parses a color given either by its name or in the form { red, green, blue } where red, green and blue are integers between 0 and 65535 or floating-point numbers between 0 and 1.
static int rcPropertyParseEnum (GParamSpec *pspec, StringG gstring, Value propertyValue)
 A GtkRcPropertyParser for use with gtk_settings_install_property_parser() or gtk_widget_class_install_style_property_parser() which parses a single enumeration value.
static int rcPropertyParseFlags (GParamSpec *pspec, StringG gstring, Value propertyValue)
 A GtkRcPropertyParser for use with gtk_settings_install_property_parser() or gtk_widget_class_install_style_property_parser() which parses flags.
static int rcPropertyParseRequisition (GParamSpec *pspec, StringG gstring, Value propertyValue)
 A GtkRcPropertyParser for use with gtk_settings_install_property_parser() or gtk_widget_class_install_style_property_parser() which parses a requisition in the form "{ width, height }" for integers width and height.
static int rcPropertyParseBorder (GParamSpec *pspec, StringG gstring, Value propertyValue)
 A GtkRcPropertyParser for use with gtk_settings_install_property_parser() or gtk_widget_class_install_style_property_parser() which parses borders in the form "{ left, right, top, bottom }" for integers left, right, top and bottom.

Protected Member Functions

void * getStruct ()
 the main Gtk struct as a void*

Protected Attributes

GtkSettingsgtkSettings
 the main Gtk struct

Constructor & Destructor Documentation

gtk.Settings.Settings.this ( GtkSettings gtkSettings  ) 

Sets our main struct and passes it to the parent class.


Member Function Documentation

static Settings gtk.Settings.Settings.getDefault (  )  [static]

Gets the GtkSettings object for the default GDK screen, creating it if necessary.

See gtk_settings_get_for_screen(). Returns: a GtkSettings object. If there is no default screen, then returns NULL.

static Settings gtk.Settings.Settings.getForScreen ( Screen  screen  )  [static]

Gets the GtkSettings object for screen, creating it if necessary.

screen: a GdkScreen. Returns: a GtkSettings object. Since 2.2

GtkSettings* gtk.Settings.Settings.getSettingsStruct (  ) 

void* gtk.Settings.Settings.getStruct (  )  [protected]

the main Gtk struct as a void*

Reimplemented from gobject.ObjectG.ObjectG.

static void gtk.Settings.Settings.installProperty ( GParamSpec pspec  )  [static]

pspec:

static void gtk.Settings.Settings.installPropertyParser ( GParamSpec pspec,
GtkRcPropertyParser  parser 
) [static]

pspec: parser:

static int gtk.Settings.Settings.rcPropertyParseBorder ( GParamSpec pspec,
StringG  gstring,
Value  propertyValue 
) [static]

A GtkRcPropertyParser for use with gtk_settings_install_property_parser() or gtk_widget_class_install_style_property_parser() which parses borders in the form "{ left, right, top, bottom }" for integers left, right, top and bottom.

pspec: a GParamSpec gstring: the GString to be parsed property_value: a GValue which must hold boxed values. Returns: TRUE if gstring could be parsed and property_value has been set to the resulting GtkBorder.

static int gtk.Settings.Settings.rcPropertyParseColor ( GParamSpec pspec,
StringG  gstring,
Value  propertyValue 
) [static]

A GtkRcPropertyParser for use with gtk_settings_install_property_parser() or gtk_widget_class_install_style_property_parser() which parses a color given either by its name or in the form { red, green, blue } where red, green and blue are integers between 0 and 65535 or floating-point numbers between 0 and 1.

pspec: a GParamSpec gstring: the GString to be parsed property_value: a GValue which must hold GdkColor values. Returns: TRUE if gstring could be parsed and property_value has been set to the resulting GdkColor.

static int gtk.Settings.Settings.rcPropertyParseEnum ( GParamSpec pspec,
StringG  gstring,
Value  propertyValue 
) [static]

A GtkRcPropertyParser for use with gtk_settings_install_property_parser() or gtk_widget_class_install_style_property_parser() which parses a single enumeration value.

The enumeration value can be specified by its name, its nickname or its numeric value. For consistency with flags parsing, the value may be surrounded by parentheses. pspec: a GParamSpec gstring: the GString to be parsed property_value: a GValue which must hold enum values. Returns: TRUE if gstring could be parsed and property_value has been set to the resulting GEnumValue.

static int gtk.Settings.Settings.rcPropertyParseFlags ( GParamSpec pspec,
StringG  gstring,
Value  propertyValue 
) [static]

A GtkRcPropertyParser for use with gtk_settings_install_property_parser() or gtk_widget_class_install_style_property_parser() which parses flags.

Flags can be specified by their name, their nickname or numerically. Multiple flags can be specified in the form "( flag1 | flag2 | ... )". pspec: a GParamSpec gstring: the GString to be parsed property_value: a GValue which must hold flags values. Returns: TRUE if gstring could be parsed and property_value has been set to the resulting flags value.

static int gtk.Settings.Settings.rcPropertyParseRequisition ( GParamSpec pspec,
StringG  gstring,
Value  propertyValue 
) [static]

A GtkRcPropertyParser for use with gtk_settings_install_property_parser() or gtk_widget_class_install_style_property_parser() which parses a requisition in the form "{ width, height }" for integers width and height.

pspec: a GParamSpec gstring: the GString to be parsed property_value: a GValue which must hold boxed values. Returns: TRUE if gstring could be parsed and property_value has been set to the resulting GtkRequisition.

void gtk.Settings.Settings.setDoubleProperty ( char[]  name,
double  vDouble,
char[]  origin 
)

settings: name: v_double: origin: Property Details The "color-hash" property "color-hash" GHashTable : Read Holds a hash table representation of the gtk-color-scheme setting, mapping color names to GdkColors.

Since 2.10

void gtk.Settings.Settings.setLongProperty ( char[]  name,
int  vLong,
char[]  origin 
)

settings: name: v_long: origin:

void gtk.Settings.Settings.setPropertyValue ( char[]  name,
GtkSettingsValue svalue 
)

settings: name: svalue:

void gtk.Settings.Settings.setStringProperty ( char[]  name,
char[]  vString,
char[]  origin 
)

settings: name: v_string: origin:


Member Data Documentation

GtkSettings* gtk.Settings.Settings.gtkSettings [protected]

the main Gtk struct


SourceForge.net Logo DSource.org Logo digitalmars.com Logo