Toc Gallery Index Tree Gtk.Settings

Hierarchy

Description

This package contains various subprograms to easily share settings between applications, or even between various parts of your application.

Types

  • type Gtk_Settings is access all Gtk_Settings_Record'Class;
  • type Gtk_Settings_Record is new Glib.Object.GObject_Record with null record;

Subprograms

  • function Get_Default return Gtk_Settings;
    Gets the settings object for the default GDK screen, creating it if necessary.
  • function Get_For_Screen (Screen : Gdk.Gdk_Screen) return Gtk_Settings;
    Gets the settings object for Screen, creating it if necessary.
  • function Get_Type return Glib.GType;
    Return the internal type used to identify a Gtk_Settings
  • procedure Install_Property (Pspec : Glib.Param_Spec);
    Declares a property that can be shared among various parts of the application
  • procedure Install_Property_Parser (Pspec : Glib.Param_Spec; Parser : Gtk.Style.Gtk_Rc_Property_Parser);
    Install a new parser for the given property. This parser is responsible for reading the property's value in a gtk configuration file, and convert it to a suitable value.
  • Precoded parsing functions

  • function Parse_Color (Pspec : Glib.Param_Spec; Rc_String : Interfaces.C.Strings.chars_ptr; Value : access Glib.Values.GValue) return Gboolean;
    function Parse_Enum (Pspec : Glib.Param_Spec; Rc_String : Interfaces.C.Strings.chars_ptr; Value : access Glib.Values.GValue) return Gboolean;
    function Parse_Flags (Pspec : Glib.Param_Spec; Rc_String : Interfaces.C.Strings.chars_ptr; Value : access Glib.Values.GValue) return Gboolean;
    function Parse_Requisition (Pspec : Glib.Param_Spec; Rc_String : Interfaces.C.Strings.chars_ptr; Value : access Glib.Values.GValue) return Gboolean;
    function Parse_Border (Pspec : Glib.Param_Spec; Rc_String : Interfaces.C.Strings.chars_ptr; Value : access Glib.Values.GValue) return Gboolean;
    These functions parse some of the predefined property types
  • Setting predefined properties

  • procedure Set_Property_Value (Settings : access Gtk_Settings_Record; Name : String; Value : Glib.Values.GValue; Origin : String);
    procedure Set_String_Property (Settings : access Gtk_Settings_Record; Name : String; Value : String; Origin : String);
    procedure Set_Long_Property (Settings : access Gtk_Settings_Record; Name : String; Value : Glong; Origin : String);
    procedure Set_Double_Property (Settings : access Gtk_Settings_Record; Name : String; Value : Gdouble; Origin : String);
    Set the value of a property. This automatically propagates the new value to all listeners, so that they can refresh themselves. Origin should be something like "filename:line" for rc files, or the name of the function that sets it otherwise

Alphabetical Index