Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

os::Control Class Reference

Base class for GUI controls. More...

#include <control.h>

Inheritance diagram for os::Control:

os::View os::Invoker os::Handler os::Button os::CheckBox os::RadioButton os::ScrollBar os::Slider List of all members.

Public Methods

 Control (Rect cFrame, const char *pzName, const char *pzLabel, Message *pcMessage, uint32 nResizeMask, uint32 nFlags=WID_WILL_DRAW|WID_CLEAR_BACKGROUND)
 ~Control ()
void AttachedToWindow (void)
void WindowActivated (bool bIsActive)
 Hook called when the window hosting this view gain or loose focus. More...

void MakeFocus (bool bFocus=true)
status_t Invoke (Message *pcMessage=NULL)
bool IsFocusChanging (void) const
virtual void SetEnable (bool bEnabled)
bool IsEnabled (void) const
virtual void SetLabel (const char *pzLabel)
const char* GetLabel (void) const
virtual void SetValue (int nValue)
int GetValue (void) const

Detailed Description

Base class for GUI controls.

Description:
See also:
os::Invoker
Author(s):
Kurt Skauen (kurt@atheos.cx)


Constructor & Destructor Documentation

Control::Control ( Rect cFrame,
const char * pzName,
const char * pzLabel,
Message * pcMsg,
uint32 nResizeMask,
uint32 nFlags = WID_WILL_DRAW | WID_CLEAR_BACKGROUND )
 

Control::~Control ( )
 


Member Function Documentation

void Control::AttachedToWindow ( void ) [virtual]
 

Reimplemented from os::View.

Reimplemented in os::RadioButton, and os::Slider.

const char * Control::GetLabel ( void ) const
 

int Control::GetValue ( void ) const
 

status_t Control::Invoke ( Message * a_pcMessage = NULL ) [virtual]
 

Reimplemented from os::Invoker.

Reimplemented in os::ScrollBar, and os::Slider.

bool Control::IsEnabled ( void ) const
 

bool Control::IsFocusChanging ( void ) const
 

void Control::MakeFocus ( bool bFocus = true ) [virtual]
 

Reimplemented from os::View.

void Control::SetEnable ( bool bEnabled ) [virtual]
 

void Control::SetLabel ( const char * pzLabel ) [virtual]
 

void Control::SetValue ( int nValue ) [virtual]
 

Reimplemented in os::RadioButton, and os::ScrollBar.

void Control::WindowActivated ( bool bIsActive ) [virtual]
 

Hook called when the window hosting this view gain or loose focus.

Description:
This is a callback member that can be overloaded by derived classes to learn when the window that this view is hosted by is activated and when it is deactivated. The bIsActive parameter tell whether the focus was lost or gained. This member is called whenever the window changes focus independent of whether the view is active or not.
Note:
This is a hook function that is called by the system to notify about an event. You should never call this member yourself.

The window is locked when this member is called.
Parameters:
bIsActive   - true if the window gain and false if it loose focus.
See also:
MakeFocus(), Activated()
Author(s):
Kurt Skauen (kurt.skauen@c2i.net)

Reimplemented from os::View.


The documentation for this class was generated from the following files:
Generated at Sat Apr 7 16:11:33 2001 for AtheOS higlevel API by doxygen1.2.5 written by Dimitri van Heesch, © 1997-2001