10#if !defined(OWL_GADGETWI_H)
14#if defined(BI_HAS_PRAGMA_ONCE)
56 virtual void InsertFrom(
TGadgetList& list, TPlacement = After,
73 uint GadgetCount()
const;
77 TGadget* GadgetWithId(
int id)
const;
145 auto Create() ->
bool override;
157 TTileDirection GetDirection()
const;
158 virtual void SetDirection(TTileDirection
direction);
160 void SetRectangularDimensions(
int width,
int height,
int rowMargin= -1);
162 const TFont& GetFont()
const;
163 uint GetFontHeight()
const;
171 bool GetWantTooltip() const;
187 void SetHintMode(THintMode
hintMode);
188 THintMode GetHintMode();
189 void SetHintCommand(
int id);
193 NonFlatNormal = 0x0000L,
194 FlatStandard = 0x0001L,
195 FlatGrayButtons = 0x0002L,
196 FlatHotText = 0x0004L,
197 FlatSingleDiv = 0x0008L,
198 FlatXPTheme = 0x0010L,
199 FlatDefault = 0xFFFFL,
202 static void EnableFlatStyle(
uint style = FlatDefault);
203 static uint GetFlatStyle();
207 bool IsThemed()
const;
208 void EnableThemeBackground(
bool enable =
true);
209 bool IsThemeBackgroundEnabled()
const;
210 bool IsBackgroundThemed()
const;
222 void Inserted(
TGadget&)
override;
223 void Removed(
TGadget&)
override;
233 auto IdleAction(
long idleCount) ->
bool override;
245 virtual void LayoutSession();
253 virtual void GetDesiredSize(
TSize& size);
264 int LayoutUnitsToPixels(
int units);
267 int& left,
int& right,
int& top,
int& bottom);
268 void UseDesiredSize();
288 virtual TRect TileGadgets();
299 void SetupWindow()
override;
300 void CleanupWindow()
override;
301 bool PreProcessMsg(
MSG&
msg)
override;
312 void EvSysColorChange();
313 bool EvEraseBkgnd(
HDC);
314 void EvCreateTooltips();
331 bool ShrinkWrapWidth : 8;
332 bool ShrinkWrapHeight : 8;
333 uint WideAsPossible : 8;
334 bool DirtyLayout : 8;
344 static uint FlatStyle;
345 bool ThemeBackgroundMode;
367#define EV_WM_CREATETOOLTIP OWL_EV_(WM_OWLCREATETTIP, EvCreateTooltips)
408 return gadget.NextGadget();
468 int& left,
int& right,
int& top,
int& bottom)
470 margins.GetPixels(left, right, top, bottom, FontHeight);
TCelArray is a horizontal array of cels (a unit of animation) created by slicing a portion of or an e...
Base class for an extensible interface for auto enabling/disabling of commands (menu items,...
TDC is the root class for GDI DC wrappers.
TFont derived from TGdiObject provides constructors for creating font objects from explicit informati...
TGadgetControl is a specialized, easily constructed gadget window that holds one gadget for use as a ...
TGadget is the base class for the following derived gadget classes:
TGadgetList is a list of gadgets with management functions.
uint GadgetCount() const
Returns the number of gadgets in the list.
TGadget * NextGadget(TGadget &gadget) const
Returns the next gadget in the list relative to a given gadget.
TPlacement
Enumerates the placement of a gadget.
TGadget * FirstGadget() const
Returns the first gadget of the list.
Gadget layout information used during the layout process.
TAPointer< TRect > GadgetBounds
TLayoutInfo(int gadgetCount)
Derived from TFont, TGadgetWindowFont is the default font used by TGadgetWindow.
Derived from TWindow, TGadgetWindow maintains a list of tiled gadgets for a window and lets you dynam...
uint GetFontHeight() const
Returns the height of the font being used by this gadget window.
TGadget * GadgetGetCaptured()
Retrieves gadget with capture.
static uint GetFlatStyle()
Returns the flat style.
THintMode GetHintMode()
Returns the current hint mode of this gadget window.
TFlatStyle
Enumerates the flat styles settings of the gadget.
void SetHintMode(THintMode hintMode)
Sets the mode of the hint text.
const TFont & GetFont() const
Returns the font being used by this gadget window.
auto GetTooltip() const -> TTooltip *override
Returns Tooltip.
bool GetWantTooltip() const
void SetWantTooltip(bool wantTooltip)
TTileDirection
Enumeration describing how gadgets should be laid out within the gadget window.
@ Vertical
Arrange gadgets in a column.
@ Horizontal
Arrange gadgets in a row.
TTileDirection GetDirection() const
Returns the direction of tiling for this gadget window.
THintMode
Hint mode settings & action used by contained gadgets.
@ PressHints
Hints when a button is pressed.
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TPoint is a support class, derived from tagPOINT.
TRect is a mathematical class derived from tagRect.
The tagSIZE struct is defined as.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
#define DECLARE_RESPONSE_TABLE(cls)
Base class TGadget and simple derived TSeparatorGadget.
Definition of abstract GDI object class and derived classes.
Object Windows Library (OWLNext Core)
Used by the TGadgetWindow and TGadget classes, TMargins contains the measurements of the margins for ...
Base window class TWindow definition, including HWND encapsulation.