Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gtk2::style(3) [suse man page]

Gtk2::Style(3)						User Contributed Perl Documentation					    Gtk2::Style(3)

NAME
Gtk2::Style HIERARCHY
Glib::Object +----Gtk2::Style METHODS
style = Gtk2::Style->new $style->apply_default_background ($window, $set_bg, $state_type, $area, $x, $y, $width, $height) o $window (Gtk2::Gdk::Window) o $set_bg (boolean) o $state_type (Gtk2::StateType) o $area (Gtk2::Gdk::Rectangle or undef) o $x (integer) o $y (integer) o $width (integer) o $height (integer) style = $style->attach ($window) o $window (Gtk2::Gdk::Window) boolean = $style->attached $style->set_background ($window, $state_type) o $window (Gtk2::Gdk::Window) o $state_type (Gtk2::StateType) color = $style->base ($state) o $state (Gtk2::StateType) gc = $style->base_gc ($state) o $state (Gtk2::StateType) color = $style->bg ($state) o $state (Gtk2::StateType) gc = $style->bg_gc ($state) o $state (Gtk2::StateType) pixmap = $style->bg_pixmap ($state, $pixmap=undef) o $state (Gtk2::StateType) o $pixmap (Gtk2::Gdk::Pixmap or undef) scalar = $style->black scalar = $style->black_gc style = $style->copy color = $style->dark ($state) o $state (Gtk2::StateType) gc = $style->dark_gc ($state) o $state (Gtk2::StateType) $style->detach Gtk2->draw_insertion_cursor ($widget, $drawable, $area, $location, $is_primary, $direction, $draw_arrow) o $widget (Gtk2::Widget) o $drawable (Gtk2::Gdk::Drawable) o $area (Gtk2::Gdk::Rectangle) o $location (Gtk2::Gdk::Rectangle) o $is_primary (boolean) o $direction (Gtk2::TextDirection) o $draw_arrow (boolean) Since: gtk+ 2.4 color = $style->fg ($state) o $state (Gtk2::StateType) gc = $style->fg_gc ($state) o $state (Gtk2::StateType) scalar = $style->font_desc list = $style->get (widget_package, ...) list = $style->get_style_property (widget_package, ...) o $widget_package (string) widget package name (ex: 'Gtk2::TreeView') o ... (list) list of property names Fetch and return the values for the style properties named in ... for a widget of type widget_package. get_style_property is an alias for get. Note: The get method shadows Glib::Object::get. 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, the property can be accessed with get_property which still resolves to Glib::Object::get_property: my $value = $style->get_property('property'); Since: gtk+ 2.16 color = $style->light ($state) o $state (Gtk2::StateType) gc = $style->light_gc ($state) o $state (Gtk2::StateType) color = $style->lookup_color ($color_name) o $color_name (string) Since: gtk+ 2.10 iconset = $style->lookup_icon_set ($stock_id) o $stock_id (string) color = $style->mid ($state) o $state (Gtk2::StateType) gc = $style->mid_gc ($state) o $state (Gtk2::StateType) $style->paint_arrow ($window, $state_type, $shadow_type, $area, $widget, $detail, $arrow_type, $fill, $x, $y, $width, $height) o $window (Gtk2::Gdk::Drawable) o $state_type (Gtk2::StateType) o $shadow_type (Gtk2::ShadowType) o $area (Gtk2::Gdk::Rectangle or undef) o $widget (Gtk2::Widget or undef) o $detail (string or undef) o $arrow_type (Gtk2::ArrowType) o $fill (boolean) o $x (integer) o $y (integer) o $width (integer) o $height (integer) $style->paint_box ($window, $state_type, $shadow_type, $area, $widget, $detail, $x, $y, $width, $height) o $window (Gtk2::Gdk::Drawable) o $state_type (Gtk2::StateType) o $shadow_type (Gtk2::ShadowType) o $area (Gtk2::Gdk::Rectangle or undef) o $widget (Gtk2::Widget or undef) o $detail (string or undef) o $x (integer) o $y (integer) o $width (integer) o $height (integer) $style->paint_box_gap ($window, $state_type, $shadow_type, $area, $widget, $detail, $x, $y, $width, $height, $gap_side, $gap_x, $gap_width) o $window (Gtk2::Gdk::Drawable) o $state_type (Gtk2::StateType) o $shadow_type (Gtk2::ShadowType) o $area (Gtk2::Gdk::Rectangle or undef) o $widget (Gtk2::Widget or undef) o $detail (string or undef) o $x (integer) o $y (integer) o $width (integer) o $height (integer) o $gap_side (Gtk2::PositionType) o $gap_x (integer) o $gap_width (integer) $style->paint_check ($window, $state_type, $shadow_type, $area, $widget, $detail, $x, $y, $width, $height) o $window (Gtk2::Gdk::Drawable) o $state_type (Gtk2::StateType) o $shadow_type (Gtk2::ShadowType) o $area (Gtk2::Gdk::Rectangle or undef) o $widget (Gtk2::Widget) o $detail (string or undef) o $x (integer) o $y (integer) o $width (integer) o $height (integer) $style->paint_diamond ($window, $state_type, $shadow_type, $area, $widget, $detail, $x, $y, $width, $height) o $window (Gtk2::Gdk::Drawable) o $state_type (Gtk2::StateType) o $shadow_type (Gtk2::ShadowType) o $area (Gtk2::Gdk::Rectangle or undef) o $widget (Gtk2::Widget or undef) o $detail (string or undef) o $x (integer) o $y (integer) o $width (integer) o $height (integer) $style->paint_expander ($window, $state_type, $area, $widget, $detail, $x, $y, $expander_style) o $window (Gtk2::Gdk::Drawable) o $state_type (Gtk2::StateType) o $area (Gtk2::Gdk::Rectangle or undef) o $widget (Gtk2::Widget) o $detail (string or undef) o $x (integer) o $y (integer) o $expander_style (Gtk2::ExpanderStyle) $style->paint_extension ($window, $state_type, $shadow_type, $area, $widget, $detail, $x, $y, $width, $height, $gap_side) o $window (Gtk2::Gdk::Drawable) o $state_type (Gtk2::StateType) o $shadow_type (Gtk2::ShadowType) o $area (Gtk2::Gdk::Rectangle or undef) o $widget (Gtk2::Widget or undef) o $detail (string or undef) o $x (integer) o $y (integer) o $width (integer) o $height (integer) o $gap_side (Gtk2::PositionType) $style->paint_flat_box ($window, $state_type, $shadow_type, $area, $widget, $detail, $x, $y, $width, $height) o $window (Gtk2::Gdk::Drawable) o $state_type (Gtk2::StateType) o $shadow_type (Gtk2::ShadowType) o $area (Gtk2::Gdk::Rectangle or undef) o $widget (Gtk2::Widget or undef) o $detail (string or undef) o $x (integer) o $y (integer) o $width (integer) o $height (integer) $style->paint_focus ($window, $state_type, $area, $widget, $detail, $x, $y, $width, $height) o $window (Gtk2::Gdk::Drawable) o $state_type (Gtk2::StateType) o $area (Gtk2::Gdk::Rectangle or undef) o $widget (Gtk2::Widget or undef) o $detail (string or undef) o $x (integer) o $y (integer) o $width (integer) o $height (integer) $style->paint_handle ($window, $state_type, $shadow_type, $area, $widget, $detail, $x, $y, $width, $height, $orientation) o $window (Gtk2::Gdk::Drawable) o $state_type (Gtk2::StateType) o $shadow_type (Gtk2::ShadowType) o $area (Gtk2::Gdk::Rectangle or undef) o $widget (Gtk2::Widget or undef) o $detail (string) o $x (integer) o $y (integer) o $width (integer) o $height (integer) o $orientation (Gtk2::Orientation) $style->paint_hline ($window, $state_type, $area, $widget, $detail, $x1, $x2, $y) o $window (Gtk2::Gdk::Drawable) o $state_type (Gtk2::StateType) o $area (Gtk2::Gdk::Rectangle or undef) o $widget (Gtk2::Widget or undef) o $detail (string or undef) o $x1 (integer) o $x2 (integer) o $y (integer) $style->paint_layout ($window, $state_type, $use_text, $area, $widget, $detail, $x, $y, $layout) o $window (Gtk2::Gdk::Drawable) o $state_type (Gtk2::StateType) o $use_text (boolean) o $area (Gtk2::Gdk::Rectangle or undef) o $widget (Gtk2::Widget or undef) o $detail (string or undef) o $x (integer) o $y (integer) o $layout (Pango::Layout) $style->paint_option ($window, $state_type, $shadow_type, $area, $widget, $detail, $x, $y, $width, $height) o $window (Gtk2::Gdk::Drawable) o $state_type (Gtk2::StateType) o $shadow_type (Gtk2::ShadowType) o $area (Gtk2::Gdk::Rectangle or undef) o $widget (Gtk2::Widget) o $detail (string or undef) o $x (integer) o $y (integer) o $width (integer) o $height (integer) $style->paint_polygon ($window, $state_type, $shadow_type, $area, $widget, $detail, $fill, $x1, $y1, ...) o $window (Gtk2::Gdk::Drawable) o $state_type (Gtk2::StateType) o $shadow_type (Gtk2::ShadowType) o $area (Gtk2::Gdk::Rectangle or undef) o $widget (Gtk2::Widget or undef) o $detail (string or undef) o $fill (boolean) o $x1 (integer) x coordinate of the first vertex o $y1 (integer) y coordinate of the first vertex o ... (list) pairs of x and y coordinates $style->paint_resize_grip ($window, $state_type, $area, $widget, $detail, $edge, $x, $y, $width, $height) o $window (Gtk2::Gdk::Drawable) o $state_type (Gtk2::StateType) o $area (Gtk2::Gdk::Rectangle or undef) o $widget (Gtk2::Widget or undef) o $detail (string or undef) o $edge (Gtk2::Gdk::WindowEdge) o $x (integer) o $y (integer) o $width (integer) o $height (integer) $style->paint_shadow ($window, $state_type, $shadow_type, $area, $widget, $detail, $x, $y, $width, $height) o $window (Gtk2::Gdk::Drawable) o $state_type (Gtk2::StateType) o $shadow_type (Gtk2::ShadowType) o $area (Gtk2::Gdk::Rectangle or undef) o $widget (Gtk2::Widget or undef) o $detail (string or undef) o $x (integer) o $y (integer) o $width (integer) o $height (integer) $style->paint_shadow_gap ($window, $state_type, $shadow_type, $area, $widget, $detail, $x, $y, $width, $height, $gap_side, $gap_x, $gap_width) o $window (Gtk2::Gdk::Drawable) o $state_type (Gtk2::StateType) o $shadow_type (Gtk2::ShadowType) o $area (Gtk2::Gdk::Rectangle or undef) o $widget (Gtk2::Widget or undef) o $detail (string or undef) o $x (integer) o $y (integer) o $width (integer) o $height (integer) o $gap_side (Gtk2::PositionType) o $gap_x (integer) o $gap_width (integer) $style->paint_slider ($window, $state_type, $shadow_type, $area, $widget, $detail, $x, $y, $width, $height, $orientation) o $window (Gtk2::Gdk::Drawable) o $state_type (Gtk2::StateType) o $shadow_type (Gtk2::ShadowType) o $area (Gtk2::Gdk::Rectangle or undef) o $widget (Gtk2::Widget or undef) o $detail (string or undef) o $x (integer) o $y (integer) o $width (integer) o $height (integer) o $orientation (Gtk2::Orientation) $style->paint_tab ($window, $state_type, $shadow_type, $area, $widget, $detail, $x, $y, $width, $height) o $window (Gtk2::Gdk::Drawable) o $state_type (Gtk2::StateType) o $shadow_type (Gtk2::ShadowType) o $area (Gtk2::Gdk::Rectangle or undef) o $widget (Gtk2::Widget) o $detail (string or undef) o $x (integer) o $y (integer) o $width (integer) o $height (integer) $style->paint_vline ($window, $state_type, $area, $widget, $detail, $y1_, $y2_, $x) o $window (Gtk2::Gdk::Drawable) o $state_type (Gtk2::StateType) o $area (Gtk2::Gdk::Rectangle or undef) o $widget (Gtk2::Widget or undef) o $detail (string or undef) o $y1_ (integer) o $y2_ (integer) o $x (integer) pixbuf = $style->render_icon ($source, $direction, $state, $size, $widget, $detail=undef) o $source (Gtk2::IconSource) o $direction (Gtk2::TextDirection) o $state (Gtk2::StateType) o $size (Gtk2::IconSize) o $widget (Gtk2::Widget or undef) o $detail (string or undef) $style->get_style_property ($widget_package, ...) o $widget_package (string) o ... (list) Since: gtk+ 2.16 color = $style->text ($state) o $state (Gtk2::StateType) color = $style->text_aa ($state) o $state (Gtk2::StateType) gc = $style->text_aa_gc ($state) o $state (Gtk2::StateType) gc = $style->text_gc ($state) o $state (Gtk2::StateType) scalar = $style->white scalar = $style->white_gc scalar = $style->xthickness scalar = $style->ythickness SIGNALS
realize (Gtk2::Style) unrealize (Gtk2::Style) ENUMS AND FLAGS
enum Gtk2::ArrowType o 'up' / 'GTK_ARROW_UP' o 'down' / 'GTK_ARROW_DOWN' o 'left' / 'GTK_ARROW_LEFT' o 'right' / 'GTK_ARROW_RIGHT' o 'none' / 'GTK_ARROW_NONE' enum Gtk2::ExpanderStyle o 'collapsed' / 'GTK_EXPANDER_COLLAPSED' o 'semi-collapsed' / 'GTK_EXPANDER_SEMI_COLLAPSED' o 'semi-expanded' / 'GTK_EXPANDER_SEMI_EXPANDED' o 'expanded' / 'GTK_EXPANDER_EXPANDED' enum Gtk2::Gdk::WindowEdge o 'north-west' / 'GDK_WINDOW_EDGE_NORTH_WEST' o 'north' / 'GDK_WINDOW_EDGE_NORTH' o 'north-east' / 'GDK_WINDOW_EDGE_NORTH_EAST' o 'west' / 'GDK_WINDOW_EDGE_WEST' o 'east' / 'GDK_WINDOW_EDGE_EAST' o 'south-west' / 'GDK_WINDOW_EDGE_SOUTH_WEST' o 'south' / 'GDK_WINDOW_EDGE_SOUTH' o 'south-east' / 'GDK_WINDOW_EDGE_SOUTH_EAST' enum Gtk2::IconSize o 'invalid' / 'GTK_ICON_SIZE_INVALID' o 'menu' / 'GTK_ICON_SIZE_MENU' o 'small-toolbar' / 'GTK_ICON_SIZE_SMALL_TOOLBAR' o 'large-toolbar' / 'GTK_ICON_SIZE_LARGE_TOOLBAR' o 'button' / 'GTK_ICON_SIZE_BUTTON' o 'dnd' / 'GTK_ICON_SIZE_DND' o 'dialog' / 'GTK_ICON_SIZE_DIALOG' enum Gtk2::Orientation o 'horizontal' / 'GTK_ORIENTATION_HORIZONTAL' o 'vertical' / 'GTK_ORIENTATION_VERTICAL' enum Gtk2::PositionType o 'left' / 'GTK_POS_LEFT' o 'right' / 'GTK_POS_RIGHT' o 'top' / 'GTK_POS_TOP' o 'bottom' / 'GTK_POS_BOTTOM' enum Gtk2::ShadowType o 'none' / 'GTK_SHADOW_NONE' o 'in' / 'GTK_SHADOW_IN' o 'out' / 'GTK_SHADOW_OUT' o 'etched-in' / 'GTK_SHADOW_ETCHED_IN' o 'etched-out' / 'GTK_SHADOW_ETCHED_OUT' enum Gtk2::StateType o 'normal' / 'GTK_STATE_NORMAL' o 'active' / 'GTK_STATE_ACTIVE' o 'prelight' / 'GTK_STATE_PRELIGHT' o 'selected' / 'GTK_STATE_SELECTED' o 'insensitive' / 'GTK_STATE_INSENSITIVE' enum Gtk2::TextDirection o 'none' / 'GTK_TEXT_DIR_NONE' o 'ltr' / 'GTK_TEXT_DIR_LTR' o 'rtl' / 'GTK_TEXT_DIR_RTL' SEE ALSO
Gtk2, Glib::Object COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice. perl v5.12.1 2010-07-05 Gtk2::Style(3)
Man Page