10#if !defined(OWL_BARDESCR_H)
14#if defined(BI_HAS_PRAGMA_ONCE)
27template <
class R,
class T1,
class T2,
class T3>
class TFunctor3;
31#define TGadget_FUNCTOR(func) TFunctionTranslator3<TGadget*,int,int, bool&, TGadget* (*)(int,int, bool&)>(func)
32#define TGadget_MFUNCTOR(obj,memberFunc) TMemberTranslator3<TGadget*,int,int, bool&, TGadget*(obj::*)(int,int, bool&)>(obj, memberFunc);
62class TBarDescrGdArray;
121 TBarDescrGdArray* Gadgets;
146 return GroupCount[group];
152 return GadgetFunctor;
Descriptor of Bar Implementation.
void SetBuilder(const TGadgetFunctor &functor)
bool ExtractGroups()
Scan bar looking for separators that signify group divisions return whether we found any at all.
int GetGroupCount(int group) const
Gets the number of gadgets in a specified group within the control bar.
virtual bool Restore(TGadgetWindow &destWindow)
Removes the gadgets in destWindow and then inserts these gadgets.
TResId GetId() const
Gets the control bar resource ID used to construct the bar descriptor.
TGadgetFunctor * GetBuilder()
TGroup
Used by TBarDescr, the TGroup enum describes the following constants that define the index of the ent...
@ FileGroup
Index of the File gadget group count.
@ EditGroup
Index of the Edit gadget group count.
@ HelpGroup
Index of the Help gadget group count.
@ NumGroups
Total number of groups.
@ WindowGroup
Index of the Window gadget group count.
@ ObjectGroup
Index of the Object gadget group count.
@ ContainerGroup
Index of the Container gadget group count.
virtual bool Merge(const TBarDescr &sourceBarDescr, TGadgetWindow &destWindow)
Merges this gadgets and sourceBarDescr gadgets and inserts them into destWindow's gadgets.
TBarDescr()
Default constructor for a TBarDescr object.
bool RemoveGadgets(TGadgetWindow &destWindow)
Removes all gadgets from destWindow.
virtual bool Create(TGadgetWindow &destWindow)
Inserts into destWindow's gadgets.
bool SetBitmap(TResId newResId, TModule *module)
Set new bitmap for use in gadgets.
TCelArray is a horizontal array of cels (a unit of animation) created by slicing a portion of or an e...
Functor with 3 parameters, return R.
TGadget is the base class for the following derived gadget classes:
Derived from TWindow, TGadgetWindow maintains a list of tiled gadgets for a window and lets you dynam...
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
ipstream, a specialized input stream derivative of pstream, is the base class for reading (extracting...
Base class for writing streamable objects.
Object Windows Library (OWLNext Core).
TFunctor3< TGadget *, int, int, bool & > TGadgetFunctor
TModule & GetGlobalModule()
Defines classes handling Windows resources.