Crea  Modifica  FrontPage  Indici  Cerca  Ultime modifiche  History  RSS  Login

Gtk::Object

class Gtk::Object

Gtk::Object is the base class for all widgets, and for a few non-widget objects such as Gtk::Adjustment. Gtk::Object predates GLib::Object; non-widgets that derive from Gtk::Object rather than GLib::Object do so for backward compatibility reasons.

In Ruby/GTK, one of the difference between Gtk::Object and GLib::Object is the "destroy" signal, emitted by the Gtk::Object#destroy method. The "destroy" signal asks all code owning a reference to an object to release said reference. So, for example, if you call Gtk::Object#destroy on a Gtk::Window, Ruby/GTK will release it; if you call Gtk::Object#destroy on a Gtk::Button, then the button will be removed from its parent container and the parent container will release its reference to the button.

Instance Methods

destroy
Emits the "destroy" signal notifying all reference holders that they should release the Gtk::Object.
flags
Gets the GtkObjectFlags for an object without directly accessing its members.
flags=(flags)
Sets the GtkObjectFlags for an object without directly accessing its members.
set_flags(flags)
Same as Gtk::Object#flags=.
unset_flags(flags)
Unsets the GtkObjectFlags for an object without directly accessing.

Constants

GtkObjectFlags

FLOATING
the object is orphaned.
IN_DESTRUCTION
the object is currently being destroyed. This is used internally by GTK+ to prevent reinvokations during destruction.
RESERVED_1
reserved for future use
RESERVED_2
reserved for future use

Properties

user-data: GLib::Pointer (Read/Write)
Anonymous User Data Pointer. You can't use this from ruby.
Ultima modifica:2005/11/17 02:43:41
Parola chiave:
Referenze:[Gnome::PaperSelector] [Gtk::Arrow] [Gtk::Curve] [Gtk::RadioToolButton] [Gtk::CellRendererText] [Gtk::MenuToolButton] [Gtk::ItemFactory] [Gtk::IconView] [Gtk::FontButton] [Gtk::Expander] [Gtk::CellRendererSpin] [Gtk::HRuler] [Gnome::PrintJobPreview] [Gtk::Separator] [Gtk::DrawingArea] [Gtk::CellRendererCombo] [Gtk::FileSelection] [Gtk::AccelLabel] [Gtk::RecentChooserMenu] [Gtk::Box] [Gtk::HandleBox] [Gnome::PrintConfigDialog] [Gtk::SeparatorToolItem] [Gtk::FileChooserWidget] [Gtk::SourceView] [Gtk::RadioButton] [Gtk::ToolButton] [Gtk::VBox] [Gtk::FontSelectionDialog] [Gtk::MozEmbed] [Gtk::HButtonBox] [Gtk::Dialog] [Gtk::ButtonBox] [Gtk::TreeViewColumn] [Gtk::Layout] [Gtk::AspectFrame] [Gtk::ToggleButton] [Gtk::Menu] [Gtk::Table] [Gnome::FontSelection] [Gnome::FontDialog] [Gtk::CellView] [Gtk::InputDialog] [Gtk::Combo] [Gtk::Progress] [Gtk::RadioMenuItem] [Gtk::TreeView] [Gtk::TextView] [Gtk::ProgressBar] [Gtk::FileFilter] [Gtk::VScrollbar] [Gtk::FileChooserDialog] [Gnome::FontPreview] [Gtk::HScrollbar] [Gtk::SpinButton] [Gtk::ImageMenuItem] [Gtk::SeparatorMenuItem] [Gtk::Misc] [Gtk::ColorSelection] [Gtk::Plug] [Gtk::PageSetupUnixDialog] [Gtk::HPaned] [Gtk::ComboBox] [Gtk::Item] [Gtk::EventBox] [Gtk::Alignment] [Gtk::PrintUnixDialog] [Gtk::AboutDialog] [Gtk::FontSelection] [Gtk::Ruler] [Gtk::Paned] [Gtk::Bin] [Gtk::RecentChooserWidget] [Gtk::Image] [Gtk::Calendar] [Gtk::HSeparator] [Gtk::ToolItem] [Gtk::HScale] [Gtk::HBox] [Gtk::Tooltips] [Gtk::MessageDialog] [Gtk::Statusbar] [Gtk::TrayIcon] [Gtk::ScrolledWindow] [Gtk::CellRendererProgress] [Gtk::Label] [Gtk::TearoffMenuItem] [Gtk::CellRendererPixbuf] [Gtk::MenuShell] [Gtk::MenuBar] [Gtk::Scrollbar] [Gtk::VRuler] [Gtk::Invisible] [Gtk::OptionMenu] [Gnome::PrintUnitSelector] [Gtk::CellRenderer] [Gtk::VPaned] [Gtk::FileChooserButton] [Gtk::Adjustment] [Gtk::Range] [Gtk::Container] [Gtk::CellRendererAccel] [Gtk::Toolbar] [Gtk::Scale] [Gtk::Socket] [Gtk::ColorButton] [Gtk::Notebook] [Gtk::Frame] [Gtk::VSeparator] [Gtk::Object] [Gtk::CellRendererToggle] [Gtk::Widget] [Gtk::Window] [Gtk::VButtonBox] [Gtk::MenuItem] [Gtk::BindingSet] [Gtk::VScale] [Gnome::PrintDialog] [Vte::Terminal] [Gtk::ToggleToolButton] [Gtk::RecentChooserDialog] [Gtk::CheckButton] [Gtk::Viewport] [Gtk::Assistant] [Gtk::ColorSelectionDialog] [Gtk::Entry] [Gtk::ComboBoxEntry] [Gtk::Button] [Gtk::Fixed] [Gtk::CheckMenuItem]