GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

GFC::G::TypeInstance Class Reference

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

#include <gfc/glib/type.hh>

Inheritance diagram for GFC::G::TypeInstance:

GFC::Trackable GFC::G::Object GFC::G::ObjectSignals GFC::G::TypeInterface List of all members.

Public Member Functions

Accessors
Methods

Static Public Member Functions

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

void GFC::G::TypeInstance::add_interface GType  instance_type,
GType  interface_type
[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.

void GFC::G::TypeInstance::add_interface GType  interface_type  ) 
 

Adds the static interface_type to this TypeInstance.

Parameters:
interface_type GType value of the interface type to add.

bool GFC::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.

GType GFC::G::TypeInstance::register_type GType  parent_type  )  [static]
 

Registers a new static GFC type derived from parent_type.

Parameters:
parent_type The type which this type will be derived from.
Returns:
The new type identifier.


The documentation for this class was generated from the following file:
Generated on Tue Aug 24 00:04:58 2004 for GFC-Core by doxygen 1.3.8