gwenhywfar 5.10.1
Public Member Functions | Protected Member Functions
ThemeMenuButton Class Reference

#include <theme.h>

Inheritance diagram for ThemeMenuButton:
Inheritance graph
[legend]
Collaboration diagram for ThemeMenuButton:
Collaboration graph
[legend]

Public Member Functions

FXint getDefaultWidth ()
 
long onPaint (FXObject *, FXSelector, void *ptr)
 
 ThemeMenuButton (FXComposite *p, const FXString &text, FXIcon *ic=NULL, FXPopup *pup=NULL, FXuint opts=JUSTIFY_NORMAL|ICON_BEFORE_TEXT|MENUBUTTON_DOWN, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD)
 

Protected Member Functions

 ThemeMenuButton ()
 

Detailed Description

Definition at line 154 of file theme.h.

Constructor & Destructor Documentation

◆ ThemeMenuButton() [1/2]

ThemeMenuButton ( )
inlineprotected

Definition at line 158 of file theme.h.

◆ ThemeMenuButton() [2/2]

ThemeMenuButton ( FXComposite *  p,
const FXString &  text,
FXIcon *  ic = NULL,
FXPopup *  pup = NULL,
FXuint  opts = JUSTIFY_NORMAL|ICON_BEFORE_TEXT|MENUBUTTON_DOWN,
FXint  x = 0,
FXint  y = 0,
FXint  w = 0,
FXint  h = 0,
FXint  pl = DEFAULT_PAD,
FXint  pr = DEFAULT_PAD,
FXint  pt = DEFAULT_PAD,
FXint  pb = DEFAULT_PAD 
)

Definition at line 496 of file theme.cpp.

Member Function Documentation

◆ getDefaultWidth()

FXint getDefaultWidth ( )

Definition at line 772 of file theme.cpp.

References MENUBUTTONARROW_HEIGHT, and MENUBUTTONARROW_WIDTH.

◆ onPaint()

long onPaint ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Outside Background

Border

Gradient

Border

Definition at line 507 of file theme.cpp.

References drawRectangle(), MENUBUTTONARROW_HEIGHT, and MENUBUTTONARROW_WIDTH.

Referenced by FXDEFMAP().

Here is the call graph for this function:
Here is the caller graph for this function:

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