42 Flags =
styleMap[style].Flags | flags;
75 Frame.
Offset(x-Frame.left, y-Frame.top);
84 Frame.right = Frame.left +
w;
85 Frame.top = Frame.top +
h;
197TUIBorder::PaintWT(
TDC& dc,
const TRect& frame)
206TUIBorder::Paint3H(TDC& dc,
const TRect& frame)
#define PRECONDITION(condition)
The GDI Brush class is derived from TGdiObject.
Class wrapper for management of color values.
static const TColor Sys3dHilight
The symbolic system color value for highlighted 3-dimensional display elements (for edges facing the ...
static const TColor SysWindowText
The symbolic system color value for text in every window.
TDC is the root class for GDI DC wrappers.
TColor SetPixel(int x, int y, const TColor &color)
Sets the color of the pixel at the given location to the given color and returns the pixel's previous...
void SelectObject(const TBrush &brush)
Selects the given GDI brush object into this DC.
void RestoreBrush()
Restores the original GDI brush object to this DC.
bool PatBlt(int x, int y, int w, int h, uint32 rop=PATCOPY)
TRect is a mathematical class derived from tagRect.
int Height() const
Returns the height of this rectangle (bottom - top).
TRect & Offset(int dx, int dy)
Changes this rectangle so its corners are offset by the given delta values.
TRect InflatedBy(int dx, int dy) const
Returns a rectangle inflated by the given delta arguments.
int Width() const
Returns the width of this rectangle (right - left).
TRect GetClientRect() const
Calculates the rectangle within the border.
@ Soft
Soft edge look for buttons.
void Size(int w, int h)
Resizes the frame rect to (w,h).
static void PaintFrameC(TDC &dc, const TRect &frame, uint flags, const TColor &tlColor, const TColor &brColor, const TColor &bcColor)
Paints a 2-color single pixel-thick frame. Bevel corners get their own color.
void Move(int dx, int dy)
Moves the frame rect by (dx,dy).
TEdge
Enumeration describing the type of edge to be drawn.
@ EdgeOuter
Mask for outer edge bits.
@ RaisedOuter
Raised outer edge only.
@ RaisedInner
Raised inner edge only.
@ SunkenInner
Sunken inner edge only.
@ SunkenOuter
Sunken outer edge only.
@ EdgeInner
Mask for inner edge bits.
void MoveTo(int x, int y)
Moves the frame rect to (x,y).
void Paint(TDC &dc) const
Paints this UIBorder object onto a given device context.
TStyle
Enumeration describing hilevel border styles.
@ WellSet
Well option set (auto grows + 1) // !CQ W4 cant do.
static void PaintFrame(TDC &dc, const TRect &frame, uint flags, const TColor &tlColor, const TColor &brColor)
Paints a 2-color single pixel-thick frame. Bevel corners get brush color.
static bool DrawEdge(TDC &dc, const TRect &frame, uint edge, uint flags)
This is a static function that performs the actual drawing of edges for a UIBorder or an external cli...
TRect GetBoundingRect() const
Calculates the outside frame rectangle.
TUIBorder(const TRect &frame, TStyle style, uint flags=0)
Constructs a UIBorder object given a frame and a high-level style type.
Definition of abstract GDI object class and derived classes.
Object Windows Library (OWLNext Core)
Definition of the UI Helper Classes: TUIHandle, TUIBorder, TUIFace, TUIPart.