13#if defined(BI_MULTI_THREAD_RTL)
48#if defined(BI_MULTI_THREAD_RTL)
56static TUIFaceData& GetUIFaceData()
58#if defined(BI_MULTI_THREAD_RTL)
75#if defined(BI_MULTI_THREAD_RTL)
82THatch8x8Brush& TUIFaceData::GetDitherBrush()
97TBitmap& TUIFaceData::GetGlyphMask(
const TSize&
minSize)
109 MaskBm =
new TBitmap(MaskSize.cx, MaskSize.cy, 1, 1,
nullptr);
128 return GetUIFaceData().GetDitherBrush();
140 return GetUIFaceData().GetGlyphMask(
minSize);
322 const auto i =
icon.GetInfo();
423 dstDC.SetBkMode(mode);
434 if (SourceType==sText)
436 else if (SourceType==sBitmap)
439 else if (SourceType==sIcon)
452 if (SourceType==sText)
454 else if (SourceType==sBitmap)
457 else if (SourceType==sIcon)
462#if !defined(BI_COMP_GNUC)
470 int x,
int y,
int cx,
int cy,
uint flags)
477 if (::DrawState(dc,
hbr,
nullptr,
lp,
wp, x, y, cx, cy, flags))
487#if !defined(BI_COMP_GNUC)
538 if(SourceType==sBitmap)
TBitmap is the GDI bitmap class derived from TGdiObject.
TSize Size() const
The width and height of the bitmap in pixels.
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 None
not-a-color
static const TColor Sys3dShadow
The symbolic system color value for the shadow regions of 3-dimensional display elements (for edges f...
static const TColor Sys3dFace
The symbolic system color value for the face color of 3-dimensional display elements.
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.
void SelectObject(const TBrush &brush)
Selects the given GDI brush object into this DC.
virtual TColor SetBkColor(const TColor &color)
Sets the current background color of this DC to the given color value or the nearest available.
void RestoreBrush()
Restores the original GDI brush object to this DC.
bool BitBlt(int dstX, int dstY, int w, int h, const TDC &srcDC, int srcX, int srcY, uint32 rop=SRCCOPY)
Performs a bit-block transfer from srcDc (the given source DC) to this DC (the destination DC).
virtual TColor SetTextColor(const TColor &color)
Sets the current text color of this DC to the given color value.
int SetBkMode(int mode)
Sets the background mode to the given mode argument, which can be either OPAQUE or TRANSPARENT.
bool MaskBlt(const TRect &dst, const TDC &srcDC, const TPoint &src, const TBitmap &maskBm, const TPoint &maskPos, uint32 rop=SRCCOPY)
Copies a bitmap from the given source DC to this DC.
int DrawText(const tstring &str, int count, const TRect &, uint16 format=0)
Overload for const TRect& For obvious reasons, this overload does not support the DT_CALCRECT format ...
Derived from TBrush, THatch8x8Brush defines a small, 8x8, monochrome, configurable hatch brush.
static const uint8 Hatch11F1[8]
The static array Hatch11F1[8] holds the logical hatched brush pattern of one pixel on and one pixel o...
void Reconstruct(const uint8 hatch[], const TColor &fgColor, const TColor &bgColor)
Reconstructs the hatched brush with a new pattern or new set of colors.
TIcon, derived from TGdiObject, represents the GDI object icon class.
A device context (DC) class derived from TCreatedDC, TMemoryDC provides access to a memory DC.
TPoint is a support class, derived from tagPOINT.
TRect is a mathematical class derived from tagRect.
The tagSIZE struct is defined as.
static TBitmap & GetGlyphMask(const TSize &minSize)
Internal static helper function that can be used alone.
void PaintMask(TDC &dc, const TPoint &pt)
Paint the mask onto a DC.
static bool Draw(TDC &dc, HBRUSH hbr, LPARAM lp, WPARAM wp, int x, int y, int cx, int cy, uint flags)
Encapsulates and emulate the 32-bit DrawState API.
static THatch8x8Brush & GetDitherBrush()
Internal static helper function that can be used alone.
static int DrawTextEtched(TDC &dc, const tstring &str, int count, const TRect &rect, uint16 format)
Internal static helper function that can be used alone.
static void PaintMaskBm(const TBitmap &glyph, TDC &dc, const TPoint &pt, const TColor &maskColor)
Internal static helper function that can be used alone.
static void FillBackground(TDC &dc, TDC &maskDC, const TRect &dstRect, const TBrush &brush)
Internal static helper function that can be used alone.
static void DitherBackground(TDC &dc, TDC &maskDC, const TRect &dstRect)
Internal static helper function that can be used alone.
TState
Enumeration describing the state of the bitmap to be drawn.
@ Disabled
Disabled or Unavailable state (embossed 3d no color)
@ Indeterm
Indeterminant, or mixed-value state.
@ Default
Default btn state (bold)
@ Down
Down or Option set state (hilit background, +1,+1)
static void PaintText(const tstring &text, TDC &dc, const TRect &faceRect, const TPoint &dstPt, TState state, bool pressed, bool fillFace, const TColor &fillColor, uint16 format)
Internal static helper function that can be used alone.
void Paint(TDC &dc, const TPoint &dstPt, TState state, bool pressed, bool fillFace=true)
Paint the face of a button onto a DC.
static void PaintIcon(const TIcon &icon, const TRect &glyphSrcRect, TDC &dc, const TRect &faceRect, const TPoint &dstPt, TState state, bool pressed, bool fillFace, const TColor &maskColor, const TColor &fillColor)
Internal static helper function that can be used alone.
static void BuildMask(TDC &maskDC, const TPoint &maskDst, const TSize &maskSize, TDC &glyphDC, const TRect &glyphRect, const TColor &maskColor)
Internal static helper function that can be used alone.
static void PaintBm(const TBitmap &glyph, const TRect &glyphSrcRect, TDC &dc, const TRect &faceRect, const TPoint &dstPt, TState state, bool pressed, bool fillFace, const TColor &maskColor, const TColor &fillColor)
Internal bitmap painting function.
Definition of abstract GDI object class and derived classes.
Object Windows Library (OWLNext Core)
General definitions used by all ObjectWindows programs.
#define CONST_CAST(targetType, object)
Definition of the UI Helper Classes: TUIHandle, TUIBorder, TUIFace, TUIPart.