Gtk2::Gdk::GC man page on Peanut
[printable version]
Gtk2::Gdk::GC(3) User Contributed Perl Documentation Gtk2::Gdk::GC(3)
NAME
Gtk2::Gdk::GC
HIERARCHY
Glib::Object
+----Gtk2::Gdk::GC
METHODS
gc = Gtk2::Gdk::GC->new ($drawable, $values=undef)
· $drawable (Gtk2::Gdk::Drawable)
· $values (scalar)
gc = Gtk2::Gdk::GC->new_with_values ($drawable, $values=undef)
· $drawable (Gtk2::Gdk::Drawable)
· $values (scalar)
$gc->set_background ($color)
· $color (Gtk2::Gdk::Color)
$gc->set_clip_mask ($mask)
· $mask (scalar)
$gc->set_clip_origin ($x, $y)
· $x (integer)
· $y (integer)
$gc->set_clip_rectangle ($rectangle)
· $rectangle (Gtk2::Gdk::Rectangle or undef)
$gc->set_clip_region ($region)
· $region (Gtk2::Gdk::Region or undef)
colormap = $gc->get_colormap
$gc->set_colormap ($colormap)
· $colormap (Gtk2::Gdk::Colormap)
$dst_gc->copy ($src_gc)
· $src_gc (Gtk2::Gdk::GC)
$gc->set_dashes ($dash_offset, ...)
· $dash_offset (integer)
· ... (list) of integers, the length of the dash segments
Sets the way dashed-lines are drawn. Lines will be drawn with
alternating on and off segments of the lengths specified in list of
dashes. The manner in which the on and off segments are drawn is
determined by the line_style value of the GC.
$gc->set_exposures ($exposures)
· $exposures (boolean)
$gc->set_fill ($fill)
· $fill (Gtk2::Gdk::Fill)
$gc->set_font ($font)
· $font (Gtk2::Gdk::Font)
$gc->set_foreground ($color)
· $color (Gtk2::Gdk::Color)
$gc->set_function ($function)
· $function (Gtk2::Gdk::Function)
$gc->set_line_attributes ($line_width, $line_style, $cap_style,
$join_style)
· $line_width (integer)
· $line_style (Gtk2::Gdk::LineStyle)
· $cap_style (Gtk2::Gdk::CapStyle)
· $join_style (Gtk2::Gdk::JoinStyle)
$gc->offset ($x_offset, $y_offset)
· $x_offset (integer)
· $y_offset (integer)
$gc->set_rgb_background ($rgb)
· $rgb (unsigned)
$gc->set_rgb_bg_color ($color)
· $color (Gtk2::Gdk::Color)
$gc->set_rgb_fg_color ($color)
· $color (Gtk2::Gdk::Color)
$gc->set_rgb_foreground ($rgb)
· $rgb (unsigned)
$gc->rgb_gc_set_background ($rgb)
· $rgb (unsigned)
$gc->rgb_gc_set_foreground ($rgb)
· $rgb (unsigned)
screen = $gc->get_screen
$gc->set_stipple ($stipple)
· $stipple (Gtk2::Gdk::Pixmap)
$gc->set_subwindow ($mode)
· $mode (Gtk2::Gdk::SubwindowMode)
$gc->set_tile ($tile)
· $tile (Gtk2::Gdk::Pixmap)
$gc->set_ts_origin ($x, $y)
· $x (integer)
· $y (integer)
scalar = $gc->get_values
$gc->set_values ($values)
· $values (scalar)
ENUMS AND FLAGS
enum Gtk2::Gdk::CapStyle
· 'not-last' / 'GDK_CAP_NOT_LAST'
· 'butt' / 'GDK_CAP_BUTT'
· 'round' / 'GDK_CAP_ROUND'
· 'projecting' / 'GDK_CAP_PROJECTING'
enum Gtk2::Gdk::Fill
· 'solid' / 'GDK_SOLID'
· 'tiled' / 'GDK_TILED'
· 'stippled' / 'GDK_STIPPLED'
· 'opaque-stippled' / 'GDK_OPAQUE_STIPPLED'
enum Gtk2::Gdk::Function
· 'copy' / 'GDK_COPY'
· 'invert' / 'GDK_INVERT'
· 'xor' / 'GDK_XOR'
· 'clear' / 'GDK_CLEAR'
· 'and' / 'GDK_AND'
· 'and-reverse' / 'GDK_AND_REVERSE'
· 'and-invert' / 'GDK_AND_INVERT'
· 'noop' / 'GDK_NOOP'
· 'or' / 'GDK_OR'
· 'equiv' / 'GDK_EQUIV'
· 'or-reverse' / 'GDK_OR_REVERSE'
· 'copy-invert' / 'GDK_COPY_INVERT'
· 'or-invert' / 'GDK_OR_INVERT'
· 'nand' / 'GDK_NAND'
· 'nor' / 'GDK_NOR'
· 'set' / 'GDK_SET'
enum Gtk2::Gdk::JoinStyle
· 'miter' / 'GDK_JOIN_MITER'
· 'round' / 'GDK_JOIN_ROUND'
· 'bevel' / 'GDK_JOIN_BEVEL'
enum Gtk2::Gdk::LineStyle
· 'solid' / 'GDK_LINE_SOLID'
· 'on-off-dash' / 'GDK_LINE_ON_OFF_DASH'
· 'double-dash' / 'GDK_LINE_DOUBLE_DASH'
enum Gtk2::Gdk::SubwindowMode
· 'clip-by-children' / 'GDK_CLIP_BY_CHILDREN'
· 'include-inferiors' / 'GDK_INCLUDE_INFERIORS'
SEE ALSO
Gtk2, Glib::Object
COPYRIGHT
Copyright (C) 2003-2006 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
perl v5.10.0 2008-08-29 Gtk2::Gdk::GC(3)
[top]
List of man pages available for Peanut
Copyright (c) for man pages and the logo by the respective OS vendor.
For those who want to learn more, the polarhome community provides shell access and support.
[legal]
[privacy]
[GNU]
[policy]
[cookies]
[netiquette]
[sponsors]
[FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
|
Vote for polarhome
|