VSTGUI  3.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
COptionMenuScheme Class Reference

#include <vstcontrols.h>

+ Inheritance diagram for COptionMenuScheme:

Public Types

enum  {
  kChecked = 0x01, kDisabled = 0x02, kSelected = 0x04, kSubMenu = 0x08,
  kTitle = 0x10
}
 

Public Member Functions

virtual ~COptionMenuScheme ()
 

Protected Member Functions

virtual void drawItemBack (CDrawContext *pContext, const CRect &rect, bool hilite)
 

Protected Attributes

CColor backgroundColor
 
CColor selectionColor
 
CColor textColor
 
CColor hiliteTextColor
 
CColor disableTextColor
 
CFontRef font
 

Constructor

 COptionMenuScheme ()
 

COptionMenuScheme Methods

virtual void getItemSize (const char *text, CDrawContext *pContext, CPoint &size)
 
virtual void drawItem (const char *text, long itemId, long state, CDrawContext *pContext, const CRect &rect)
 
void setColors (const CColor &back, const CColor &select, const CColor &text, const CColor &htext, const CColor &dtext)
 
void setFont (CFontRef f)
 

Reference Counting Methods

virtual void forget ()
 decrease refcount and delete object if refcount == 0 More...
 
virtual void remember ()
 increase refcount More...
 
long getNbReference () const
 get refcount More...
 

Message Methods

virtual CMessageResult notify (CBaseObject *sender, const char *message)
 

Detailed Description

Deprecated:

Used to define the appearance (font color, background color...) of a popup-menu. To define the scheme of a menu, use the appropriate setScheme method (see COptionMenu).

New since 3.0

You can also use the global variable gOptionMenuScheme to use one scheme on all menus.

Note

If you want to use it on Mac OS X, you must set the macro MAC_ENABLE_MENU_SCHEME (needs Mac OS X 10.3 or higher)

Member Enumeration Documentation

anonymous enum
Enumerator
kChecked 
kDisabled 
kSelected 
kSubMenu 
kTitle 

Constructor & Destructor Documentation

~COptionMenuScheme ( )
virtual

Member Function Documentation

void drawItem ( const char *  text,
long  itemId,
long  state,
CDrawContext pContext,
const CRect rect 
)
virtual
void drawItemBack ( CDrawContext pContext,
const CRect rect,
bool  hilite 
)
protectedvirtual
virtual void forget ( )
inlinevirtualinherited

decrease refcount and delete object if refcount == 0

Reimplemented in CDrawContext.

void getItemSize ( const char *  text,
CDrawContext pContext,
CPoint size 
)
virtual
long getNbReference ( ) const
inlineinherited

get refcount

virtual CMessageResult notify ( CBaseObject sender,
const char *  message 
)
inlinevirtualinherited
virtual void remember ( )
inlinevirtualinherited

increase refcount

void setColors ( const CColor back,
const CColor select,
const CColor text,
const CColor htext,
const CColor dtext 
)
inline
void setFont ( CFontRef  f)
inline

Member Data Documentation

CColor backgroundColor
protected
CColor disableTextColor
protected
CFontRef font
protected
CColor hiliteTextColor
protected
CColor selectionColor
protected
CColor textColor
protected

The documentation for this class was generated from the following files: