|
NAMEGtk2::Style - wrapper for GtkStyleHIERARCHYGlib::Object +----Gtk2::Style METHODSstyle = Gtk2::Style->new$style->apply_default_background ($window, $set_bg, $state_type, $area, $x, $y, $width, $height)
style = $style->attach ($window)
boolean = $style->attached$style->set_background ($window, $state_type)
color = $style->base ($state)
gc = $style->base_gc ($state)
color = $style->bg ($state)
gc = $style->bg_gc ($state)
pixmap = $style->bg_pixmap ($state, $pixmap=undef)
scalar = $style->blackscalar = $style->black_gcstyle = $style->copycolor = $style->dark ($state)
gc = $style->dark_gc ($state)
$style->detachGtk2->draw_insertion_cursor ($widget, $drawable, $area, $location, $is_primary, $direction, $draw_arrow)
Since: gtk+ 2.4 color = $style->fg ($state)
gc = $style->fg_gc ($state)
scalar = $style->font_desclist = $style->get (widget_package, ...)list = $style->get_style_property (widget_package, ...)
Fetch and return the values for the style properties named in ... for a widget of type widget_package. get is an alias for get_style_property. my $size = $style->get_style_property ("expander-size"); Note: The get method shadows Glib::Object::get (see "get and set" in Glib::Object). This shouldn't be a problem since Gtk2::Style defines no properties (as of gtk+ 2.16). If you have a class that's derived from Gtk2::Style and adds a property or if a new version of gtk+ adds a property to Gtk2::Style then the property can be accessed with get_property. Since: gtk+ 2.16 color = $style->light ($state)
gc = $style->light_gc ($state)
color = $style->lookup_color ($color_name)
Since: gtk+ 2.10 iconset = $style->lookup_icon_set ($stock_id)
color = $style->mid ($state)
gc = $style->mid_gc ($state)
$style->paint_arrow ($window, $state_type, $shadow_type, $area, $widget, $detail, $arrow_type, $fill, $x, $y, $width, $height)
$style->paint_box ($window, $state_type, $shadow_type, $area, $widget, $detail, $x, $y, $width, $height)
$style->paint_box_gap ($window, $state_type, $shadow_type, $area, $widget, $detail, $x, $y, $width, $height, $gap_side, $gap_x, $gap_width)
$style->paint_check ($window, $state_type, $shadow_type, $area, $widget, $detail, $x, $y, $width, $height)
$style->paint_diamond ($window, $state_type, $shadow_type, $area, $widget, $detail, $x, $y, $width, $height)
$style->paint_expander ($window, $state_type, $area, $widget, $detail, $x, $y, $expander_style)
$style->paint_extension ($window, $state_type, $shadow_type, $area, $widget, $detail, $x, $y, $width, $height, $gap_side)
$style->paint_flat_box ($window, $state_type, $shadow_type, $area, $widget, $detail, $x, $y, $width, $height)
$style->paint_focus ($window, $state_type, $area, $widget, $detail, $x, $y, $width, $height)
$style->paint_handle ($window, $state_type, $shadow_type, $area, $widget, $detail, $x, $y, $width, $height, $orientation)
$style->paint_hline ($window, $state_type, $area, $widget, $detail, $x1, $x2, $y)
$style->paint_layout ($window, $state_type, $use_text, $area, $widget, $detail, $x, $y, $layout)
$style->paint_option ($window, $state_type, $shadow_type, $area, $widget, $detail, $x, $y, $width, $height)
$style->paint_polygon ($window, $state_type, $shadow_type, $area, $widget, $detail, $fill, $x1, $y1, ...)
$style->paint_resize_grip ($window, $state_type, $area, $widget, $detail, $edge, $x, $y, $width, $height)
$style->paint_shadow ($window, $state_type, $shadow_type, $area, $widget, $detail, $x, $y, $width, $height)
$style->paint_shadow_gap ($window, $state_type, $shadow_type, $area, $widget, $detail, $x, $y, $width, $height, $gap_side, $gap_x, $gap_width)
$style->paint_slider ($window, $state_type, $shadow_type, $area, $widget, $detail, $x, $y, $width, $height, $orientation)
$style->paint_spinner ($window, $state_type, $area, $widget, $detail, $step, $x, $y, $width, $height)
Since: gtk+ 2.20 $style->paint_tab ($window, $state_type, $shadow_type, $area, $widget, $detail, $x, $y, $width, $height)
$style->paint_vline ($window, $state_type, $area, $widget, $detail, $y1_, $y2_, $x)
pixbuf = $style->render_icon ($source, $direction, $state, $size, $widget, $detail=undef)
$style->get_style_property ($widget_package, ...)
Since: gtk+ 2.16 color = $style->text ($state)
color = $style->text_aa ($state)
gc = $style->text_aa_gc ($state)
gc = $style->text_gc ($state)
scalar = $style->whitescalar = $style->white_gcscalar = $style->xthicknessscalar = $style->ythicknessSIGNALS
ENUMS AND FLAGSenum Gtk2::ArrowType
enum Gtk2::ExpanderStyle
enum Gtk2::Gdk::WindowEdge
enum Gtk2::IconSize
enum Gtk2::Orientation
enum Gtk2::PositionType
enum Gtk2::ShadowType
enum Gtk2::StateType
enum Gtk2::TextDirection
SEE ALSOGtk2, Glib::ObjectCOPYRIGHTCopyright (C) 2003-2011 by the gtk2-perl team.This software is licensed under the LGPL. See Gtk2 for a full notice.
Visit the GSP FreeBSD Man Page Interface. |