Humble Framework for SkyOS


Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

HColorable Class Reference
[Graphical User InterfaceGraphical User InterfaceGraphical User Interface]

#include <HColor.h>

Inheritance diagram for HColorable:

HObj HWindow< T > HWindow< HApp > HWindow< HLayout > HWindow< HPane > HApp HLayout HPane HLabel

Detailed Description

Adding the HColorable mix-in class allows another class to be "colorable", i.e., have a caller-supplied background and foreground color. These colors can then be queried using GetBackColor() / GetForeColor() or changed with SetBackColor() / SetForeColor(). The colors default to a BLACK foreground and a WHITE background.

Definition at line 766 of file HColor.h.

Public Member Functions

 HColorable (COLOR clrBG=Humble::kClrWindowFrame, COLOR clrFG=cBlack)
COLOR GetBackColor (void) const
 Gets the background color.
COLOR GetForeColor (void) const
 Gets the foreground color.
COLOR SetBackColor (COLOR clrBG)
 Sets the background color.
COLOR SetForeColor (COLOR clrFG)
 Sets the widget's foreground color.
void SetColors (COLOR clrBG, COLOR clrFG)
 Sets both background and foreground colors at the same time.

Protected Attributes

HColor m_clrBG
 Background color.
HColor m_clrFG
 Foreground color.


Member Function Documentation

COLOR HColorable::GetBackColor void   )  const
 

Returns:
Current background color

Definition at line 791 of file HColor.h.

COLOR HColorable::GetForeColor void   )  const
 

Returns:
Current foreground color

Definition at line 795 of file HColor.h.

COLOR HColorable::SetBackColor COLOR  clrBG  ) 
 

Returns:
Original background color
Parameters:
clrBG New background color

Definition at line 800 of file HColor.h.

COLOR HColorable::SetForeColor COLOR  clrFG  ) 
 

Returns:
Original foreground color
Parameters:
clrFG New foreground color

Definition at line 810 of file HColor.h.

void HColorable::SetColors COLOR  clrBG,
COLOR  clrFG
 

Parameters:
clrBG New background color
clrFG New foreground color

Definition at line 819 of file HColor.h.


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

2006.01.09-16:37