OWLNext 7.0
Borland's Object Windows Library for the modern age
|
bsabstract base class More...
#include <owl/picker.h>
Public Types | |
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 Member Functions | |
TPickerCell (int id=0, TBorderStyle borderStyle=Flat) | |
virtual | ~TPickerCell () |
virtual void | Paint (TDC &dc, TRect *r=0, bool drawbrd=true) |
virtual void | PaintCell (TDC &dc, TRect &rect)=0 |
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) |
TRect & | GetBounds () |
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. | |
Public Attributes | |
DECLARE_CASTABLE | |
Protected Types | |
enum | TCellState { csMouseIn = 0x0001 , csSelected = 0x0002 } |
Protected Member Functions | |
virtual void | SetParent (TGridPicker *parent) |
Protected Attributes | |
TRect | Bounds |
int | Id |
TGridPicker * | Parent |
TBorderStyle | BorderStyle |
Protected Attributes inherited from owl::TBitFlags< uint > | |
uint | Bits |
Friends | |
class | TGridPicker |
Cell border styles. These match TIUBorder's TStyles exactly.
|
protected |
|
inline |
Definition at line 504 of file picker.h.
References SetBorderStyle().
|
virtual |
Definition at line 178 of file picker.cpp.
References csMouseIn, and owl::TBitFlags< uint >::Set().
|
inline |
Return the borderstyle the cell is using.
Definition at line 556 of file picker.h.
References BorderStyle.
|
inline |
|
virtual |
Definition at line 185 of file picker.cpp.
References owl::TBitFlags< uint >::Clear(), and csMouseIn.
Definition at line 98 of file picker.cpp.
References Bounds, owl::TGridPicker::IsFlatStyle(), PaintBorder(), PaintCell(), Parent, and owl::TRect::Size().
Definition at line 116 of file picker.cpp.
References owl::TUIBorder::Adjust, BorderStyle, csMouseIn, csSelected, owl::TUIMetric::CxBorder, owl::TUIMetric::CyBorder, owl::TUIBorder::Embossed, owl::TDC::FillRect(), Flat, owl::TDC::FrameRect(), owl::TUIFace::GetDitherBrush(), owl::TGridPicker::IsFlatStyle(), owl::TBitFlags< uint >::IsSet(), owl::TUIBorder::Mono, None, owl::TDC::OWLFastWindowFrame(), owl::TUIBorder::Paint(), Parent, Plain, owl::TUIBorder::RaisedInner, owl::TUIBorder::Recessed, owl::TUIBorder::Rect, owl::TDC::RestoreBrush(), owl::TUIBorder::Soft, owl::TColor::Sys3dFace, owl::TColor::Sys3dShadow, owl::TColor::SysWindowFrame, and owl::TUIBorder::WndRecessed.
Implemented in owl::TColorCell, owl::TBitmapCell, and owl::TTextCell.
Definition at line 540 of file picker.h.
References Bounds, and owl::TRect::Contains().
Reimplemented in owl::TBitmapCell.
Definition at line 167 of file picker.cpp.
Definition at line 192 of file picker.cpp.
References owl::TBitFlags< uint >::Clear(), csSelected, and owl::TBitFlags< uint >::Set().
void owl::TPickerCell::SetBorderStyle | ( | TBorderStyle | bs | ) |
Definition at line 89 of file picker.cpp.
References BorderStyle, owl::TGridPicker::Layout(), and Parent.
|
inlineprotectedvirtual |
|
friend |
|
protected |
|
protected |