arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

WidgetState Class Reference

#include <WidgetState.h>

Inheritance diagram for WidgetState:

gutz::Counted ColorWState GLColorWState List of all members.

Detailed Description

The Base interface for Widget State, this is things like colors, clipping planes, etc.

Remember at this level in the widget hierarchy we don't know anything about openGL... so the specific implementations of Widget States must exist elsewhere.

Definition at line 35 of file WidgetState.h.

Bind/Release

Bind should enable any state that is applicable, release should undo that, back to defaults.

A Concrete Class should implement the bindWS() and releaseWS() for the specific platform (if applicable).

void bind ()
void release ()

Public Member Functions

virtual ~WidgetState ()
virtual WidgetStateclone ()=0

Public Attributes

 HAS_SLOTS

Protected Member Functions

virtual void bindWS ()=0
 implements bind()

virtual void releaseWS ()=0
 implements release()

 WidgetState ()
 WidgetState (const WidgetState &ws)
WidgetStateoperator= (const WidgetState &ws)
virtual void _incCount ()
 gutz::Counted interface, increment reference count by one.

virtual void _decCount ()
 gutz::Counted interface, decrement reference count by one.

virtual int _getCount () const
 gutz::Counted interface, get the current reference count.


Friends

class SmartPtr
class SmartPtrRef


Constructor & Destructor Documentation

virtual WidgetState::~WidgetState  )  [inline, virtual]
 

Definition at line 39 of file WidgetState.h.

WidgetState::WidgetState  )  [inline, protected]
 

Definition at line 62 of file WidgetState.h.

WidgetState::WidgetState const WidgetState ws  )  [inline, protected]
 

Definition at line 63 of file WidgetState.h.


Member Function Documentation

virtual void gutz::Counted::_decCount  )  [inline, protected, virtual, inherited]
 

gutz::Counted interface, decrement reference count by one.

Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr. Sometimes you need to call this though, see the documentation for gutz::SmartPtr

Definition at line 54 of file smartptr.h.

Referenced by TFImage::clear(), NrroImage::fBlendOverRGBA(), and Nrro::updateMinMax().

virtual int gutz::Counted::_getCount  )  const [inline, protected, virtual, inherited]
 

gutz::Counted interface, get the current reference count.

Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr.

Definition at line 58 of file smartptr.h.

virtual void gutz::Counted::_incCount  )  [inline, protected, virtual, inherited]
 

gutz::Counted interface, increment reference count by one.

Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr. Sometimes you need to call this though, see the documentation for gutz::SmartPtr

Definition at line 48 of file smartptr.h.

Referenced by TFImage::clear(), NrroImage::fBlendOverRGBA(), and Nrro::updateMinMax().

void WidgetState::bind  )  [inline]
 

Definition at line 49 of file WidgetState.h.

References bindWS().

virtual void WidgetState::bindWS  )  [protected, pure virtual]
 

implements bind()

Implemented in GLColorWState.

Referenced by bind().

virtual WidgetState* WidgetState::clone  )  [pure virtual]
 

Implemented in ColorWState.

WidgetState& WidgetState::operator= const WidgetState ws  )  [inline, protected]
 

Definition at line 64 of file WidgetState.h.

void WidgetState::release  )  [inline]
 

Definition at line 50 of file WidgetState.h.

References releaseWS().

virtual void WidgetState::releaseWS  )  [protected, pure virtual]
 

implements release()

Implemented in GLColorWState.

Referenced by release().


Friends And Related Function Documentation

friend class SmartPtr [friend, inherited]
 

Definition at line 40 of file smartptr.h.

Referenced by Nrro::NrroIter< T >::NrroIter().

friend class SmartPtrRef [friend, inherited]
 

Definition at line 41 of file smartptr.h.


Member Data Documentation

WidgetState::HAS_SLOTS
 

Definition at line 38 of file WidgetState.h.


The documentation for this class was generated from the following file:
Send questions, comments, and bug reports to:
jmk