FXMenuCaption

class FXMenuCaption

The menu caption is a widget which can be used as a caption above a number of menu commands in a menu

Inheritance:


Public Methods

[more] FXMenuCaption(FXComposite* p, const FXString& text, FXIcon* ic=NULL, FXuint opts=0)
Construct a menu caption
[more]virtual void create()
Create server-side resources
[more]virtual void detach()
Detach server-side resources
[more]virtual void enable()
Enable the menu
[more]virtual void disable()
Disable the menu
[more]virtual FXint getDefaultWidth()
Return default width
[more]virtual FXint getDefaultHeight()
Return default height
[more]void setText(const FXString& text)
Set the text for this menu
[more]FXString getText() const
Get the text for this menu
[more]void setIcon(FXIcon* ic)
Set the icon for this menu
[more]FXIcon* getIcon() const
Get the icon for this menu
[more]void setFont(FXFont* fnt)
Set the text font
[more]FXFont* getFont() const
Return the text font
[more]FXColor getTextColor() const
Get the current text color
[more]void setTextColor(FXColor clr)
Return the current text color
[more]FXColor getSelBackColor() const
Return the selection background color
[more]void setSelBackColor(FXColor clr)
Return the selection background color
[more]FXColor getSelTextColor() const
Return the selection text color
[more]void setSelTextColor(FXColor clr)
Return the selection text color
[more]void setHiliteColor(FXColor clr)
Change highlight color
[more]FXColor getHiliteColor() const
Get highlight color
[more]void setShadowColor(FXColor clr)
Change shadow color
[more]FXColor getShadowColor() const
Get shadow color
[more]void setHelpText(const FXString& text)
Set the status line help text for this menu
[more]FXString getHelpText() const
Get the status line help text for this menu
[more]virtual void save(FXStream& store) const
Save menu to a stream
[more]virtual void load(FXStream& store)
Load menu from a stream
[more]virtual ~FXMenuCaption()
Destructor


Inherited from FXWindow:

Public Methods

oFXWindow* getParent() const
oFXWindow* getOwner() const
oFXWindow* getShell() const
oFXWindow* getRoot() const
oFXWindow* getNext() const
oFXWindow* getPrev() const
oFXWindow* getFirst() const
oFXWindow* getLast() const
oFXWindow* getFocus() const
ovoid setKey(FXuint k)
oFXuint getKey() const
ovoid setTarget(FXObject* t)
oFXObject* getTarget() const
ovoid setSelector(FXSelector sel)
oFXSelector getSelector() const
oFXint getX() const
oFXint getY() const
ovirtual FXint getWidthForHeight(FXint givenheight)
ovirtual FXint getHeightForWidth(FXint givenwidth)
ovoid setX(FXint x)
ovoid setY(FXint y)
ovoid setWidth(FXint w)
ovoid setHeight(FXint h)
ovoid setLayoutHints(FXuint lout)
oFXuint getLayoutHints() const
oFXAccelTable* getAccelTable() const
ovoid setAccelTable(FXAccelTable* acceltable)
ovoid addHotKey(FXHotKey code)
ovoid remHotKey(FXHotKey code)
oFXbool isShell() const
oFXbool isChildOf(const FXWindow* window) const
oFXbool containsChild(const FXWindow* child) const
oFXWindow* getChildAt(FXint x, FXint y) const
oFXint numChildren() const
oFXint indexOfChild(const FXWindow* window) const
oFXWindow* childAtIndex(FXint index) const
ostatic FXWindow* commonAncestor(FXWindow* a, FXWindow* b)
ovoid setDefaultCursor(FXCursor* cur)
oFXCursor* getDefaultCursor() const
ovoid setDragCursor(FXCursor* cur)
oFXCursor* getDragCursor() const
oFXint getCursorPosition(FXint& x, FXint& y, FXuint& buttons) const
oFXint setCursorPosition(FXint x, FXint y)
oFXbool isEnabled() const
oFXbool isActive() const
ovirtual FXbool canFocus() const
oFXbool hasFocus() const
ovirtual void setFocus()
ovirtual void killFocus()
ovirtual void setDefault(FXbool enable=TRUE)
oFXbool isDefault() const
ovoid setInitial(FXbool enable=TRUE)
oFXbool isInitial() const
ovirtual void destroy()
ovirtual void raise()
ovirtual void lower()
ovirtual void move(FXint x, FXint y)
ovirtual void resize(FXint w, FXint h)
ovirtual void position(FXint x, FXint y, FXint w, FXint h)
ovirtual void recalc()
ovoid forceRefresh()
ovirtual void reparent(FXWindow* newparent)
ovoid scroll(FXint x, FXint y, FXint w, FXint h, FXint dx, FXint dy)
ovoid update(FXint x, FXint y, FXint w, FXint h)
ovoid update()
ovoid repaint(FXint x, FXint y, FXint w, FXint h)
ovoid repaint()
ovoid grab()
ovoid ungrab()
oFXbool grabbed() const
ovoid grabKeyboard()
ovoid ungrabKeyboard()
oFXbool grabbedKeyboard() const
ovirtual void show()
ovirtual void hide()
oFXbool shown() const
ovirtual FXbool isComposite() const
oFXbool underCursor() const
oFXbool hasSelection() const
oFXbool acquireSelection(const FXDragType* types, FXuint numtypes)
oFXbool releaseSelection()
oFXbool hasClipboard() const
oFXbool acquireClipboard(const FXDragType* types, FXuint numtypes)
oFXbool releaseClipboard()
ovoid dropEnable()
ovoid dropDisable()
oFXbool isDropEnabled() const
oFXbool isDragging() const
oFXbool beginDrag(const FXDragType* types, FXuint numtypes)
oFXbool handleDrag(FXint x, FXint y, FXDragAction action=DRAG_COPY)
oFXbool endDrag(FXbool drop=TRUE)
oFXbool isDropTarget() const
ovoid setDragRectangle(FXint x, FXint y, FXint w, FXint h, FXbool wantupdates=TRUE)
ovoid clearDragRectangle()
ovoid acceptDrop(FXDragAction action=DRAG_ACCEPT)
oFXDragAction didAccept() const
oFXbool inquireDNDTypes(FXDNDOrigin origin, FXDragType*& types, FXuint& numtypes)
oFXbool offeredDNDType(FXDNDOrigin origin, FXDragType type)
oFXDragAction inquireDNDAction() const
oFXbool setDNDData(FXDNDOrigin origin, FXDragType type, FXuchar* data, FXuint size)
oFXbool getDNDData(FXDNDOrigin origin, FXDragType type, FXuchar*& data, FXuint& size)
ovirtual FXbool contains(FXint parentx, FXint parenty) const
ovoid translateCoordinatesFrom(FXint& tox, FXint& toy, const FXWindow* fromwindow, FXint fromx, FXint fromy) const
ovoid translateCoordinatesTo(FXint& tox, FXint& toy, const FXWindow* towindow, FXint fromx, FXint fromy) const
ovirtual void setBackColor(FXColor clr)
oFXColor getBackColor() const
ovoid linkBefore(FXWindow* sibling)
ovoid linkAfter(FXWindow* sibling)


Inherited from FXDrawable:

Public Methods

oFXint getWidth() const
oFXint getHeight() const
oFXVisual* getVisual() const
ovoid setVisual(FXVisual* vis)


Inherited from FXId:

Public Methods

oFXApp* getApp() const
oFXID id() const
ovoid setUserData(void* ptr)
ovoid* getUserData() const


Inherited from FXObject:

Public Methods

oconst FXchar* getClassName() const
oFXbool isMemberOf(const FXMetaClass* metaclass) const


Documentation

The menu caption is a widget which can be used as a caption above a number of menu commands in a menu
o FXMenuCaption(FXComposite* p, const FXString& text, FXIcon* ic=NULL, FXuint opts=0)
Construct a menu caption

ovirtual void create()
Create server-side resources

ovirtual void detach()
Detach server-side resources

ovirtual void enable()
Enable the menu

ovirtual void disable()
Disable the menu

ovirtual FXint getDefaultWidth()
Return default width

ovirtual FXint getDefaultHeight()
Return default height

ovoid setText(const FXString& text)
Set the text for this menu

oFXString getText() const
Get the text for this menu

ovoid setIcon(FXIcon* ic)
Set the icon for this menu

oFXIcon* getIcon() const
Get the icon for this menu

ovoid setFont(FXFont* fnt)
Set the text font

oFXFont* getFont() const
Return the text font

oFXColor getTextColor() const
Get the current text color

ovoid setTextColor(FXColor clr)
Return the current text color

oFXColor getSelBackColor() const
Return the selection background color

ovoid setSelBackColor(FXColor clr)
Return the selection background color

oFXColor getSelTextColor() const
Return the selection text color

ovoid setSelTextColor(FXColor clr)
Return the selection text color

ovoid setHiliteColor(FXColor clr)
Change highlight color

oFXColor getHiliteColor() const
Get highlight color

ovoid setShadowColor(FXColor clr)
Change shadow color

oFXColor getShadowColor() const
Get shadow color

ovoid setHelpText(const FXString& text)
Set the status line help text for this menu

oFXString getHelpText() const
Get the status line help text for this menu

ovirtual void save(FXStream& store) const
Save menu to a stream

ovirtual void load(FXStream& store)
Load menu from a stream

ovirtual ~FXMenuCaption()
Destructor


Direct child classes:
FXMenuTitle
FXMenuCommand
FXMenuCascade

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.