OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TColorCell Class Reference

#include <owl/picker.h>

Inheritance diagram for owl::TColorCell:
owl::TPickerCell owl::TBitFlags< uint >

Public Member Functions

 TColorCell (int id=0, const TColor &clr=TColor::None, TBorderStyle borderStyle=Flat)
 
virtual void PaintCell (TDC &dc, TRect &rect)
 
void SetColor (const TColor &clr)
 
const TColorGetColor () const
 
- Public Member Functions inherited from owl::TPickerCell
 TPickerCell (int id=0, TBorderStyle borderStyle=Flat)
 
virtual ~TPickerCell ()
 
virtual void Paint (TDC &dc, TRect *r=0, bool drawbrd=true)
 
virtual void PaintBorder (TDC &dc, TRect &rect)
 
virtual void EnterMouse ()
 
virtual void LeaveMouse ()
 
virtual void Select (bool sel=true)
 
int GetId ()
 
void SetId (int id)
 
TRectGetBounds ()
 
void SetBorderStyle (TBorderStyle bs)
 
TBorderStyle GetBorderStyle () const
 Return the borderstyle the cell is using.
 
virtual void QueryBounds (TRect &rect)
 
virtual bool PtIn (const TPoint &pt)
 
- Public Member Functions inherited from owl::TBitFlags< uint >
 TBitFlags (uint t=0)
 Initialize the Flags to the specified parameter.
 
uint Clear (uint t)
 Clear the bits that are enabled in the specified parameter.
 
uint Set (uint t)
 Activate the bits that are enabled in the specified parameter.
 
bool IsSet (uint t) const
 Return true of the ON bits of the parameter are currently enabled.
 

Protected Attributes

TColor Color
 
- Protected Attributes inherited from owl::TPickerCell
TRect Bounds
 
int Id
 
TGridPickerParent
 
TBorderStyle BorderStyle
 
- Protected Attributes inherited from owl::TBitFlags< uint >
uint Bits
 

Additional Inherited Members

- Public Types inherited from owl::TPickerCell
enum  TBorderStyle {
  None , Plain , Raised , Recessed , Embossed , Grooved , ButtonUp , ButtonDn , WndRaised , WndRecessed ,
  WellSet , Flat
}
 Cell border styles. These match TIUBorder's TStyles exactly. More...
 
- Public Attributes inherited from owl::TPickerCell
 DECLARE_CASTABLE
 
- Protected Types inherited from owl::TPickerCell
enum  TCellState { csMouseIn = 0x0001 , csSelected = 0x0002 }
 
- Protected Member Functions inherited from owl::TPickerCell
virtual void SetParent (TGridPicker *parent)
 

Detailed Description

Definition at line 124 of file picker.h.

Constructor & Destructor Documentation

◆ TColorCell()

owl::TColorCell::TColorCell ( int id = 0,
const TColor & clr = TColor::None,
TBorderStyle borderStyle = Flat )
inline

Definition at line 566 of file picker.h.

Member Function Documentation

◆ GetColor()

const TColor & owl::TColorCell::GetColor ( ) const
inline

Definition at line 581 of file picker.h.

References Color.

◆ PaintCell()

void owl::TColorCell::PaintCell ( TDC & dc,
TRect & rect )
virtual

Implements owl::TPickerCell.

Definition at line 205 of file picker.cpp.

References Color, owl::TDC::SetBkColor(), and owl::TDC::TextRect().

◆ SetColor()

void owl::TColorCell::SetColor ( const TColor & clr)
inline

Definition at line 574 of file picker.h.

References Color.

Member Data Documentation

◆ Color

TColor owl::TColorCell::Color
protected

Definition at line 133 of file picker.h.


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