Create  Edit  FrontPage  Index  Search  Changes  History  RSS  Login

GLib::Object

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
GLib::Object.property(name)
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
GLib::Object.properties(inherited = true)
Returns an Array of GLib::Param for all properties of a class.
  • inherited: if true, also returns GLib::Params which are defined by superclasses, otherwise false
  • Returns: an Array of GLib::Params
GLib::Object.new(params = 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
GLib::Object.new!(params = nil)
Same as GLib::Object.new. 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 = Object.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 Object.name.
  • Returns: nil

Instance Methods

notify(property_name)
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
freeze_notify
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
thaw_notify
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
get_property(name)
Gets a property of an object.
  • name: the name of the property to get (String or Symbol)
  • Returns: the value
destroyed?
Return true if the C object has been destroyed.
  • Returns: true if the C object has been destroyed, otherwise false.
inspect
Inspect the object.
  • Returns: Inspected String.
ref_count
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
singleton_method_added(id)
Internal used only.
  • id: an Symbol
  • Returns: self

Signals

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

ChangeLog

  • 2005-05-15 Added. - Masao
Last modified:2008/04/10 11:01:32
Keyword(s):
References:[GLib::FileInfo] [Naming and Conversion Rules] [GLib::UnixInputStream] [Gtk::IMContext] [GLib::InetSocketAddress] [Gtk::HtmlBox] [Gtk::VScale] [News_20040810_1] [News_20040308_1] [Gst::ElementFactory] [Gtk::RadioButton] [Gtk::HtmlBoxRoot] [Gst::Plugin] [Gtk::Label] [Gtk::AboutDialog] [Gtk::HScrollbar] [Gtk::MessageDialog] [Gtk::WindowGroup] [Poppler::TextField] [GLib::SocketControlMessage] [Gtk::SourcePrintJob] [Gtk::SourceLanguage] [GLib::InputStream] [Gtk::SourceStyleScheme] [Gda::DataModelList] [Gtk::OptionMenu] [Gtk::Box] [Gtk::Tooltips] [Gtk::SourceMark] [Gtk::ComboBox] [Gst::Bus] [Gtk::HtmlBoxTable] [Gnome::PixmapEntry] [GLib::InitiallyUnowned] [Atk::StateSet] [Gtk::HBox] [GLib::FileAttribute] [Gtk::IMMulticontext] [Gdk::Visual] [Gtk::FontSelection] [Gtk::ToggleAction] [Gtk::SpinButton] [Bonobo::Window] [Gtk::CellRendererPixbuf] [Gda::Transaction] [Gtk::ComboBoxEntry] [Gtk::HtmlEmbedded] [GLib::DesktopAppInfo] [Gtk::FileChooserWidget] [Gtk::RcStyle] [Gnome::PopupMenu] [Gtk::TreeViewColumn] [Gdk::Pixmap] [Poppler::AnnotationFreeText] [Gtk::Adjustment] [Gtk::HtmlView] [Gtk::Window] [Gtk::TreeView] [Gdk::Display] [Gst::Autoplug] [Gnome::CanvasPixbuf] [Gtk::SourcePrintCompositor] [GLib::FilterInputStream] [Gdk::GLContext] [Gtk::HtmlDocument] [Gtk::ToggleToolButton] [Gtk::FileChooserButton] [Gtk::Entry] [GLib::FileOutputStream] [Gdk::Colormap] [Gdk::DisplayManager] [Gtk::Frame] [Gtk::AspectFrame] [Gnome::PrintPreview] [Gnome::FontPreview] [Pango::FontsetSimple] [Gtk::SyntaxTag] [Gtk::Toolbar] [Gst::SchedulerFactory] [Gtk::VRuler] [Atk::NoOpObjectFactory] [Gtk::MenuShell] [Gnome::CanvasRect] [Gtk::Container] [Gtk::Layout] [Gtk::TextMark] [Gtk::CellRendererAccel] [Gtk::PageSetupUnixDialog] [Gst::IndexFactory] [Poppler::SignatureField] [Gtk::VBox] [RSVG::Handle] [Gtk::Item] [Gtk::SourceStyle] [GLib::UnixOutputStream] [Gtk::TreeModelSort] [Gst::XML] [Gtk::LinkButton] [GLib::DataInputStream] [Gtk::Builder] [GLib::Object] [Gtk::Combo] [Gtk::CellRendererSpin] [Gst::TypeFindFactory] [Gnome::GPASettings] [Gtk::SourceBuffer] [Gnome::FontSelection] [Gnome::CanvasLine] [Gtk::TextChildAnchor] [Gtk::TrayIcon] [Gtk::CellRendererText] [Atk::GObjectAccessible] [Gtk::RadioMenuItem] [Gtk::CellRenderer] [Gnome::CanvasClipgroup] [Gtk::StatusIcon] [Gtk::Statusbar] [GLib::ConverterOutputStream] [Gtk::EntryCompletion] [Gtk::IconFactory] [Atk::RelationSet] [Pango::Context] [GLib::UnixMountMonitor] [Poppler::Page] [Gdk::Window] [GLib::SocketAddress] [Gtk::Socket] [Gda::Export] [Gtk::SeparatorToolItem] [Gst::PluginFeature] [Gnome::PrintContext] [Gnome::GPAModel] [Gnome::PrintJobPreview] [GLib::DataOutputStream] [Gtk::MenuToolButton] [Pango::Renderer] [Gst::PadTemplate] [GLib::UnixFdList] [Gnome::DruidPageStandard] [Gtk::VolumeButton] [Gst::Pipeline] [Gtk::PatternTag] [GLib::ZlibCompressor] [Gtk::PrintSettings] [Gda::Table] [Gtk::PrintJob] [GLib::SocketClient] [Gtk::RadioAction] [Gtk::VSeparator] [Gtk::HtmlBoxText] [Gtk::MozEmbed] [Gnome::PrintContentSelector] [Gtk::AccelLabel] [Pango::EngineShape] [Gnome::CanvasPolygon] [Gtk::Style] [Gst::GhostPad] [Gtk::HtmlBoxTableCaption] [Gtk::TreeSelection] [Gst::Element] [Gda::DataModel] [Gtk::SourceMarker] [GLib::BufferedOutputStream] [Gtk::RecentChooserWidget] [Gtk::TextView] [Gtk::ActionGroup] [Gtk::RecentManager] [GConf::Client] [GLib::VolumeMonitor] [Gtk::CellRendererCombo] [GLib::IOModule] [GLib::Socket] [How to Implement Ruby-GNOME2] [Gnome::PaperSelector] [Gtk::Accessible] [Gtk::RecentChooserMenu] [Gnome::IconList] [Gtk::Expander] [Gst::SystemClock] [Gtk::FontButton] [GLib::NetworkService] [GLib::ThreadedSocketService] [Gnome::AppBar] [GLib::AppLaunchContext] [Gtk::SourceStyleSchemeManager] [Gda::Select] [Gtk::Dialog] [Gnome::Scores] [News_20031116_1] [Gtk::Curve] [Gdk::PixbufSimpleAnim] [Gtk::Calendar] [GLib::FileEnumerator] [Gtk::Notebook] [Gnome::About] [Gtk::Viewport] [Gtk::Ruler] [Gtk::Tooltip] [Gtk::RecentFilter] [Gdk::GLWindow] [Gtk::PageSetup] [Poppler::UnknownField] [Gtk::TreeModelFilter] [Poppler::ButtonField] [Gnome::CanvasShape] [Gtk::Table] [GLib::BufferedInputStream] [Gdk::GC] [GLib::Boxed] [Pango::FontMap] [Gdk::Keymap] [GLib::UnixSocketAddress] [tut-gtk2-agtkw-cal] [Gtk::ScrolledWindow] [Gnome::DruidPage] [Atk::Hyperlink] [Atk::Util] [Pango::FontFace] [Gtk::ToolItem] [Gtk::SourceLanguageManager] [GLib::EmblemedIcon] [GLib::ThemedIcon] [ruby-gtk-object-hierarchy] [Poppler::ChoiceField] [Gtk::TreeRowReference] [Gtk::HtmlParser] [Gtk::HPaned] [Gtk::FileSelection] [GLib::SocketAddressEnumerator] [Bonobo::Object] [Gtk::HtmlBoxEmbedded] [Gnome::App] [News_20051016_1] [Gtk::HtmlBoxForm] [Gtk::AccelMap] [Gtk::ColorSelectionDialog] [Gtk::ToolButton] [Gnome::GPAState] [Gtk::Object] [Gnome::CanvasGroup] [Gnome::PrintUnitSelector] [Gtk::Action] [GLib::MemoryOutputStream] [GLib::CharsetConverter] [Gdk::Drawable] [Gtk::Widget] [Gtk::Misc] [GLib::SimpleAsyncResult] [Gtk::SizeGroup] [GLib::SocketListener] [GLib::Vfs] [Poppler::AnnotationMarkup] [Pango::Layout] [Gtk::ColorButton] [Gtk::HButtonBox] [Gtk::DrawingArea] [index-ruby-glib2] [Gtk::SourceView] [Gtk::ImageMenuItem] [Gtk::HRuler] [Gtk::MenuItem] [Gtk::GammaCurve] [Gdk::Screen] [Gtk::SourceLanguagesManager] [Bonobo::DockItem] [Gtk::SourceTag] [Gnome::CanvasBpath] [GLib::SocketConnection] [Gtk::TextTag] [Gda::Connection] [Gst::Thread] [Gtk::FontSelectionDialog] [Gtk::FileChooserDialog] [GLib::Emblem] [Poppler::Annotation] [Gnome::CanvasWidget] [Gnome::HRef] [Gtk::ToggleButton] [Gtk::ProgressBar] [GLib::MemoryInputStream] [index-ruby-gio2] [Gtk::Menu] [Gnome::CanvasEllipse] [Gnome::Entry] [GLib::ZlibDecompressor] [Gdk::PangoRenderer] [Gnome::GPAList] [Atk::Object] [Gtk::InputDialog] [Gdk::GLPixmap] [Gdk::DragContext] [Gtk::PrintOperation] [Gtk::Paned] [Gtk::VPaned] [Ruby/GLib] [Gtk::Scrollbar] [Gst::AutoplugFactory] [Gst::Index] [Gtk::VButtonBox] [Gtk::HtmlStream] [Gnome::IconEntry] [Vte::Reaper] [GLib::OutputStream] [Poppler::AnnotationText] [Gnome::Canvas] [Gda::DataModelArray] [Gtk::MenuBar] [GLib::Initable] [Gtk::Button] [Gnome::PrintConfigDialog] [Vte::Terminal] [Pango::EngineLang] [Vte::TerminalAccessible] [tut-gst-helloworld] [Gtk::CellRendererProgress] [Gtk::Image] [Gtk::RadioToolButton] [Gdk::PixbufAnimationIter] [Gst::Object] [Pango::FontFamily] [Gtk::HtmlContext] [Gnome::GPAPrinter] [Gda::DataModelHash] [Gtk::HtmlBoxBlock] [Gst::Registry] [Gdk::GLConfig] [GLib::TcpConnection] [Gtk::ColorSelection] [Gtk::PrintBackend] [Gtk::HtmlBoxTableRow] [Gnome::FontDialog] [Gdk::Pixbuf] [Gtk::Arrow] [Gtk::Separator] [Gtk::EventBox] [Gtk::CellView] [Gtk::TreeStore] [Atk::Registry] [Bonobo::UI::Component] [Gtk::FileFilter] [Gtk::ScaleButton] [Gtk::IMContextSimple] [GLib::SocketService] [Gtk::Assistant] [GLib::Resolver] [Gtk::Scale] [Gnome::CanvasText] [Gtk::Settings] [Gst::TypeFactory] [Gnome::Program] [Gtk::Plug] [Gtk::HScale] [GladeXML] [Gnome::CanvasItem] [Gtk::Range] [Atk::NoOpObject] [Gtk::PrintUnixDialog] [GLib::Cancellable] [Gnome::IconTextItem] [Gdk::Device] [Gtk::CheckButton] [Gtk::CellRendererToggle] [Gtk::SourceTagTable] [GLib::UnixConnection] [Gtk::Alignment] [Gst::Pad] [Gtk::ListStore] [Gdk::PixbufAnimation] [Gnome::GPANode] [Poppler::Document] [Gtk::TextTagTable] [Gst::Clock] [Bonobo::DockLayout] [GLib::FileAttribute::Type] [Gtk::TextBuffer] [Gtk::SeparatorMenuItem] [Gtk::Invisible] [Gtk::HtmlBoxTableRowGroup] [GLib::UnixFDMessage] [Gnome::PrintConfig] [Gtk::AccelGroup] [Gst::Bin] [Poppler::PSFile] [GLib::TypeModule] [Gdk::PixbufLoader] [Gtk::IconTheme] [News (2017-05-30 No.1)] [Atk::Relation] [Gnome::DateEdit] [Bonobo::DockBand] [Gtk::VScrollbar] [Gnome::CanvasRichText] [Gnome::Druid] [Gtk::ItemFactory] [Gtk::PrintContext] [GLib::FileInputStream] [GLib::FileIcon] [Ruby/PanelApplet] [Pango::Engine] [Gtk::IconView] [Poppler::Attachment] [Gtk::Bin] [GLib::ConverterInputStream] [GLib::InetAddress] [GLib::AsyncInitable] [Gtk::HSeparator] [Gnome::PrintDialog] [Poppler::FormField] [GLib::IOStream] [Gtk::UIManager] [Gtk::HandleBox] [tut-gst-elements-properties] [Poppler::FontInfo] [Gnome::ColorPicker] [Gtk::TearoffMenuItem] [Gtk::Fixed] [Gda::Client] [GLib::FilenameCompleter] [Gnome::CanvasRE] [Gnome::IconSelection] [Gnome::PrintJob] [Gtk::Printer] [Gnome::DruidPageEdge] [Gnome::FileEntry] [Gtk::RecentAction] [GLib::NetworkAddress] [Bonobo::Dock] [GLib::FileMonitor] [GLib::MountOperation] [Gtk::RecentChooserDialog] [Gda::Error] [Pango::Font] [GLib::FilterOutputStream] [Gtk::CheckMenuItem] [Bonobo::UI::Engine] [Pango::Fontset] [Atk::ObjectFactory] [Gnome::Client] [Gdk::Image] [Gst::Scheduler] [Gtk::ButtonBox] [GLib::FileIOStream] [Gtk::Progress] [Gnome::FontPicker]