(Cd, Co) class CmPullDown : public CmObject

The container for menu items

Inheritance:

CmPullDown < CmObject


Public Methods

CmPullDown(MTFont font=HELV_MEDIUM)
CmPullDown(CmMenu *menu, char *title)
CmPullDown(CmMenuItem *it)
const char* getText(void)
virtual void onItemSelection(CmMenuItem *item)
void popup(int x, int y)
void setText(char *text)
virtual ~CmPullDown(void)

Private Fields

friend class CmMenuItem
CmMenuItem* list

Inherited from CmObject:

Public Methods

inline void changeLabelHelpText(char *str)
inline void changePopupHelpText(char *str)
inline void drawArc(int x, int y, int r, int a1, int a2, CmColor *col)
inline void drawBGNText(int x, int y, int w, int h, char *text, MTFont font, CmColor *bgc, CmColor *fgc, int align, int n)
inline void drawBGText(int x, int y, int w, int h, char *text, MTFont font, CmColor *bgc, CmColor *fgc, int align)
inline void drawBox(int x, int y, int w, int h, CmColor *bgc)
inline void drawCircle(int x, int y, int r, CmColor *col)
inline void drawFilledArc(int x, int y, int r, int a1, int a2, CmColor *c)
inline void drawFilledBox(int x, int y, int w, int h, CmColor *bgc)
inline void drawFilledCircle(int x, int y, int r, CmColor *col)
inline void drawFilledPolyline(MPOINT *points, int n, CmColor *col)
inline void drawImage(CmImage *gi, int img_x, int img_y, int w, int h, int x, int y)
inline void drawLine(int x1, int y1, int x2, int y2, CmColor *col)
inline void drawNText(int x, int y, int w, int h, char *text, MTFont font, CmColor *fgc, int align, int n)
inline void drawPoint(int x, int y, CmColor *col)
inline void drawPolyline(MPOINT *points, int n, CmColor *col)
inline void drawShadowedNText(int x, int y, int w, int h, char *text, MTFont font, int sh, CmColor *fg1, CmColor *fg2, int align, int n)
inline void drawShadowedText(int x, int y, int w, int h, char *text, MTFont font, int sh, CmColor *fg1, CmColor *fg2, int align)
inline void drawText(int x, int y, int w, int h, char *text, MTFont font, CmColor *fgc, int align)
inline void drawXorBox(int x, int y, int w, int h)
inline void drawXorLine(int x1, int y1, int x2, int y2)
inline void enableOnEventPreProcess(CARD32 event_mask)
inline void enableOptions(char *name, CARD32 mask)
inline void focusLink(CmObject *obj_to_link)
CmColor* getBackgroundColor(void)
inline MTFont getFont(void)
CmColor* getForegroundColor(void)
inline int getHeight(void)
inline char* getName(void)
MOBJECT getObj(void)
CmContainer* getParent(void)
inline void getShadow(int *type, int *in, int *out)
inline CmShell* getShell(void)
inline void* getUserData(void)
inline int getWidth(void)
inline int getX(void)
inline int getY(void)
inline int isMapped(void)
inline int isSelectable(void)
inline int isSensitive(void)
void link(CmContainer *parent, CmObject *where, int resize_parent)
inline void map(void)
virtual void onEventPreProcess(MEvent *pe)
inline void redraw(void)
void reparent(CmContainer *new_parent, CmObject *where)
inline void resize(int w, int h)
inline void saveOptions(void)
inline void select(void)
inline void setAttachment(int top, int bottom, int left, int right)
inline void setBackgroundRGB(unsigned r, unsigned g, unsigned b)
inline void setColor(CmColor *bgc, CmColor *fgc)
inline void setCursor(MTCursor cursor)
inline void setFont(MTFont font, int resize_obj=0)
inline void setForegroundRGB(unsigned r, unsigned g, unsigned b)
inline void setLabelHelp(char *str, CmObject *label)
inline void setName(char *name)
inline void setOffset(int t_off, int b_off, int l_off, int r_off)
inline void setPopupHelp(char *str, int delay, int duration)
inline void setResize(int resize_w, int resize_h)
inline void setSelectable(void)
inline void setSensitive(void)
inline void setSensitivity(int true_false)
inline void setShadow(int type, int in=0, int out=0)
inline void setUnselectable(void)
inline void setUnsensitive(void)
inline void setUserData(void *ud)
inline void unlink(int resize_obj)
inline void unmap(void)

Documentation

The container for menu items. Can be created as a stand alone container (popup), a container for a menu bar, a container as child of an item (subpulldown).
friend class CmMenuItem

CmMenuItem* list

CmPullDown(CmMenu *menu, char *title)

CmPullDown(CmMenuItem *it)

CmPullDown(MTFont font=HELV_MEDIUM)

virtual ~CmPullDown(void)

void setText(char *text)

const char* getText(void)

void popup(int x, int y)

virtual void onItemSelection(CmMenuItem *item)


This class has no child classes.

alphabetic index hierarchy of classes


MGUI Copyright 1996-1998 Vincenzo Morello

generated by doc++