[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: window border
- From: "muppet" <scott asofyet org>
- To: gtk-perl-list gnome org
- Subject: Re: window border
- Date: Wed, 27 Aug 2003 14:48:32 -0400 (EDT)
Chas Owens said:
> Muppet, it seems that many of the widgets don't implement properties.
actually, they do.
properties are the domain of GObject, and the Glib::Object methods get and set
let you manipulate property values on all widgets, objects, etc. implementing
get_foo/set_foo accessors is then technically just sugar, so only the ones
that are documented in the C API are bound to perl.
> Gtk2::Container properties
> "border-width" gulong : Read / Write
> "resize-mode" GtkResizeMode : Read / Write
> "child" GtkWidget : Write
$container->set (border_width => 4);
$widget = $container->get ('child');
this is also very useful:
use Data::Dumper;
print Dumper( \( $widget->list_properties \) );
--
muppet <scott at asofyet dot org>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]