Xfce Foundation Classes
Main Page  | IndexNamespace List  |  Alphabetical List  |  Class List  |  File List


Xfc::G::TypeInstance Class Reference

Abstract base class for GTK+ interfaces and objects. More...

#include <xfc/glib/type.hh>

Inheritance diagram for Xfc::G::TypeInstance:

Xfc::Trackable Xfc::G::Object Xfc::G::ObjectSignals Xfc::G::TypeInterface Xfc::Atk::Hyperlink Xfc::Atk::Object Xfc::Atk::ObjectFactory Xfc::Atk::Registry Xfc::Atk::Relation Xfc::Atk::RelationSet Xfc::Atk::StateSet Xfc::Gdk::Colormap Xfc::Gdk::Device Xfc::Gdk::Display Xfc::Gdk::DisplayManager Xfc::Gdk::DragContext Xfc::Gdk::Drawable Xfc::Gdk::GC Xfc::Gdk::Image Xfc::Gdk::Keymap Xfc::Gdk::Pixbuf Xfc::Gdk::PixbufAnimation Xfc::Gdk::PixbufAnimationIter Xfc::Gdk::PixbufLoader Xfc::Gdk::Screen Xfc::Gdk::Visual Xfc::Glade::Xml Xfc::Gtk::AccelGroup Xfc::Gtk::AccelMap Xfc::Gtk::Action Xfc::Gtk::ActionGroup Xfc::Gtk::Clipboard Xfc::Gtk::EntryCompletion Xfc::Gtk::IconFactory Xfc::Gtk::IconTheme Xfc::Gtk::ListStore Xfc::Gtk::Object Xfc::Gtk::RcStyle Xfc::Gtk::Settings Xfc::Gtk::SizeGroup Xfc::Gtk::SourceLanguage Xfc::Gtk::SourceLanguagesManager Xfc::Gtk::SourcePrintJob Xfc::Gtk::Style Xfc::Gtk::TextBuffer Xfc::Gtk::TextChildAnchor Xfc::Gtk::TextMark Xfc::Gtk::TextTag Xfc::Gtk::TextTagTable Xfc::Gtk::TreeModelFilter Xfc::Gtk::TreeModelSort Xfc::Gtk::TreeSelection Xfc::Gtk::TreeStore Xfc::Gtk::UIManager Xfc::Gtk::WindowGroup Xfc::Pango::Context Xfc::Pango::Font Xfc::Pango::FontFace Xfc::Pango::FontFamily Xfc::Pango::FontMap Xfc::Pango::Fontset Xfc::Pango::Layout Xfc::Pango::Renderer Xfc::Atk::HyperlinkSignals Xfc::Atk::ObjectSignals Xfc::Gdk::DisplayManagerSignals Xfc::Gdk::DisplaySignals Xfc::Gdk::KeymapSignals Xfc::Gdk::PixbufLoaderSignals Xfc::Gdk::ScreenSignals Xfc::Gtk::AccelGroupSignals Xfc::Gtk::ActionSignals Xfc::Gtk::EntryCompletionSignals Xfc::Gtk::IconThemeSignals Xfc::Gtk::ObjectSignals Xfc::Gtk::TextBufferSignals Xfc::Gtk::TextTagSignals Xfc::Gtk::TextTagTableSignals Xfc::Gtk::UIManagerSignals Xfc::Atk::Action Xfc::Atk::Component Xfc::Atk::Document Xfc::Atk::EditableText Xfc::Atk::Hypertext Xfc::Atk::HypertextSignals Xfc::Atk::Image Xfc::Atk::Implementor Xfc::Atk::Selection Xfc::Atk::SelectionSignals Xfc::Atk::StreamableContent Xfc::Atk::Table Xfc::Atk::TableSignals Xfc::Atk::Text Xfc::Atk::TextSignals Xfc::Atk::Value Xfc::Gtk::CellEditable Xfc::Gtk::CellEditableSignals Xfc::Gtk::CellLayout Xfc::Gtk::Editable Xfc::Gtk::EditableSignals Xfc::Gtk::FileChooser Xfc::Gtk::SourceStyleScheme Xfc::Gtk::TreeDragDest Xfc::Gtk::TreeDragSource Xfc::Gtk::TreeModel Xfc::Gtk::TreeModelSignals Xfc::Gtk::TreeSortable Xfc::Gtk::TreeSortableSignals List of all members.

Public Member Functions

Accessors
Methods

Static Public Member Functions

Methods

Protected Member Functions

Protected Attributes


Detailed Description

Abstract base class for GTK+ interfaces and objects.

TypeInstance encapsulates GTypeInstance, the base structure for GObjects. It exists only to serve as a common base class for concrete objects and the abstract interfaces they inherit. Gtk::Entry is a good example. It inherits from Gtk::Widget, Gtk::Editable and Gtk::CellEditable. Gtk::Widget is the concrete object and Gtk::Editable and Gtk::CellEditable are its abstract interfaces.


Member Function Documentation

bool Xfc::G::TypeInstance::is_a ( GType  is_a_type  )  const

If is_a_type is a derivable type, check whether the instance type is a descendant of is_a_type, or if is_a_type is an interface, check whether the instance type conforms to it.

Parameters:
is_a_type Possible ancestor of type or interface type the instance type could conform to.
Returns:
true if the instance type is_a is_a_type holds true.

void Xfc::G::TypeInstance::add_interface ( GType  interface_type,
GInterfaceInitFunc  interface_init 
)

Adds the static interface_type to this TypeInstance.

Parameters:
interface_type GType value of the interface type to add.
interface_init The location of the function that initializes interface_type.

static void Xfc::G::TypeInstance::add_interface ( GType  instance_type,
GType  interface_type,
GInterfaceInitFunc  interface_init 
) [static]

Adds the static interface_type to the instantiable instance_type.

Parameters:
instance_type GType value of an instantiable type.
interface_type GType value of the interface type to add.
interface_init The location of the function that initializes interface_type.

static GType Xfc::G::TypeInstance::register_type ( GType  parent_type,
GClassInitFunc  class_init 
) [static]

Registers a new static XFC type derived from parent_type.

Parameters:
parent_type The type which this type will be derived from.
class_init The location of the class initialization function.
Returns:
The new type identifier.


The documentation for this class was generated from the following file: Xfce Foundation Classes
Copyright © 2004-2005 The XFC Development Team XFC 4.3