Create  Edit  FrontPage  Index  Search  Changes  History  RSS  Login



In order to allow construction from a Gtk::Builder UI description, an object class must implement the Gtk::Buildable interface. The interface includes methods for setting names and properties of objects, parsing custom tags, constructing child objects.

The Gtk::Buildable interface is implemented by all widgets and many of the non-widget objects that are provided by GTK+. The main user of this interface is Gtk::Builder, there should be very little need for applications to call any Gtk::Buildable's functions.

Instance Methods

add_child(builder, child, type)
Adds a child to self. type is an optional string describing how the child should be added.
  • builder: a Gtk::Builder
  • child: child to add
  • type: kind of child or nil
  • Returns: self
construct_child(builder, name)

Constructs a child of self with the name name.

Gtk::Builder calls this function if a "constructor" has been specified in the UI definition.

  • builder: Gtk::Builder used to construct this object
  • name: name of child to construct
  • Returns: the constructed child
get_internal_child(builder, child_name)
Get the internal child called child_name of the buildable object.
  • builder: a Gtk::Builder
  • child_name: name of child
  • Returns: the internal child of self

Gets the name of self.

Gtk::Builder sets the name based on the Gtk::Builder UI definition used to construct self.

Sets the name of self.
  • name: name to set.
  • Returns: name
set_buildable_property(builder, name, value)
Sets the property name name to value on the object.
  • builder: Gtk::Builder.
  • name: name of property as String.
  • value: value of property.
  • Returns: self
Same as Gtk::Buildable#name=.
  • name: name to set.
  • Returns: self
  • Returns: self: FIXME
  • Returns: self: FIXME
  • Returns: self: FIXME


  • 2008-04-13: kou: add.
Last modified:2010/10/30 23:52:10
References:[index-ruby-gtk2] [Gtk::RecentChooserMenu] [Gnome::About] [Gtk::Range] [Gtk::TearoffMenuItem] [Gtk::ColorSelection] [Gtk::Separator] [Gtk::InputDialog] [Gtk::MessageDialog] [Gtk::ToolButton] [Gtk::Container] [Gtk::SeparatorToolItem] [Gnome::Entry] [Gtk::Widget] [Gtk::Invisible] [Gtk::SizeGroup] [Gtk::PrintUnixDialog] [Gnome::IconSelection] [Gtk::RadioMenuItem] [Gtk::Ruler] [Gtk::Dialog] [Gtk::Combo] [Gtk::Scale] [Gtk::ScaleButton] [Gtk::Box] [Gtk::FileChooserDialog] [Gtk::RecentAction] [Gtk::HPaned] [Gtk::Misc] [Gtk::FileChooserButton] [Gtk::Button] [Gtk::ToolItem] [Gtk::Notebook] [Gtk::VolumeButton] [Gtk::VScrollbar] [Gtk::Expander] [Gtk::AboutDialog] [Gtk::TextView] [Gtk::Label] [Gtk::UIManager] [Gtk::RadioButton] [Gtk::Window] [Gtk::TreeStore] [Gtk::IconFactory] [Gtk::RecentChooserDialog] [Gtk::MozEmbed] [Gnome::HRef] [Gnome::FileEntry] [Ruby/GTK] [Bonobo::UI::Engine] [Gtk::ButtonBox] [Bonobo::DockBand] [Gtk::FileChooserWidget] [Gtk::ScrolledWindow] [Gtk::HButtonBox] [Gnome::DateEdit] [Gtk::TreeView] [Gnome::PopupMenu] [Gtk::Plug] [Bonobo::Dock] [Gtk::Buildable] [Gnome::FontPreview] [Gtk::Socket] [Gtk::Calendar] [Gtk::HtmlView] [Gnome::DruidPageStandard] [Gtk::VPaned] [Gnome::IconEntry] [Gtk::LinkButton] [Gtk::RecentChooserWidget] [Gtk::ColorButton] [Gtk::AspectFrame] [Gnome::FontPicker] [tut-gtk2-btt-bttbox] [Gnome::App] [Gtk::Entry] [Gtk::SourceView] [Gtk::CheckButton] [Gtk::Alignment] [Gtk::Bin] [Gnome::ColorPicker] [Gtk::FontButton] [Gtk::OptionMenu] [News_20100923_1] [Gtk::VRuler] [Gtk::ListStore] [Bonobo::Window] [Gtk::Image] [Gtk::TreeViewColumn] [Gtk::HtmlEmbedded] [Gnome::IconList] [Gnome::Scores] [Gtk::Progress] [Gtk::Frame] [Gtk::MenuShell] [Gtk::GammaCurve] [Gtk::Toolbar] [Gnome::PrintUnitSelector] [Gnome::PrintConfigDialog] [Gtk::HRuler] [Gnome::DruidPage] [Gtk::Viewport] [Gtk::IconView] [Gnome::FontSelection] [Gtk::Scrollbar] [Gtk::RadioToolButton] [Vte::Terminal] [Gtk::MenuItem] [Gtk::HScrollbar] [Gtk::ToggleAction] [Gtk::HBox] [Gtk::VSeparator] [Gtk::HSeparator] [Gnome::FontDialog] [Gtk::PageSetupUnixDialog] [Bonobo::DockItem] [Gnome::PrintContentSelector] [Gtk::Table] [Gnome::Druid] [Gtk::HandleBox] [Gtk::EventBox] [Gtk::CheckMenuItem] [Gnome::PixmapEntry] [Gtk::FontSelection] [Gtk::DrawingArea] [Gtk::ImageMenuItem] [Gtk::SpinButton] [Gtk::AccelLabel] [Gtk::Builder] [Gtk::ProgressBar] [Gtk::Item] [Gtk::FontSelectionDialog] [Gtk::EntryCompletion] [Gtk::HScale] [Gtk::Assistant] [Gtk::ComboBox] [Gtk::Menu] [Gtk::ActionGroup] [Gtk::FileSelection] [Gtk::ComboBoxEntry] [Gnome::PrintJobPreview] [Gtk::ToggleToolButton] [Gtk::MenuBar] [Gtk::MenuToolButton] [Gtk::VScale] [Gtk::Arrow] [tut-gtk2-contwidg-hvbox] [Gnome::DruidPageEdge] [Gnome::PaperSelector] [Gtk::CellView] [Gtk::VButtonBox] [Gtk::Statusbar] [Gtk::Layout] [Gnome::PrintDialog] [Gtk::RadioAction] [Gnome::Canvas] [Gnome::AppBar] [Gtk::Fixed] [Gtk::Curve] [Gtk::ToggleButton] [Gtk::VBox] [Gtk::ColorSelectionDialog] [Gtk::Action] [Gtk::SeparatorMenuItem] [Gtk::Paned]