Gtk.Style
const Gtk = imports.gi.Gtk;
let style = new Gtk.Style({
context: value,
});
A Gtk.Style object encapsulates the information that provides the look and feel for a widget.
<warning> In GTK+ 3.0, GtkStyle has been deprecated and replaced by Gtk.StyleContext. </warning>
Each Gtk.Widget has an associated Gtk.Style object that is used when rendering that widget. Also, a Gtk.Style holds information for the five possible widget states though not every widget supports all five states; see Gtk.StateType.
Usually the Gtk.Style for a widget is the same as the default style that is set by GTK+ and modified the theme engine.
Usually applications should not need to use or modify the Gtk.Style of their widgets.
Hierarchy
-
GObject.Object
- Gtk.Style
Methods
- Gtk.Style.prototype.apply_default_background
- Gtk.Style.prototype.copy
- Gtk.Style.prototype.detach
- Gtk.Style.prototype.get_style_property
- Gtk.Style.prototype.has_context
- Gtk.Style.prototype.lookup_color
- Gtk.Style.prototype.lookup_icon_set
- Gtk.Style.prototype.render_icon
- Gtk.Style.prototype.set_background
Properties
Virtual functions
- Gtk.Style::copy
- Gtk.Style::draw_arrow
- Gtk.Style::draw_box
- Gtk.Style::draw_box_gap
- Gtk.Style::draw_check
- Gtk.Style::draw_diamond
- Gtk.Style::draw_expander
- Gtk.Style::draw_extension
- Gtk.Style::draw_flat_box
- Gtk.Style::draw_focus
- Gtk.Style::draw_handle
- Gtk.Style::draw_hline
- Gtk.Style::draw_layout
- Gtk.Style::draw_option
- Gtk.Style::draw_resize_grip
- Gtk.Style::draw_shadow
- Gtk.Style::draw_shadow_gap
- Gtk.Style::draw_slider
- Gtk.Style::draw_spinner
- Gtk.Style::draw_tab
- Gtk.Style::draw_vline
- Gtk.Style::init_from_rc
- Gtk.Style::render_icon
- Gtk.Style::set_background