Index

Package: Settings

Description

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

Binding from C File version 2.8.17

Classes

Gtk_Settings_Record

type Gtk_Settings_Record is new Glib.Object.GObject_Record with null record;

Ancestors:

Primitive operations:

Glib.Object.Deallocate (Inherited)
Glib.Object.Get_Type (Inherited)
Glib.Object.Notify (Inherited)
Glib.Object.Ref (Inherited)
Glib.Object.Unref (Inherited)
Set_Double_Property
Set_Long_Property
Set_Property_Value
Set_String_Property

Types

Gtk_Settings

type Gtk_Settings is access all Gtk_Settings_Record'Class;

Constants & Global variables

Gtk_Alternative_Button_Order (String)

Gtk_Alternative_Button_Order : constant String :=
     "gtk-alternative-button-order";

Gtk_Button_Images (String)

Gtk_Button_Images         : constant String := "gtk-button-images";

Gtk_Can_Change_Accels (String)

Gtk_Can_Change_Accels     : constant String := "gtk-can-change-accels";

Gtk_Color_Palette (String)

Gtk_Color_Palette         : constant String := "gtk-color-palette";

Gtk_Cursor_Blink (String)

Gtk_Cursor_Blink          : constant String := "gtk-cursor-blink";

Gtk_Cursor_Blink_Time (String)

Gtk_Cursor_Blink_Time     : constant String := "gtk-cursor-blink-time";

Gtk_Cursor_Theme_Name (String)

Gtk_Cursor_Theme_Name     : constant String := "gtk-cursor-theme-name";

Gtk_Cursor_Theme_Size (String)

Gtk_Cursor_Theme_Size     : constant String := "gtk-cursor-theme-size";

Gtk_Dnd_Drag_Threshold (String)

Gtk_Dnd_Drag_Threshold    : constant String := "gtk-dnd-drag-threshold";

Gtk_Double_Click_Distance (String)

Gtk_Double_Click_Distance : constant String := "gtk-double-click-distance";

Gtk_Double_Click_Time (String)

Gtk_Double_Click_Time     : constant String := "gtk-double-click-time";

Gtk_Entry_Select_On_Focus (String)

Gtk_Entry_Select_On_Focus : constant String := "gtk-entry-select-on-focus";

Gtk_Fallback_Icon_Theme (String)

Gtk_Fallback_Icon_Theme   : constant String := "gtk-fallback-icon-theme";

Gtk_File_Chooser_Backend (String)

Gtk_File_Chooser_Backend  : constant String := "gtk-file-chooser-backend";

Gtk_Font_Name (String)

Gtk_Font_Name             : constant String := "gtk-font-name";

Gtk_Icon_Sizes (String)

Gtk_Icon_Sizes            : constant String := "gtk-icon-sizes";

Gtk_Icon_Theme_Name (String)

Gtk_Icon_Theme_Name       : constant String := "gtk-icon-theme-name";

Gtk_Key_Theme_Name (String)

Gtk_Key_Theme_Name        : constant String := "gtk-key-theme-name";

Gtk_Menu_Bar_Accel (String)

Gtk_Menu_Bar_Accel        : constant String := "gtk-menu-bar-accel";

Gtk_Menu_Bar_Popup_Delay (String)

Gtk_Menu_Bar_Popup_Delay  : constant String := "gtk-menu-bar-popup-delay";

Gtk_Menu_Images (String)

Gtk_Menu_Images           : constant String := "gtk-menu-images";

Gtk_Menu_Popdown_Delay (String)

Gtk_Menu_Popdown_Delay    : constant String := "gtk-menu-popdown-delay";

Gtk_Menu_Popup_Delay (String)

Gtk_Menu_Popup_Delay      : constant String := "gtk-menu-popup-delay";

Gtk_Modules (String)

Gtk_Modules               : constant String := "gtk-modules";

Gtk_Split_Cursor (String)

Gtk_Split_Cursor          : constant String := "gtk-split-cursor";

Gtk_Theme_Name (String)

Gtk_Theme_Name            : constant String := "gtk-theme-name";

Gtk_Toolbar_Icon_Size (String)

Gtk_Toolbar_Icon_Size     : constant String := "gtk-toolbar-icon-size";

Gtk_Toolbar_Style (String)

Gtk_Toolbar_Style         : constant String := "gtk-toolbar-style";

Gtk_Xft_Antialias (String)

Gtk_Xft_Antialias         : constant String := "gtk-xft-antialias";

Gtk_Xft_Dpi (String)

Gtk_Xft_Dpi               : constant String := "gtk-xft-dpi";

Gtk_Xft_Hinting (String)

Gtk_Xft_Hinting           : constant String := "gtk-xft-hinting";

Gtk_Xft_Hintstyle (String)

Gtk_Xft_Hintstyle         : constant String := "gtk-xft-hintstyle";

Gtk_Xft_Rgba (String)

Gtk_Xft_Rgba              : constant String := "gtk-xft-rgba";

Subprograms & Entries

Get_Default

function Get_Default return Gtk_Settings;
Gets the settings object for the default GDK screen, creating it if necessary.

Get_For_Screen

function Get_For_Screen 
(Screen: Gdk.Gdk_Screen) return Gtk_Settings;
Gets the settings object for Screen, creating it if necessary.

Get_Type

function Get_Type return Glib.GType;
Return the internal type used to identify a Gtk_Settings

Install_Property

procedure Install_Property 
(Pspec: Glib.Param_Spec);
Declares a property that can be shared among various parts of the application

Install_Property_Parser

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.

Parse_Color

function Parse_Color 
(Pspec: Glib.Param_Spec;
Rc_String: Interfaces.C.Strings.chars_ptr;
Value: access Glib.Values.GValue) return Gboolean;

Parse_Enum

function Parse_Enum 
(Pspec: Glib.Param_Spec;
Rc_String: Interfaces.C.Strings.chars_ptr;
Value: access Glib.Values.GValue) return Gboolean;

Parse_Flags

function Parse_Flags 
(Pspec: Glib.Param_Spec;
Rc_String: Interfaces.C.Strings.chars_ptr;
Value: access Glib.Values.GValue) return Gboolean;

Parse_Requisition

function Parse_Requisition 
(Pspec: Glib.Param_Spec;
Rc_String: Interfaces.C.Strings.chars_ptr;
Value: access Glib.Values.GValue) return Gboolean;

Parse_Border

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

Set_Property_Value

procedure Set_Property_Value 
(Settings: access Gtk_Settings_Record;
Name: String;
Value: Glib.Values.GValue;
Origin: String);

Set_String_Property

procedure Set_String_Property 
(Settings: access Gtk_Settings_Record;
Name: String;
Value: String;
Origin: String);

Set_Long_Property

procedure Set_Long_Property 
(Settings: access Gtk_Settings_Record;
Name: String;
Value: Glong;
Origin: String);

Set_Double_Property

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