![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
The Frame widget provides borders around some contents. More...
#include <FXFrame.h>
Public Member Functions | |
| long | onPaint (FXObject *, FXSelector, void *) |
| FXFrame (FXComposite *p, FXuint opts=FRAME_NORMAL, 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) | |
| Construct frame window. | |
| virtual FXint | getDefaultWidth () |
| Return default width. | |
| virtual FXint | getDefaultHeight () |
| Return default height. | |
| void | setFrameStyle (FXuint style) |
| Change frame style. | |
| FXuint | getFrameStyle () const |
| Get current frame style. | |
| FXint | getBorderWidth () const |
| Get border width. | |
| void | setPadTop (FXint pt) |
| Change top padding. | |
| FXint | getPadTop () const |
| Get top interior padding. | |
| void | setPadBottom (FXint pb) |
| Change bottom padding. | |
| FXint | getPadBottom () const |
| Get bottom interior padding. | |
| void | setPadLeft (FXint pl) |
| Change left padding. | |
| FXint | getPadLeft () const |
| Get left interior padding. | |
| void | setPadRight (FXint pr) |
| Change right padding. | |
| FXint | getPadRight () const |
| Get right interior padding. | |
| void | setHiliteColor (FXColor clr) |
| Change highlight color. | |
| FXColor | getHiliteColor () const |
| Get highlight color. | |
| void | setShadowColor (FXColor clr) |
| Change shadow color. | |
| FXColor | getShadowColor () const |
| Get shadow color. | |
| void | setBorderColor (FXColor clr) |
| Change border color. | |
| FXColor | getBorderColor () const |
| Get border color. | |
| void | setBaseColor (FXColor clr) |
| Change base gui color. | |
| FXColor | getBaseColor () const |
| Get base gui color. | |
| virtual void | save (FXStream &store) const |
| Save to stream. | |
| virtual void | load (FXStream &store) |
| Load from stream. | |
Protected Member Functions | |
| void | drawBorderRectangle (FXDCWindow &dc, FXint x, FXint y, FXint w, FXint h) |
| void | drawRaisedRectangle (FXDCWindow &dc, FXint x, FXint y, FXint w, FXint h) |
| void | drawSunkenRectangle (FXDCWindow &dc, FXint x, FXint y, FXint w, FXint h) |
| void | drawRidgeRectangle (FXDCWindow &dc, FXint x, FXint y, FXint w, FXint h) |
| void | drawGrooveRectangle (FXDCWindow &dc, FXint x, FXint y, FXint w, FXint h) |
| void | drawDoubleRaisedRectangle (FXDCWindow &dc, FXint x, FXint y, FXint w, FXint h) |
| void | drawDoubleSunkenRectangle (FXDCWindow &dc, FXint x, FXint y, FXint w, FXint h) |
| void | drawFrame (FXDCWindow &dc, FXint x, FXint y, FXint w, FXint h) |
Protected Attributes | |
| FXColor | baseColor |
| FXColor | hiliteColor |
| FXColor | shadowColor |
| FXColor | borderColor |
| FXint | padtop |
| FXint | padbottom |
| FXint | padleft |
| FXint | padright |
| FXint | border |
The Frame widget provides borders around some contents.
Borders may be raised, sunken, thick, ridged or etched. They can also be turned off completely. In addition, a certain amount of padding may be specified between the contents of the widget and the borders. The contents may be justified inside the widget using the justification options. The Frame widget is sometimes used by itself as a place holder, but most often is used as a convenient base class for simple controls.
|
|