11#if defined(BI_MULTI_THREAD_RTL)
25 THatchBrush():Brush(THatch8x8Brush::Hatch13F1)
33#if defined(BI_MULTI_THREAD_RTL)
41static THatchBrush& GetHatchBrush()
43#if defined(BI_MULTI_THREAD_RTL)
60#if defined(BI_MULTI_THREAD_RTL)
93 Frame.
Offset(x-Frame.left, y-Frame.top);
103 Frame.right = Frame.left +
w;
104 Frame.bottom = Frame.top +
h;
The GDI Brush class is derived from TGdiObject.
static const TColor White
Static TColor object with fixed Value set by RGB(255, 255, 255).
static const TColor Black
Static TColor object with fixed Value set by RGB(0, 0, 0).
TDC is the root class for GDI DC wrappers.
bool FrameRect(int x1, int y1, int x2, int y2, const TBrush &brush)
Draws a border on this DC around the given rectangle, rect, using the given brush,...
void SelectObject(const TBrush &brush)
Selects the given GDI brush object into this DC.
void RestorePen()
Restores the original GDI pen object to this DC.
int SetROP2(int mode)
Sets the current foreground mix mode mode of this DC to the given mode value and returns the previous...
virtual TColor SetBkColor(const TColor &color)
Sets the current background color of this DC to the given color value or the nearest available.
bool Rectangle(int x1, int y1, int x2, int y2)
Draws and fills a rectangle of the given size on this DC with the current pen and brush objects.
void RestoreBrush()
Restores the original GDI brush object to this DC.
virtual void SelectStockObject(int index)
Selects into the DC a predefined stock pen, brush, font, or palette.
bool PatBlt(int x, int y, int w, int h, uint32 rop=PATCOPY)
int GetROP2() const
Returns the current drawing (raster operation) mode of this DC.
TPen is derived from TGdiObject.
TPoint is a support class, derived from tagPOINT.
TRect is a mathematical class derived from tagRect.
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.
void Paint(TDC &dc) const
Paints the TUIHandle object onto the specified device context, dc.
void MoveTo(int x, int y)
Moves the rectangle to the given x and y coordinates.
static uint16 GetCursorId(TWhere where)
Helper function to convert a where code into a cursor shape Id.
TWhere
Enumeration describing the location of a grapple selection.
@ Outside
Hit completely outside the object.
@ MidCenter
Somewhere inside the rectangle.
@ Inside
Hit inside object, not on handles, & InsideSpecial is set.
void Size(int w, int h)
Sets the size of the rectangle according to the measurements specified in w, the width,...
TUIHandle(const TRect &frame, uint style=HandlesIn|Grapples|HatchBorder, int thickness=5)
Constructs a TUIHandle object for the specified frame, with eight grapples drawn in a hatched border ...
void Move(int dx, int dy)
Moves the rectangle relative to the values specified in dx and dy.
TRect GetBoundingRect() const
Calculate the outside frame rectangle.
@ Grapples
Eight grapple boxes are drawn.
@ DashFramed
Frame rect is drawn dashed.
@ HandlesOut
Handles on the outside of the rectangle.
@ HatchRect
Whole rect drawn hatched.
@ HatchBorder
Border handle area drawn hatched.
@ Framed
Frame rect is drawn solid.
@ InsideSpecial
Inside area hit-tested independently.
TWhere HitTest(const TPoint &point) const
Compares a given point (point) to various parts of the rectangle.
Definition of abstract GDI object class and derived classes.
Object Windows Library (OWLNext Core)
General definitions used by all ObjectWindows programs.
Definition of the UI Helper Classes: TUIHandle, TUIBorder, TUIFace, TUIPart.