GObject.Object
Gtk.Style
Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-2.0.gir |
C documentation: | GtkStyle |
Class : | Style |
Extends: | GObject.Object |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
attach_count : Number
read only
|
Gtk.Style | |
base : Array
read only
|
Gtk.Style | |
base_gc : Array
read only
|
Gtk.Style | |
bg : Array
read only
|
Gtk.Style | |
bg_gc : Array
read only
|
Gtk.Style | |
bg_pixmap : Array
read only
|
Gtk.Style | |
black : Gdk.Color
read only
|
Gtk.Style | |
black_gc : Gdk.GC
read only
|
Gtk.Style | |
colormap : Gdk.Colormap
read only
|
Gtk.Style | |
dark : Array
read only
|
Gtk.Style | |
dark_gc : Array
read only
|
Gtk.Style | |
depth : Number
read only
|
Gtk.Style | |
fg : Array
read only
|
Gtk.Style | |
fg_gc : Array
read only
|
Gtk.Style | |
font_desc : Pango.FontDescription
read only
|
Gtk.Style | |
icon_factories : Array
read only
|
Gtk.Style | |
light : Array
read only
|
Gtk.Style | |
light_gc : Array
read only
|
Gtk.Style | |
mid : Array
read only
|
Gtk.Style | |
mid_gc : Array
read only
|
Gtk.Style | |
parent_instance : GObject.Object
read only
|
Gtk.Style | |
private_font : Gdk.Font
read only
|
Gtk.Style | |
private_font_desc : Pango.FontDescription
read only
|
Gtk.Style | |
property_cache : GLib.Array
read only
|
Gtk.Style | |
rc_style : Gtk.RcStyle
read only
|
Gtk.Style | |
styles : Array
read only
|
Gtk.Style | |
text : Array
read only
|
Gtk.Style | |
text_aa : Array
read only
|
Gtk.Style | |
text_aa_gc : Array
read only
|
Gtk.Style | |
text_gc : Array
read only
|
Gtk.Style | |
white : Gdk.Color
read only
|
Gtk.Style | |
white_gc : Gdk.GC
read only
|
Gtk.Style | |
xthickness : Number
read only
|
Gtk.Style | |
ythickness : Number
read only
|
Gtk.Style |
Method / Constructor | Defined By | |
---|---|---|
new Gtk.Style
(Object properties)
Create a new Gtk.Style
Create a new Gtk.Style
|
||
apply_default_background
(Window window, Boolean set_bg, StateType state_type, Rectangle area, Number x, Number y, Number width, Number height)
:
none
|
Gtk.Style | |
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.
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:
|
Gtk.Style | |
copy
()
:
Gtk.Style
Creates a copy of the passed in GtkStyle object.
Creates a copy of the passed in GtkStyle object.
|
Gtk.Style | |
detach
()
:
none
Detaches a style from a window.
Detaches a style from a window. If the style is not attached to any windows anymore, it is unrealized. See gtk_style_attach().
|
Gtk.Style | |
get_font
()
:
Gdk.Font
Gets the GdkFont to use for the given style.
Gets the GdkFont to use for the given style. This is meant only as a replacement for direct access to style->font and should not be used in new code. New code should use style->font_desc instead. by the style; if you want to keep around a copy, you must call gdk_font_ref().
|
Gtk.Style | |
Queries the value of a style property corresponding to a widget class is in the given style.
Queries the value of a style property corresponding to a widget class is in the given style.
|
Gtk.Style | |
Looks up color_name in the style's logical color mappings, filling in color and returning TRUE if found, otherwise returning FALSE.
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 GtkStyle and might change when a theme switch occurs.
|
Gtk.Style | |
lookup_icon_set
(String stock_id)
:
Gtk.IconSet
Looks up stock_id in the icon factories associated with style and the default icon factory, returning an icon set if found, otherwise NULL.
Looks up stock_id in the icon factories associated with style and the default icon factory, returning an icon set if found, otherwise NULL.
|
Gtk.Style | |
render_icon
(IconSource source, TextDirection direction, StateType state, Number size, Widget widget, String detail)
:
GdkPixbuf.Pixbuf
Renders the icon specified by source at the given size according to the given parameters and returns the result in a pixbuf.
Renders the icon specified by source at the given size according to the given parameters and returns the result in a pixbuf.
|
Gtk.Style | |
Sets the background of window to the background color or pixmap specified by style for the given state.
Sets the background of window to the background color or pixmap specified by style for the given state.
|
Gtk.Style | |
set_font
(Font font)
:
none
Sets the GdkFont to use for a given style.
Sets the GdkFont to use for a given style. This is meant only as a replacement for direct access to style->font and should not be used in new code. New code should use style->font_desc instead.
|
Gtk.Style |
Event | Defined By | |
---|---|---|
realize (Style self)
:
none
Emitted when the style has been initialized for a particular colormap and depth.
Emitted when the style has been initialized for a particular colormap and depth. Connecting to this signal is probably seldom useful since most of the time applications and widgets only deal with styles that have been already realized.
|
Gtk.Style | |
unrealize (Style self)
:
none
Emitted when the aspects of the style specific to a particular colormap and depth are being cleaned up.
Emitted when the aspects of the style specific to a particular colormap and depth are being cleaned up. A connection to this signal can be useful if a widget wants to cache objects like a GdkGC as object data on GtkStyle. This signal provides a convenient place to free such cached objects.
|
Gtk.Style |
Class / Namespace | Method / Signal / Properties |
---|---|
Gtk
Method |
Gtk.draw_arrow
(Style style, Window window, StateType state_type, ShadowType shadow_type, ArrowType arrow_type, Boolean fill, Number x, Number y, Number width, Number height)
:
none
Draws an arrow in the given rectangle on window using the given parameters.
|
Gtk
Method |
Gtk.draw_box
(Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height)
:
none
Draws a box on window with the given parameters.
|
Gtk
Method |
Gtk.draw_box_gap
(Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height, PositionType gap_side, Number gap_x, Number gap_width)
:
none
Draws a box in window using the given style and state and shadow type, leaving a gap in one side.
|
Gtk
Method |
Gtk.draw_check
(Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height)
:
none
Draws a check button indicator in the given rectangle on window with the given parameters.
|
Gtk
Method |
Gtk.draw_diamond
(Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height)
:
none
Draws a diamond in the given rectangle on window using the given parameters.
|
Gtk
Method |
Gtk.draw_expander
(Style style, Window window, StateType state_type, Number x, Number y, ExpanderStyle expander_style)
:
none
Draws an expander as used in GtkTreeView.
|
Gtk
Method |
Gtk.draw_extension
(Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height, PositionType gap_side)
:
none
Draws an extension, i.e.
|
Gtk
Method |
Gtk.draw_flat_box
(Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height)
:
none
Draws a flat box on window with the given parameters.
|
Gtk
Method |
Draws a focus indicator around the given rectangle on window using the given style.
|
Gtk
Method |
Gtk.draw_handle
(Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height, Orientation orientation)
:
none
Draws a handle as used in GtkHandleBox and GtkPaned.
|
Gtk
Method |
Gtk.draw_hline
(Style style, Window window, StateType state_type, Number x1, Number x2, Number y)
:
none
Draws a horizontal line from (x1, y) to (x2, y) in window using the given style and state.
|
Gtk
Method |
Gtk.draw_layout
(Style style, Window window, StateType state_type, Boolean use_text, Number x, Number y, Layout layout)
:
none
Draws a layout on window using the given parameters.
|
Gtk
Method |
Gtk.draw_option
(Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height)
:
none
Draws a radio button indicator in the given rectangle on window with the given parameters.
|
Gtk
Method |
Gtk.draw_polygon
(Style style, Window window, StateType state_type, ShadowType shadow_type, Point points, Number npoints, Boolean fill)
:
none
Draws a polygon on window with the given parameters.
|
Gtk
Method |
Gtk.draw_resize_grip
(Style style, Window window, StateType state_type, WindowEdge edge, Number x, Number y, Number width, Number height)
:
none
Draws a resize grip in the given rectangle on window using the given parameters.
|
Gtk
Method |
Gtk.draw_shadow
(Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height)
:
none
Draws a shadow around the given rectangle in window using the given style and state and shadow type.
|
Gtk
Method |
Gtk.draw_shadow_gap
(Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height, PositionType gap_side, Number gap_x, Number gap_width)
:
none
Draws a shadow around the given rectangle in window using the given style and state and shadow type, leaving a gap in one side.
|
Gtk
Method |
Gtk.draw_slider
(Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height, Orientation orientation)
:
none
Draws a slider in the given rectangle on window using the given style and orientation.
|
Gtk
Method |
Gtk.draw_string
(Style style, Window window, StateType state_type, Number x, Number y, String string)
:
none
Draws a text string on window with the given parameters.
|
Gtk
Method |
Gtk.draw_tab
(Style style, Window window, StateType state_type, ShadowType shadow_type, Number x, Number y, Number width, Number height)
:
none
Draws an option menu tab (i.e.
|
Gtk
Method |
Gtk.draw_vline
(Style style, Window window, StateType state_type, Number y1_, Number y2_, Number x)
:
none
Draws a vertical line from (x, y1_) to (x, y2_) in window using the given style and state.
|
Gtk
Method |
Gtk.paint_arrow
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, ArrowType arrow_type, Boolean fill, Number x, Number y, Number width, Number height)
:
none
Draws an arrow in the given rectangle on window using the given parameters.
|
Gtk
Method |
Gtk.paint_box
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a box on window with the given parameters.
|
Gtk
Method |
Gtk.paint_box_gap
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height, PositionType gap_side, Number gap_x, Number gap_width)
:
none
Draws a box in window using the given style and state and shadow type, leaving a gap in one side.
|
Gtk
Method |
Gtk.paint_check
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a check button indicator in the given rectangle on window with the given parameters.
|
Gtk
Method |
Gtk.paint_diamond
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a diamond in the given rectangle on window using the given parameters.
|
Gtk
Method |
Gtk.paint_expander
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number x, Number y, ExpanderStyle expander_style)
:
none
Draws an expander as used in GtkTreeView.
|
Gtk
Method |
Gtk.paint_extension
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height, PositionType gap_side)
:
none
Draws an extension, i.e.
|
Gtk
Method |
Gtk.paint_flat_box
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a flat box on window with the given parameters.
|
Gtk
Method |
Gtk.paint_focus
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a focus indicator around the given rectangle on window using the given style.
|
Gtk
Method |
Gtk.paint_handle
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height, Orientation orientation)
:
none
Draws a handle as used in GtkHandleBox and GtkPaned.
|
Gtk
Method |
Gtk.paint_hline
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number x1, Number x2, Number y)
:
none
Draws a horizontal line from (x1, y) to (x2, y) in window using the given style and state.
|
Gtk
Method |
Gtk.paint_layout
(Style style, Window window, StateType state_type, Boolean use_text, Rectangle area, Widget widget, String detail, Number x, Number y, Layout layout)
:
none
Draws a layout on window using the given parameters.
|
Gtk
Method |
Gtk.paint_option
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a radio button indicator in the given rectangle on window with the given parameters.
|
Gtk
Method |
Gtk.paint_polygon
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Point points, Number n_points, Boolean fill)
:
none
Draws a polygon on window with the given parameters.
|
Gtk
Method |
Gtk.paint_resize_grip
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, WindowEdge edge, Number x, Number y, Number width, Number height)
:
none
Draws a resize grip in the given rectangle on window using the given parameters.
|
Gtk
Method |
Gtk.paint_shadow
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a shadow around the given rectangle in window using the given style and state and shadow type.
|
Gtk
Method |
Gtk.paint_shadow_gap
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height, PositionType gap_side, Number gap_x, Number gap_width)
:
none
Draws a shadow around the given rectangle in window using the given style and state and shadow type, leaving a gap in one side.
|
Gtk
Method |
Gtk.paint_slider
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height, Orientation orientation)
:
none
Draws a slider in the given rectangle on window using the given style and orientation.
|
Gtk
Method |
Gtk.paint_spinner
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number step, Number x, Number y, Number width, Number height)
:
none
Draws a spinner on window using the given parameters.
|
Gtk
Method |
Gtk.paint_string
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number x, Number y, String string)
:
none
Draws a text string on window with the given parameters.
|
Gtk
Method |
Gtk.paint_tab
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws an option menu tab (i.e.
|
Gtk
Method |
Gtk.paint_vline
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number y1_, Number y2_, Number x)
:
none
Draws a vertical line from (x, y1_) to (x, y2_) in window using the given style and state.
|
Gtk
Method |
Finds all matching RC styles for a given widget, composites them together, and then creates a GtkStyle representing the composite appearance.
|
Gtk
Method |
Gtk.rc_get_style_by_paths
(Settings settings, String widget_path, String class_path, Number type)
:
Gtk.Style
Creates up a GtkStyle from styles defined in a RC file by providing the raw components used in matching.
|
Gtk.CList
Method |
|
Gtk.CList
Method |
|
Gtk.CList
Method |
|
Gtk.CList
Method |
|
Gtk.CTree
Method |
|
Gtk.CTree
Method |
|
Gtk.CTree
Method |
|
Gtk.CTree
Method |
|
Gtk.IconSet
Method |
render_icon
(Style style, TextDirection direction, StateType state, Number size, Widget widget, String detail)
:
GdkPixbuf.Pixbuf
Renders an icon using gtk_style_render_icon().
|
Gtk.Widget
Property |
style : Gtk.Style
|
Gtk.Widget
Signal |
The ::style-set signal is emitted when a new style has been set on a widget.
|
Gtk.Widget
Method |
Gtk.Widget.get_default_style
()
:
Gtk.Style
Returns the default style used by all widgets initially.
|
Gtk.Widget
Method |
set_style
(Style style)
:
none
Sets the GtkStyle for a widget (widget->style).
|
Gtk.Widget
Method |
get_style
()
:
Gtk.Style
Simply an accessor function that returns widget->style.
|