cartprov.h File Reference

(r1785/r1282)

Go to the source code of this file.

Classes

class  ImageAndBitmap
class  ResourceIDWithFlagsHash
class  ResourceIDWithFlagsEqual
class  CamArtProvider
 A derived event handler which providers art for bitmap buttons and other controls within Camelot Notes: In the OIL See Also:. More...
class  wxCamArtProviderEvent
 A derived event to allow for postprocessing of dialog events Notes: In the OIL See Also:. More...

Defines

#define EVT_CAMARTPROVIDER_GETBITMAP(id, fn)
#define EVT_CAMARTPROVIDER_INVALIDATEART(id, fn)

Typedefs

typedef UINT64 ResourceIDWithFlags
typedef void(wxEvtHandler::* wxCamArtProviderEventFunction )(wxCamArtProviderEvent &)

Enumerations

enum  CamArtFlags {
  CAF_SELECTED = 1<<0, CAF_FOCUS = 1<<1, CAF_GREYED = 1<<2, CAF_SMALL = 1<<3,
  CAF_CACHE_MAX = 1<<4, CAF_TOOLBACKGROUND = 1<<5, CAF_PUSHBUTTON = 1<<6, CAF_TOGGLEBUTTON = 1<<7,
  CAF_ALLOWHOVER = 1<<8, CAF_TEXT = 1<<9, CAF_EXACTFIT = 1<<10, CAF_HALFHEIGHT = 1<<11,
  CAF_TOP = 1<<12, CAF_BOTTOM = 1<<13, CAF_LEFT = 1<<14, CAF_RIGHT = 1<<15,
  CAF_BUTTONHOVER = 1<<16, CAF_ALWAYS3D = 1<<17, CAF_NOINTERNALBORDER = 1<<18, CAF_NOAUTOREPEAT = 1<<19,
  CAF_STATUSBARTEXT = 1<<20, CAF_MAX = 1<<21, CAF_DEFAULT = 0
}

Functions

 WX_DECLARE_HASH_MAP (ResourceIDWithFlags, ImageAndBitmap, ResourceIDWithFlagsHash, ResourceIDWithFlagsEqual, ResIDWithFlagsToBitmapPtr)


Define Documentation

#define EVT_CAMARTPROVIDER_GETBITMAP id,
fn   ) 
 

Value:

DECLARE_EVENT_TABLE_ENTRY(wxEVT_CAMARTPROVIDER_GETBITMAP, id, -1, \
    (wxObjectEventFunction)(wxEventFunction)(wxCamArtProviderEventFunction) &fn, (wxObject *) NULL),

Definition at line 303 of file cartprov.h.

#define EVT_CAMARTPROVIDER_INVALIDATEART id,
fn   ) 
 

Value:

DECLARE_EVENT_TABLE_ENTRY(wxEVT_CAMARTPROVIDER_INVALIDATEART, id, -1, \
    (wxObjectEventFunction)(wxEventFunction)(wxCamArtProviderEventFunction) &fn, (wxObject *) NULL),

Definition at line 305 of file cartprov.h.


Typedef Documentation

typedef UINT64 ResourceIDWithFlags
 

Definition at line 161 of file cartprov.h.

typedef void(wxEvtHandler::* wxCamArtProviderEventFunction)(wxCamArtProviderEvent &)
 

Definition at line 296 of file cartprov.h.


Enumeration Type Documentation

enum CamArtFlags
 

Enumerator:
CAF_SELECTED 
CAF_FOCUS 
CAF_GREYED 
CAF_SMALL 
CAF_CACHE_MAX 
CAF_TOOLBACKGROUND 
CAF_PUSHBUTTON 
CAF_TOGGLEBUTTON 
CAF_ALLOWHOVER 
CAF_TEXT 
CAF_EXACTFIT 
CAF_HALFHEIGHT 
CAF_TOP 
CAF_BOTTOM 
CAF_LEFT 
CAF_RIGHT 
CAF_BUTTONHOVER 
CAF_ALWAYS3D 
CAF_NOINTERNALBORDER 
CAF_NOAUTOREPEAT 
CAF_STATUSBARTEXT 
CAF_MAX 
CAF_DEFAULT 

Definition at line 107 of file cartprov.h.

00108 {
00109     // Caching flags start here - the art provider may have a different bitmap depending on the
00110     // state of these flags...
00111     CAF_SELECTED        = 1<<0,
00112     CAF_FOCUS           = 1<<1,
00113     CAF_GREYED          = 1<<2,
00114     CAF_SMALL           = 1<<3,
00115 
00116     CAF_CACHE_MAX       = 1<<4, // MUST lie at the end of the flags used for caching
00117 
00118     // These flags do not influence the bitmap itself, but influence how it is drawn
00119     CAF_TOOLBACKGROUND  = 1<<5,
00120     CAF_PUSHBUTTON      = 1<<6,
00121     CAF_TOGGLEBUTTON    = 1<<7, // unused here, but for the CACS_ stuff
00122     CAF_ALLOWHOVER      = 1<<8,
00123     CAF_TEXT            = 1<<9,
00124     CAF_EXACTFIT        = 1<<10, // For wxCACS
00125     CAF_HALFHEIGHT      = 1<<11, // For wxCACS
00126 
00127     CAF_TOP             = 1<<12,
00128     CAF_BOTTOM          = 1<<13,
00129     CAF_LEFT            = 1<<14,
00130     CAF_RIGHT           = 1<<15,
00131 
00132     CAF_BUTTONHOVER     = 1<<16, // this is set if the pointer IS CURRENTLY hovering
00133     CAF_ALWAYS3D        = 1<<17, // 3D even when not pushed in
00134 
00135     CAF_NOINTERNALBORDER= 1<<18, // Don't paint an internal border (unused, for CACS_)
00136 
00137     CAF_NOAUTOREPEAT    = 1<<19, // Used for CACS_
00138 
00139     CAF_STATUSBARTEXT   = 1<<20, // Used for status bar - render bit before :: in bold, chop on word boundaries
00140 
00141     // And this goes right at the end
00142     CAF_MAX             = 1<<21,
00143 
00144     // And here is the default
00145     CAF_DEFAULT         = 0
00146 };


Function Documentation

WX_DECLARE_HASH_MAP ResourceIDWithFlags  ,
ImageAndBitmap  ,
ResourceIDWithFlagsHash  ,
ResourceIDWithFlagsEqual  ,
ResIDWithFlagsToBitmapPtr 
 


Generated on Sat Nov 10 03:49:28 2007 for Camelot by  doxygen 1.4.4