Erstellen  Editieren  FrontPage  Index  Suchen  Veränderungen  Verlauf  RSS  Login


class GLib::Object

The base object.

Class Methods

GLib::Object.install_property(pspec, propid = 1)
Installs a new property. This is usually done in the class initializer.
  • property_id: the id for the new property
  • pspec: the GLib::Param? for the new property
  • Returns: nil
Looks up the GLib::Param? for a property of a class.
  • name: the name of the property to look up (Symbol or String)
  • Returns: the GLib::Param? for the property, or raise GLib::NoPropertyError? if the class doesn't have a property of that name = true)
Returns an Array of GLib::Param? for all properties of a class.
  • inherited: if true, also returns GLib::Param?s which are defined by superclasses, otherwise false
  • Returns: an Array of GLib::Param?s = nil)
Creates a new instance of a GLib::Object subtype and sets its properties. Usually this method is overrided by subclasses.
  • params: properties as Hash {prop1 => val1, prop2 => val2, ...} or nil.
  • Returns: self!(params = nil)
Same as This method isn't overrided by subclasses's initialize method.
  • params: properties as Hash {prop1 => val1, prop2 => val2, ...} or nil.
  • Returns: self
GLib::Object.type_register(type_name =
Registers type_name as the name of a new dynamic type derived from parent_type. The type system uses the information contained in the GTypePlugin structure pointed to by plugin to manage the type and its instances (if not abstract). The value of flags determines the nature (e.g. abstract or not) of the type.
  • type_name: the name of the new type. The default is value of
  • Returns: nil

Instance Methods

Emits a "notify" signal for the property property_name on object.
  • property_name: the name of a property installed on the class of object.
  • Returns: self
Stops emission of "notify" signals on object. The signals are queued until GLib::Object#thaw_notify is called on object. This is necessary for accessors that modify multiple properties to prevent premature notification while the object is still being modified.
  • Returns: self
freeze_notify{ ... }
Stops emission of "notify" signals on object with a block. You don't need to call GLib::Object#thaw_notify.
  • Returns: self
Reverts the effect of a previous call to GLib::Object#freeze_notify. This causes all queued "notify" signals on object to be emitted.
  • Returns: self
set_property(name, val)
Sets a property on an object.
  • name: the name of the property to set (String or Symbol)
  • value: the value
  • Returns: self
Gets a property of an object.
  • name: the name of the property to get (String or Symbol)
  • Returns: the value
Return true if the C object has been destroyed.
  • Returns: true if the C object has been destroyed, otherwise false.
Inspect the object.
  • Returns: Inspected String.
Returns current reference count. This is used for debugging of Ruby-GNOME2 itself. Usually user applications don't need to use this method.
  • Returns: self
Internal used only.
  • id: an Symbol
  • Returns: self


notify: self
The notify signal is emitted on an object when one of its properties has been changed. Note that getting this signal doesn't guarantee that the value of the property has actually changed, it may also be emitted when the setter for the property is called to reinstate the previous value. self: the object which received the signal. pspec: the GLib::Param? of the property which changed


  • 2005-05-15 Added. - Masao?
Zuletzt geändert:2005/11/17 02:43:41
Referenzen:[Gtk::Box] [Gst::Object] [Gst::Autoplug] [Gtk::TrayIcon] [Gtk::Frame] [Gtk::VScrollbar] [Gtk::Toolbar] [Gst::PluginFeature] [Gtk::HScrollbar] [Gtk::TextBuffer] [Gtk::Plug] [Gtk::Calendar] [Gst::Pipeline] [Pango::Fontset] [Gtk::RadioButton] [Gdk::PangoRenderer] [Gdk::PixbufAnimation] [Gdk::DragContext] [Gtk::Assistant] [Poppler::ActionUri] [Gtk::ToggleButton] [Gtk::Ruler] [Gtk::ItemFactory] [Gtk::SourceView] [Gda::Export] [Gda::Select] [Gnome::PrintPreview] [Gtk::Container] [Gdk::PixbufAnimationIter] [Gtk::UIManager] [Gtk::ColorSelection] [Gtk::TextView] [Gtk::Curve] [Gtk::AspectFrame] [Gdk::Screen] [Gtk::HRuler] [Gtk::FontSelectionDialog] [Gtk::SourceBuffer] [Gtk::WindowGroup] [Pango::FontFamily] [Gtk::Scale] [Gtk::HScale] [Gdk::Keymap] [Pango::Context] [Gnome::GPANode] [Gtk::Item] [Gtk::Style] [Poppler::Document] [Gtk::Range] [Gtk::Layout] [Gtk::TextTag] [Gdk::Display] [Gda::Connection] [Gdk::GLConfig] [Gdk::Visual] [Poppler::FontInfo] [Gtk::SizeGroup] [Gst::Clock] [Gda::DataModel] [Gtk::CellRendererToggle] [Poppler::ActionLaunch] [Gdk::Window] [Gtk::Scrollbar] [Gnome::PrintConfigDialog] [Gtk::FontButton] [Gtk::FileChooserWidget] [Gtk::MenuToolButton] [Gtk::Alignment] [Gtk::HSeparator] [GladeXML] [Gtk::CellRendererProgress] [Gdk::DisplayManager] [Gdk::Pixmap] [Gtk::ButtonBox] [Gst::Pad] [Gtk::ScrolledWindow] [Gtk::VPaned] [Gtk::CellRenderer] [Gtk::AccelMap] [Gtk::TextTagTable] [Gtk::CheckButton] [Naming and Conversion Rules] [Poppler::ActionNamed] [Gtk::ColorSelectionDialog] [Gtk::ToggleToolButton] [Gdk::PixbufLoader] [Gtk::Tooltips] [Gdk::GLContext] [Poppler::ActionGotoDest] [Gtk::RadioMenuItem] [Gtk::Combo] [Gtk::TreeSelection] [Gtk::MenuShell] [Gtk::TearoffMenuItem] [RSVG::Handle] [Gnome::FontPreview] [Gdk::Image] [Gtk::Statusbar] [Gtk::SeparatorToolItem] [Gtk::Image] [Gtk::Table] [Poppler::ActionMovie] [GConf::Client] [Pango::FontsetSimple] [Gtk::RecentChooserWidget] [Gst::PadTemplate] [Pango::Font] [Gda::Error] [Gst::TypeFindFactory] [Gtk::Entry] [Gtk::FileSelection] [Gtk::Adjustment] [Gtk::Expander] [Gtk::Fixed] [Gtk::HBox] [Gst::SystemClock] [Gtk::PrintSettings] [Gtk::MessageDialog] [Gtk::CellRendererPixbuf] [How to Implement Ruby-GNOME2] [Gtk::ActionGroup] [Gtk::VBox] [Gtk::Accessible] [Gtk::ToggleAction] [Gtk::StatusIcon] [Poppler::Action] [Gtk::RadioAction] [Gtk::PageSetup] [Gtk::ComboBoxEntry] [Gtk::Separator] [Gtk::Arrow] [Gtk::Window] [Gst::SchedulerFactory] [Gst::Scheduler] [Gdk::Pixbuf] [Gtk::TreeModelFilter] [Pango::Renderer] [Gnome::PaperSelector] [Gnome::GPAList] [Gtk::PrintUnixDialog] [Gst::TypeFactory] [Gtk::IconFactory] [Gnome::PrintDialog] [Gtk::Misc] [Gtk::ListStore] [Gtk::OptionMenu] [Gst::Index] [Gnome::PrintJob] [Gnome::PrintJobPreview] [Poppler::ActionGotoRemote] [Gnome::PrintConfig] [Gdk::GC] [Gtk::SourceLanguagesManager] [Gtk::SourceLanguage] [Gnome::GPAModel] [Gtk::AccelLabel] [Vte::Reaper] [Poppler::Attachment] [Gtk::EventBox] [Gtk::FileFilter] [Gtk::Notebook] [Gtk::MenuItem] [Gtk::ComboBox] [Gtk::MozEmbed] [Gtk::CellRendererAccel] [Gtk::Settings] [Pango::FontFace] [Gtk::VRuler] [Gtk::TextChildAnchor] [Gst::ElementFactory] [Poppler::Page] [Gtk::FileChooserButton] [Gtk::SourceMarker] [Gtk::Widget] [Gtk::HPaned] [Gtk::ProgressBar] [Gtk::TreeViewColumn] [Gtk::EntryCompletion] [Gtk::Button] [Gtk::Dialog] [Gtk::PrintContext] [Gst::Thread] [GLib::Boxed] [Gtk::PrintJob] [Gtk::Menu] [Gtk::Object] [Gtk::VSeparator] [Gst::IndexFactory] [Pango::FontMap] [Gst::AutoplugFactory] [Gda::DataModelHash] [Gdk::Colormap] [Gdk::GLPixmap] [Gtk::ImageMenuItem] [Gtk::MenuBar] [Gtk::PrintOperation] [Gtk::SeparatorMenuItem] [Gda::Transaction] [Gtk::CellView] [Gda::Table] [Gtk::FontSelection] [Gdk::PixbufSimpleAnim] [Gtk::SpinButton] [Gtk::Action] [Gtk::TreeView] [Gda::DataModelList] [Gtk::AboutDialog] [Gnome::GPAState] [Gnome::GPASettings] [Gtk::PrintBackend] [Pango::EngineShape] [Gtk::AccelGroup] [Gnome::GPAPrinter] [Gnome::PrintUnitSelector] [Gtk::HButtonBox] [Gda::Client] [Gtk::TreeRowReference] [Gtk::SourceTagTable] [Pango::EngineLang] [Gtk::Bin] [Gtk::Viewport] [Gtk::TreeStore] [Gtk::Label] [Gtk::ColorButton] [Gtk::RecentChooserDialog] [Gst::XML] [Gtk::CellRendererText] [Gtk::RecentChooserMenu] [Gtk::ToolItem] [Gtk::ToolButton] [Pango::Layout] [Gtk::Printer] [Gtk::CellRendererCombo] [Gtk::RcStyle] [Gnome::FontDialog] [Gtk::CheckMenuItem] [Gtk::CellRendererSpin] [Vte::Terminal] [Gtk::DrawingArea] [Gtk::VButtonBox] [Gnome::PrintContext] [Gtk::InputDialog] [Gtk::HandleBox] [Gtk::Progress] [Gst::Element] [GLib::InitiallyUnowned] [Gtk::Socket] [Gtk::PageSetupUnixDialog] [GLib::Object] [Gnome::FontSelection] [Gtk::Invisible] [Poppler::PSFile] [Pango::Engine] [Gtk::IconTheme] [Gtk::IconView] [Gtk::VScale] [Gtk::TextMark] [Gdk::GLWindow] [Gtk::Paned] [Gst::Registry] [Gda::DataModelArray] [Gtk::FileChooserDialog] [Gst::Bin] [Gtk::TreeModelSort] [Vte::TerminalAccessible] [Gtk::RadioToolButton]