omgui::Object Class Reference

#include <omgui/object.h>

Inherits omgui::RefCountable.

Inherited by omgui::Menu, omgui::MenuBar, omgui::MenuItem, and omgui::Widget.

List of all members.


Detailed Description

Object serves as the base class for all GUI classes. Its purpose is to provide all instances of these objects with a unique object_id value. This value is used to identify the Object generating a given event, and can be also used to retrieve boost::shared_ptr<>s to any Object based on its object_id value.

Public Member Functions

virtual void add_ref ()=0
object_id get_id () const
virtual void release ()=0

Protected Member Functions

 Object (object_id id)
virtual ~Object ()

Private Attributes

const object_id m_id

Constructor & Destructor Documentation

omgui::Object::Object ( object_id  id  )  [protected]

Constructs the object with the given object_id. The object_id must be unique. If the object_id already exists, an omgui::Exception will be thrown.

omgui::Object::~Object (  )  [protected, virtual]


Member Function Documentation

virtual void omgui::RefCountable::add_ref (  )  [pure virtual, inherited]

object_id omgui::Object::get_id (  )  const

Returns:
This object's unique identifier

Reimplemented in omgui::MenuItem.

virtual void omgui::RefCountable::release (  )  [pure virtual, inherited]


Member Data Documentation

const object_id omgui::Object::m_id [private]


doxygen SourceForge.net Logo