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