Libraries:Gtk:Gtk:Style
Types
T
Inherits from:Constants
Nil : T
Functions
GetType() : Gtk.GObject.Type.T
New() : Gtk.Gtk.Style.T
Methods
:ApplyDefaultBackground(self @ T, window @ Gtk.Gdk.Window.T, set_bg @ Std.Symbol.T, state_type @ Gtk.Gtk.StateType.T, area @ Gtk.Gdk.Rectangle.T, x @ Std.Integer.SmallT, y @ Std.Integer.SmallT, width @ Std.Integer.SmallT, height @ Std.Integer.SmallT) : Std.Object.T
area | . [allow-none] |
:Attach(self @ T, window @ Gtk.Gdk.Window.T) : Gtk.Gtk.Style.T
Attaches a style to a window; this process allocates the colors and creates the GC's for the style - it specializes it to a particular visual and colormap. The process may involve the creation of a new style if the style has already been attached to a window with a different style and colormap.
Since this function may return a new object, you have to use it in the following way: style = gtk_style_attach (style, window)
style | a T. |
window | a Gtk.Gdk.Window.T. |
Returns | Either style, or a newly-created T. If the style is newly created, the style parameter will be unref'ed, and the new style will have a reference count belonging to the caller. |
:AttachCount(self @ T) : Std.Integer.SmallT
:Base(self @ T, index @ Std.Integer.T) : Gtk.Gdk.Color.T
:BaseGc(self @ T, index @ Std.Integer.T) : Gtk.Gdk.GC.T
:Bg(self @ T, index @ Std.Integer.T) : Gtk.Gdk.Color.T
:BgGc(self @ T, index @ Std.Integer.T) : Gtk.Gdk.GC.T
:BgPixmap(self @ T, index @ Std.Integer.T) : Gtk.Gdk.Pixmap.T
:Black(self @ T) : Gtk.Gdk.Color.T
:BlackGc(self @ T) : Gtk.Gdk.GC.T
:Colormap(self @ T) : Gtk.Gdk.Colormap.T
:Copy(self @ T) : Gtk.Gtk.Style.T
:Dark(self @ T, index @ Std.Integer.T) : Gtk.Gdk.Color.T
:DarkGc(self @ T, index @ Std.Integer.T) : Gtk.Gdk.GC.T
:Depth(self @ T) : Std.Integer.SmallT
:Detach(self @ T) : Std.Object.T
Detaches a style from a window. If the style is not attached to any windows anymore, it is unrealized. See Attach.
style | a T |
:Fg(self @ T, index @ Std.Integer.T) : Gtk.Gdk.Color.T
:FgGc(self @ T, index @ Std.Integer.T) : Gtk.Gdk.GC.T
:FontDesc(self @ T) : Gtk.Pango.FontDescription.T
:Get(self @ T, widget_type @ Gtk.GObject.Type.T, first_property_name @ Std.String.T, ... @ Std.Object.T) : Std.Object.T
Gets the values of a multiple style properties for widget_type from style.
style | a T |
widget_type | the GType of a descendant of Gtk.Gtk.Widget.T |
first_property_name | the name of the first style property to get |
:GetFont(self @ T) : Gtk.Gdk.Font.T
Warning
GetFont is deprecated and should not be used in newly-written code.
:GetStyleProperty(self @ T, widget_type @ Gtk.GObject.Type.T, property_name @ Std.String.T, value @ Gtk.GObject.Value.T) : Std.Object.T
Queries the value of a style property corresponding to a widget class is in the given style.
style | a T |
widget_type | the GType of a descendant of Gtk.Gtk.Widget.T |
property_name | the name of the style property to get |
value | a GValue where the value of the property being queried will be stored |
:GetValist(self @ T, widget_type @ Gtk.GObject.Type.T, first_property_name @ Std.String.T, var_args @ Agg.List.T) : Std.Object.T
Non-vararg variant of Get. Used primarily by language bindings.
style | a T |
widget_type | the GType of a descendant of Gtk.Gtk.Widget.T |
first_property_name | the name of the first style property to get |
var_args | a va_list of pairs of property names and locations to return the property values, starting with the location for first_property_name. |
:IconFactories(self @ T) : Std.Object.T
:Light(self @ T, index @ Std.Integer.T) : Gtk.Gdk.Color.T
:LightGc(self @ T, index @ Std.Integer.T) : Gtk.Gdk.GC.T
:LookupColor(self @ T, color_name @ Std.String.T, color @ Gtk.Gdk.Color.T) : Std.Symbol.T
Looks up color_name in the style's logical color mappings, filling in color and returning TRUE if found, otherwise returning FALSE. Do not cache the found mapping, because it depends on the T and might change when a theme switch occurs.
style | a T |
color_name | the name of the logical color to look up |
color | the Gtk.Gdk.Color.T to fill in. [out] |
Returns | TRUE if the mapping was found. |
:LookupIconSet(self @ T, stock_id @ Std.String.T) : Gtk.Gtk.IconSet.T
Looks up stock_id in the icon factories associated with style and the default icon factory, returning an icon set if found, otherwise NULL.
style | a T |
stock_id | an icon name |
Returns | icon set of stock_id. [transfer none] |
:Mid(self @ T, index @ Std.Integer.T) : Gtk.Gdk.Color.T
:MidGc(self @ T, index @ Std.Integer.T) : Gtk.Gdk.GC.T
:PrivateFont(self @ T) : Gtk.Gdk.Font.T
:PrivateFontDesc(self @ T) : Gtk.Pango.FontDescription.T
:PropertyCache(self @ T) : Gtk.Glib.GArray.T
:RcStyle(self @ T) : Gtk.Gtk.RcStyle.T
:Ref(self @ T) : Gtk.Gtk.Style.T
Warning
Ref has been deprecated since version 2.0 and should not be used in newly-written code. use g_object_ref() instead.
:RenderIcon(self @ T, source @ Gtk.Gtk.IconSource.T, direction @ Gtk.Gtk.TextDirection.T, state @ Gtk.Gtk.StateType.T, size @ Gtk.Gtk.IconSize.T, widget @ Gtk.Gtk.Widget.T, detail @ Std.String.T) : Gtk.Gdk.Pixbuf.T
Renders the icon specified by source at the given size according to the given parameters and returns the result in a pixbuf.
style | a T |
source | the Gtk.Gtk.IconSource.T specifying the icon to render |
direction | a text direction |
state | a state |
size | (type int) the size to render the icon at. A size of (GtkIconSize)-1 means render at the size of the source and don't scale. |
widget | the widget. [allow-none] |
detail | a style detail. [allow-none] |
Returns | a newly-created Gtk.Gdk.Pixbuf.T containing the rendered icon. [transfer full] |
:SetBackground(self @ T, window @ Gtk.Gdk.Window.T, state_type @ Gtk.Gtk.StateType.T) : Std.Object.T
Sets the background of window to the background color or pixmap specified by style for the given state.
style | a T |
window | a Gtk.Gdk.Window.T |
state_type | a state |
:SetFont(self @ T, font @ Gtk.Gdk.Font.T) : Std.Object.T
Warning
SetFont is deprecated and should not be used in newly-written code.
:Styles(self @ T) : Std.Object.T
:Text(self @ T, index @ Std.Integer.T) : Gtk.Gdk.Color.T
:TextAa(self @ T, index @ Std.Integer.T) : Gtk.Gdk.Color.T
:TextAaGc(self @ T, index @ Std.Integer.T) : Gtk.Gdk.GC.T
:TextGc(self @ T, index @ Std.Integer.T) : Gtk.Gdk.GC.T
:Unref(self @ T) : Std.Object.T
Warning
Unref has been deprecated since version 2.0 and should not be used in newly-written code. use g_object_unref() instead.