newspeoplefor developersdocumentationdownloads

nGuiCheckButtonGroup Class Reference
[Graphical User Interface]

#include <nguicheckbuttongroup.h>

Inheritance diagram for nGuiCheckButtonGroup:

nGuiWidget nRoot nObject nNode nReferenced nSignalEmitter List of all members.

Detailed Description

Groups child check buttons so that only one is selected at any time. (OBSOLETE).

(C) 2003 RadonLabs GmbH

Definition at line 15 of file nguicheckbuttongroup.h.


Public Member Functions

 nGuiCheckButtonGroup ()
 constructor
virtual ~nGuiCheckButtonGroup ()
 destructor
virtual bool Render ()
 rendering
virtual bool OnMouseMoved (const vector2 &mousePos)
 handle mouse move
virtual bool OnButtonDown (const vector2 &mousePos)
 handle button down
virtual bool Inside (const vector2 &p)
 is position inside?
void SetOnButtonIndex (int index)
 set the current "on button"
int GetOnButtonIndex () const
 get the current "on button"

Constructor & Destructor Documentation

nGuiCheckButtonGroup::nGuiCheckButtonGroup  ) 
 

constructor

Definition at line 13 of file nguicheckbuttongroup_main.cc.

nGuiCheckButtonGroup::~nGuiCheckButtonGroup  )  [virtual]
 

destructor

Definition at line 21 of file nguicheckbuttongroup_main.cc.


Member Function Documentation

bool nGuiCheckButtonGroup::Render  )  [virtual]
 

rendering

This simply distributes the Render() call to the sub objects.

Reimplemented from nGuiWidget.

Definition at line 31 of file nguicheckbuttongroup_main.cc.

bool nGuiCheckButtonGroup::OnMouseMoved const vector2 mousePos  )  [virtual]
 

handle mouse move

This simply distributes the the OnMouseMoved() call to the sub objects.

Reimplemented from nGuiWidget.

Definition at line 52 of file nguicheckbuttongroup_main.cc.

bool nGuiCheckButtonGroup::OnButtonDown const vector2 mousePos  )  [virtual]
 

handle button down

This makes sure that only one button of the button group is in the checked state.

Reimplemented from nGuiWidget.

Definition at line 71 of file nguicheckbuttongroup_main.cc.

bool nGuiCheckButtonGroup::Inside const vector2 p  )  [virtual]
 

is position inside?

Is coordinate in mouse sensitive area.

Reimplemented from nGuiWidget.

Definition at line 167 of file nguicheckbuttongroup_main.cc.

void nGuiCheckButtonGroup::SetOnButtonIndex int  index  ) 
 

set the current "on button"

Set the new "on" button by index.

Definition at line 115 of file nguicheckbuttongroup_main.cc.

int nGuiCheckButtonGroup::GetOnButtonIndex  )  const
 

get the current "on button"

Get the button index of the "on" button. Returns -1 if none of the buttons is active.

Definition at line 146 of file nguicheckbuttongroup_main.cc.


The documentation for this class was generated from the following files:

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.