Next:
Gtk2::Table
Previous:
Gtk2::Stock
 [Gtk2-Perl - Table of Contents][Gtk2-Perl - Index]

Gtk2::Style



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)

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->black

scalar = $style->black_gc

style = $style->copy

color = $style->dark ($state)

gc = $style->dark_gc ($state)

$style->detach

Gtk2->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_desc

list = $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_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)

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_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)

color = $style->text ($state)

color = $style->text_aa ($state)

gc = $style->text_aa_gc ($state)

gc = $style->text_gc ($state)

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

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 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.


[Top] Generated by Marek::Pod::HTML 0.49 on Wed Dec 16 23:03:47 2009