33__TBarDescrGdNode::~__TBarDescrGdNode()
47static TGadget* CreateGadget(
int index,
int id,
bool&
usecell)
51 return new TSeparatorGadget;
53 return new TButtonGadget(index,
292 delete GadgetFunctor;
335 for (
int i=0,
j=0;
i <
barRes->GetCount();
i++) {
353 if (BarRes && BarRes->
IsOK()) {
355 CreateGadgets(Gadgets, *
GetBuilder(), BarRes);
362 for (
int i=0,
j=0;
i < (
int)Gadgets->Size();
i++){
364 if((*Gadgets)[
i]->UseGlyph)
377 if (BarRes && BarRes->
IsOK()){
411 else if (
srcBarDescr.GroupCount[
g] == 0 && GroupCount[
g] > 0) {
412 for (
int i=0;
i < GroupCount[
g];
i++){
439 if (BarRes && BarRes->
IsOK()){
449 if(GroupCount[
g]!= 0){
450 for (
int i=0;
i < GroupCount[
g];
i++){
505 for (
int i = 0;
i < itemCount;
i++) {
508 GroupCount[
g++] = count;
523 GroupCount[
g++] = count;
535#if OWL_PERSISTENT_STREAMS
548 int numRows =
b.BarRes->GetBitmap().Height()/
b.BarRes->GetHeight();
549 b.CelArray =
new TCelArray(&
b.BarRes->GetBitmap(),
b.BarRes->GetCount(),
550 TSize(
b.BarRes->GetWidth(),
b.BarRes->GetHeight()),
555 is >>
b.GroupCount[
i];
569 os <<
b.GroupCount[
i];
Class definition for TBarDescr.
#define TGadget_FUNCTOR(func)
Definition of a bitmap Cel array class.
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.
virtual bool Restore(TGadgetWindow &destWindow)
Removes the gadgets in destWindow and then inserts these gadgets.
TGadgetFunctor * GetBuilder()
@ 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.
virtual ~TBarDescr()
Destroys the TBarDescr object.
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.
int Height() const
Returns the height of this bitmap using GDI's GetObject.
TBtnBitmap is an enhanced version of TBitmap with the ability to update the face color of a bitmap to...
TCelArray is a horizontal array of cels (a unit of animation) created by slicing a portion of or an e...
static const TColor LtGray
Static TColor object with fixed Value set by RGB(192, 192, 192).
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...
TPoint is a support class, derived from tagPOINT.
bool IsOK() const
Confirms whether resource was found.
The tagSIZE struct is defined as.
ipstream, a specialized input stream derivative of pstream, is the base class for reading (extracting...
C++ Functor template implementation.
Base class TGadget and simple derived TSeparatorGadget.
#define IDG_FLATHANDLE
The ID for a flat bar handle.
Definition of TGadgetList, TGadgetWindow & TGadgetWindowFont A list holding gadgets,...
Definition of class TGlyphButton.
THandle GetHandle() const
Return the instance handle of the library module represented by the TModule obect.
Object Windows Library (OWLNext Core)
owl::opstream & operator<<(owl::opstream &os, const TColor &c)
Insert the color value into a persistent output stream.
TFunctor3< TGadget *, int, int, bool & > TGadgetFunctor
owl::ipstream & operator>>(owl::ipstream &is, TColor &c)
Extract the color value from a persistent input stream.
#define TYPESAFE_DOWNCAST(object, toClass)
Defines classes handling Windows resources.
Definition of container classes used and made available by OWL.