Create  Edit  FrontPage  Index  Search  Changes  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.

Class Methods

Gtk::Object.binding_set
  • Returns: self: FIXME

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.
bindings_activate
  • Returns: self: FIXME
type_name
  • Returns: self: FIXME

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.
Last modified:2008/04/10 11:01:33
Keyword(s):
References:[Gtk::RadioButton] [Gtk::BindingSet] [Gtk::RecentFilter] [Gnome::FileEntry] [Gtk::Adjustment] [Gtk::Viewport] [Gtk::VButtonBox] [Gtk::Invisible] [Gnome::CanvasShape] [Gtk::FontSelectionDialog] [Gtk::RecentChooserWidget] [Gtk::ItemFactory] [Gtk::ScrolledWindow] [Gnome::PopupMenu] [Gtk::CellRendererSpin] [Gtk::EventBox] [Gtk::MenuToolButton] [Gtk::FontSelection] [Bonobo::Window] [Gtk::ButtonBox] [Gtk::Menu] [Gtk::Image] [Gtk::Bin] [Bonobo::UI::Engine] [Gtk::RecentChooserMenu] [Gtk::MenuItem] [Bonobo::Dock] [Gtk::CellRendererText] [Gnome::CanvasWidget] [Gtk::CellRendererProgress] [Gtk::Entry] [Gtk::TreeView] [Gtk::AboutDialog] [Gnome::IconTextItem] [Gtk::VBox] [tut-gtk2-numtxt-spinbttns] [Gtk::Assistant] [Gtk::TearoffMenuItem] [Gtk::Calendar] [Gtk::HSeparator] [Gtk::ImageMenuItem] [Gtk::RecentChooserDialog] [Gtk::ToggleToolButton] [News (2018-04-09 No.1)] [Gtk::Paned] [Gnome::FontPreview] [Gnome::CanvasItem] [Gnome::CanvasClipgroup] [Gtk::Frame] [Gtk::CellRendererPixbuf] [Gnome::Scores] [Gtk::LinkButton] [Gtk::MenuBar] [Gtk::Statusbar] [Gtk::FileFilter] [Gtk::AccelLabel] [Gtk::Layout] [Bonobo::DockBand] [Gtk::Widget] [Gtk::IconView] [Vte::Terminal] [News_20040308_1] [Gtk::Ruler] [Gtk::FileChooserWidget] [Gnome::IconSelection] [Gnome::Druid] [Gnome::PrintContentSelector] [Gnome::Canvas] [Gtk::AspectFrame] [Gnome::CanvasLine] [Gnome::CanvasEllipse] [Gtk::Scale] [Gtk::ToolItem] [Gtk::VolumeButton] [Gtk::TreeViewColumn] [Gnome::CanvasPixbuf] [Gtk::CheckButton] [Gnome::PixmapEntry] [Gtk::Label] [index-ruby-gtk2] [Gtk::Curve] [Gtk::CellView] [Gtk::Alignment] [Gtk::HRuler] [Gtk::VScrollbar] [Gtk::Toolbar] [Gnome::PaperSelector] [Gtk::VRuler] [Gnome::FontSelection] [Gtk::HtmlView] [Gnome::About] [Ruby/PanelApplet] [Gtk::Socket] [Gtk::Scrollbar] [Gnome::PrintUnitSelector] [Gtk::InputDialog] [Gtk::Fixed] [Gtk::VPaned] [Gtk::VScale] [Gnome::CanvasGroup] [Gtk::ColorButton] [Gtk::PrintUnixDialog] [Gtk::HPaned] [Gtk::CheckMenuItem] [Gnome::FontDialog] [Gtk::Progress] [Gtk::Object] [Gtk::DrawingArea] [Gnome::IconList] [ruby-gtk-object-hierarchy] [Gtk::CellRendererToggle] [Gtk::ProgressBar] [Gnome::CanvasBpath] [Gtk::ColorSelectionDialog] [Gtk::Item] [Gtk::HBox] [Gnome::PrintConfigDialog] [Ruby/GTK] [Gtk::ToggleButton] [Gtk::Button] [Gtk::Arrow] [Gtk::CellRendererAccel] [Gtk::SeparatorToolItem] [Gtk::HScale] [Gtk::Misc] [Gtk::SeparatorMenuItem] [Gtk::Range] [Gtk::OptionMenu] [Gtk::MenuShell] [Gnome::Entry] [Gtk::RadioMenuItem] [Gtk::CellRenderer] [Bonobo::DockItem] [Gtk::Dialog] [Gtk::ScaleButton] [Gnome::CanvasRect] [Gtk::Box] [Gnome::IconEntry] [Gnome::PrintDialog] [Gnome::CanvasRichText] [Gnome::HRef] [Gtk::Plug] [Gtk::FileChooserDialog] [Gtk::PageSetupUnixDialog] [Gnome::CanvasRE] [Gtk::Expander] [Gnome::AppBar] [Gtk::ColorSelection] [Gtk::MozEmbed] [Gtk::FileChooserButton] [Gnome::DruidPageStandard] [Gtk::Separator] [Gnome::DateEdit] [Gnome::App] [Gtk::VSeparator] [Gtk::TrayIcon] [Gtk::Object::Flags] [Gtk::Notebook] [Gtk::SpinButton] [Gtk::FileSelection] [Gtk::ComboBoxEntry] [Gnome::PrintJobPreview] [Gtk::Combo] [Gnome::ColorPicker] [api-gtk-index] [Gtk::GammaCurve] [Gnome::DruidPageEdge] [Gtk::HandleBox] [Gtk::Window] [Gnome::DruidPage] [Gnome::Client] [Gtk::ToolButton] [Gtk::HtmlEmbedded] [Gtk::MessageDialog] [Gtk::HScrollbar] [Gtk::ComboBox] [Gtk::SourceView] [tut-gtk2-dynui-bui] [Gnome::CanvasPolygon] [Gtk::Container] [Gtk::HButtonBox] [Gtk::FontButton] [Gtk::Tooltips] [Gtk::CellRendererCombo] [Gtk::TextView] [Gnome::FontPicker] [Gtk::Table] [Gtk::RadioToolButton] [Gnome::CanvasText]