12#if !defined(DEFAULT_GUI_FONT)
13# define DEFAULT_GUI_FONT 17
16#if defined(__BORLANDC__)
60 _T(
" ") << height <<
_T(
"pt)"));
84 _T(
" ") << height <<
_T(
"pt)"));
100#if defined(OWL5_COMPAT)
130#if !defined(NO_GDI_SHARE_HANDLES)
133 if (
src.ShouldDelete)
258 return f.GetObject();
#define WARNX(group, condition, level, message)
#define PRECONDITION(condition)
#define DIAG_DECLARE_GROUP(group)
TDC is the root class for GDI DC wrappers.
void SelectObject(const TBrush &brush)
Selects the given GDI brush object into this DC.
bool GetTextExtent(const tstring &str, int stringLen, TSize &size) const
Computes the extent (width and height) in logical units of the text line consisting of stringLen char...
virtual void RestoreFont()
Restores the original GDI font object to this DC.
bool GetTextMetrics(TEXTMETRIC &metrics) const
Fills the metrics structure with metrics data for the current font on this DC.
TSystemFontId
Defines the various GUI elements for which a default font can be created.
@ sfiCaption
Represents NONCLIENTMETRICS::lfCaptionFont.
@ sfiLegacyDefault
Represents the font returned by GetStockObject (DEFAULT_GUI_FONT).
@ sfiIcon
Represents ICONMETRICS::lfFont.
TDefaultGuiFont(TSystemFontId=sfiLegacyDefault)
Create a wrapper for the given system font.
TFont derived from TGdiObject provides constructors for creating font objects from explicit informati...
tstring GetFaceName() const
Returns the font's name.
uint8 GetPitchAndFamily() const
Returns the pitch and family flags for this logical font.
LOGFONT GetObject() const
Returns information about this font object.
TSize GetTextExtent(const tstring &text) const
Returns the extent of a given string using this particular font.
TEXTMETRIC GetTextMetrics() const
Retrieves information about this font when selected in a screen DC.
TFont(HFONT handle, TAutoDelete autoDelete=NoAutoDelete)
TFont encapsulates an HFONT.
GdiObject is the root, pseudo-abstract base class for ObjectWindows' GDI (Graphics Device Interface) ...
void CheckValid(uint resId=IDS_GDIFAILURE)
int GetObject(int count, void *object) const
Retrieve the object's attributes into a buffer.
bool ShouldDelete
Should object delete GDI handle in dtor?
static void RefAdd(HANDLE handle, TType type)
RefAdd adds a reference entry for the object with the given handle and type.
HANDLE Handle
GDI handle of this object.
Derived from TWindowDC, TScreenDC is a DC class that provides direct access to the screen bitmap.
The tagSIZE struct is defined as.
Describes an exception resulting from GDI failures such as creating too many TWindow device contexts ...
Definition of abstract GDI object class and derived classes.
TAutoDelete
Flag for Handle ctors to control Handle deletion in dtor.
Object Windows Library (OWLNext Core)
void InUse(const T &arg)
Handy utility to avoid compiler warnings about unused parameters.
Definition of TUIMetric, a UI metrics provider class.