160 NumGadgets += list.NumGadgets;
161 list.Gadgets =
nullptr;
180 Gadgets = Gadgets->Next;
187 while (
g->Next &&
g->Next != &
gadget)
193 g->Next =
g->Next->Next;
#define PRECONDITION(condition)
TGadget is the base class for the following derived gadget classes:
TGadgetList is a list of gadgets with management functions.
TGadget * operator[](uint index)
Returns gadget at a given index.
TGadget * NextGadget(TGadget &gadget) const
Returns the next gadget in the list relative to a given gadget.
virtual void Inserted(TGadget &gadget)
A gadget has been inserted.
TPlacement
Enumerates the placement of a gadget.
virtual void Removed(TGadget &gadget)
A gadget has been removed.
TGadget * GadgetFromPoint(const TPoint &point) const
Returns the gadget that a given window-relative point is in, or 0 if none is found.
TGadget * GadgetWithId(int id) const
Returns the gadget with a given ID, or 0 if none is found.
virtual void Insert(TGadget &gadget, TPlacement=After, TGadget *sibling=nullptr)
Inserts a Gadget.
virtual void InsertFrom(TGadgetList &list, TPlacement=After, TGadget *sibling=nullptr)
Inserts a list of gadgets.
virtual TGadget * Remove(TGadget &gadget)
Removes (unlinks) a gadget.
TGadget * FirstGadget() const
Returns the first gadget of the list.
TPoint is a support class, derived from tagPOINT.
The tagSIZE struct is defined as.
Base class TGadget and simple derived TSeparatorGadget.
Definition of TGadgetList, TGadgetWindow & TGadgetWindowFont A list holding gadgets,...
Object Windows Library (OWLNext Core)