新規作成  編集  Ruby-GNOME2 Project Website  ページ一覧  検索  更新履歴  編集履歴  RSS  ログイン

Gtk::Object

Gtk::Object クラス

Ruby/GTK2 only

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.

インスタンスメソッド

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()
要編集
type_name()
要編集

定数

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

プロパティ

user-data: GLib::Pointer (Read/Write)
Anonymous User Data Pointer. You can't use this from ruby.

更新履歴

  • 2014-06-16 クラスのメンバで漏れていたものを追加。 - きたがわ
  • Masao?
更新日時:2014/09/11 14:15:06
キーワード:
参照:[Gtk::AccelLabel] [Gtk::ToggleToolButton] [Gtk::EventBox] [Gtk::CheckMenuItem] [Gtk::Plug] [Gtk::CellRendererProgress] [Gtk::Ruler] [Gtk::Socket] [Gtk::Button] [Gtk::HandleBox] [Gtk::VRuler] [Gtk::CellRenderer] [Gtk::TearoffMenuItem] [Gtk::Statusbar] [アイテムファクトリ] [Gtk::CellRendererToggle] [Gtk::FileFilter] [Gtk::HBox] [Gtk::ButtonBox] [Gtk::Window] [Gtk::Paned] [Gtk::VPaned] [Gtk::Layout] [Gtk::HPaned] [Gtk::CellRendererCombo] [Gtk::CheckButton] [Gtk::CellRendererPixbuf] [Gtk::BindingSet] [Gtk::RadioButton] [Gtk::Expander] [Gtk::Menu] [Gtk::ScrolledWindow] [Gtk::CellView] [Gtk::VScale] [Gtk::ColorSelectionDialog] [Gtk::ProgressBar] [Gtk::Fixed] [Gtk::VButtonBox] [Gtk::CellRendererText] [Gtk::Toolbar] [Gtk::RadioMenuItem] [Gtk::ColorSelection] [Gtk::FileChooserWidget] [Gtk::MenuToolButton] [Gtk::FontSelection] [Gtk::TextView] [Gtk::OptionMenu] [Gtk::AboutDialog] [Gtk::HButtonBox] [Gtk::Notebook] [Gtk::HSeparator] [Gtk::MessageDialog] [Gtk::HRuler] [Gtk::ComboBox] [Gtk::SeparatorToolItem] [Gtk::InputDialog] [ウインドウ] [Gtk::Progress] [Gtk::DrawingArea] [Gtk::AspectFrame] [Gtk::TreeView] [Gtk::Container] [Vte::Terminal] [Gtk::MenuItem] [Gtk::SpinButton] [Gtk::Label] [Gtk::FontButton] [Gtk::ToggleButton] [Gtk::MenuShell] [Gtk::Box] [Gtk::Curve] [Gtk::HScale] [Gtk::Table] [Gtk::RadioToolButton] [Gtk::SourceView] [Gtk::MenuBar] [Ruby/GTK Object Hierarchy] [Gtk::FileChooserDialog] [Gtk::ToolButton] [Gtk::VScrollbar] [Gtk::VBox] [Gtk::FileSelection] [Gtk::Frame] [Gtk::Object] [Gtk::Misc] [Gtk::Widget] [Gtk::Invisible] [Gtk::Separator] [Gtk::Tooltips] [Gtk::FileChooserButton] [libglade2-tut] [Gtk::Arrow] [Gtk::Alignment] [Gtk::ComboBoxEntry] [Gtk::Bin] [Gtk::Combo] [Gtk::TrayIcon] [Gtk::Item] [Gtk::ToolItem] [Gtk::HScrollbar] [Gtk::Calendar] [Gtk::ItemFactory] [Ruby/GTK] [Gtk::Adjustment] [Gtk::SeparatorMenuItem] [Gtk::MozEmbed] [Gtk::Scrollbar] [Gtk::ColorButton] [Gtk::Dialog] [Gtk::Range] [gtk2-tut-dialog] [アジャストメント] [Gtk::Entry] [Gtk::VSeparator] [Gtk::Image] [Gtk::FontSelectionDialog] [Gtk::IconView] [Gtk::Scale] [Gtk::ImageMenuItem] [Gtk::TreeViewColumn] [libglade2-tut-tips] [Gtk::Viewport]