|
Public Types |
enum | {
ID_QUIT = 0,
ID_DUMP,
ID_LAST
} |
| Messages applications understand. More...
|
Public Methods |
| FXApp (const FXString &name="Application", const FXString &vendor="FoxDefault") |
| Copyright notice of library.
|
const FXString & | getAppName () const |
| Get application name.
|
const FXString & | getVendorName () const |
| Get vendor name.
|
FXbool | openDisplay (const FXchar *dpyname=":0") |
| Connection to display; this is called by init().
|
FXbool | closeDisplay () |
| Close connection to the display.
|
void * | getDisplay () const |
| Return pointer.
|
FXVisual * | getDefaultVisual () const |
| Get default visual.
|
void | setDefaultVisual (FXVisual *vis) |
| Change default visual.
|
FXVisual * | getMonoVisual () const |
| Get monochrome visual.
|
FXRootWindow * | getRoot () const |
| Get root Window.
|
FXWindow * | getCursorWindow () const |
| Get the window under the cursor, if any.
|
FXWindow * | getFocusWindow () const |
| Get the window which has the focus, if any.
|
FXWindow * | getMainWindow () const |
| Get main window, if any.
|
FXWindow * | findWindowWithId (FXID xid) const |
| Find window from id.
|
FXWindow * | findWindowAt (FXint rx, FXint ry, FXID window=0) const |
| Find window from root x,y, starting from given window.
|
FXTimer * | addTimeout (FXint ms, FXObject *tgt, FXSelector sel) |
FXTimer * | removeTimeout (FXTimer *t) |
| Remove timeout, returns NULL.
|
FXChore * | addChore (FXObject *tgt, FXSelector sel) |
FXChore * | removeChore (FXChore *c) |
| Remove idle processing message.
|
void | addSignal (FXint sig, FXObject *tgt, FXSelector sel, FXbool immediate=FALSE, FXuint flags=0) |
void | removeSignal (FXint sig) |
| Remove signal message for signal sig.
|
FXbool | addInput (FXInputHandle fd, FXuint mode, FXObject *tgt, FXSelector sel) |
FXbool | removeInput (FXInputHandle fd, FXuint mode) |
virtual void | create () |
| Create application's windows.
|
virtual void | destroy () |
| Destroy application's windows.
|
virtual void | detach () |
| Detach application's windows.
|
FXbool | peekEvent () |
| Peek to determine if there's an event.
|
void | runOneEvent () |
| Perform one event dispatch.
|
FXint | run () |
FXint | runUntil (FXuint &condition) |
| Run an event loop till some flag becomes non-zero.
|
FXint | runWhileEvents (FXWindow *window=NULL) |
FXint | runModal () |
FXint | runModalFor (FXWindow *window) |
FXint | runModalWhileShown (FXWindow *window) |
FXint | runPopup (FXWindow *window) |
FXbool | isModal (FXWindow *window) const |
| True if the window is modal.
|
FXWindow * | modalWindow () const |
| Return window of current modal loop.
|
FXModality | modalModality () const |
| Return mode of current modal loop.
|
void | stop (FXint value=0) |
void | stopModal (FXWindow *window, FXint value=0) |
void | stopModal (FXint value=0) |
void | forceRefresh () |
| Force GUI refresh.
|
void | refresh () |
| Schedule a refresh.
|
void | flush (FXbool sync=FALSE) |
| Flush pending repaints.
|
void | repaint () |
virtual void | init (int &argc, char **argv, FXbool connect=TRUE) |
virtual void | exit (FXint code=0) |
FXRegistry & | reg () |
| Get registry.
|
FXDragType | registerDragType (const FXString &name) const |
| Register new DND type.
|
FXString | getDragTypeName (FXDragType type) const |
| Get drag type name.
|
void | beep () |
| Beep.
|
void | setNormalFont (FXFont *font) |
| Change default font.
|
FXFont * | getNormalFont () const |
| Return default font.
|
void | beginWaitCursor () |
| Begin of wait-cursor block; wait-cursor blocks may be nested.
|
void | endWaitCursor () |
| End of wait-cursor block.
|
void | setWaitCursor (FXCursor *cur) |
| Change to a new wait cursor.
|
FXCursor * | getWaitCursor () const |
| Return current wait cursor.
|
FXCursor * | getDefaultCursor (FXDefaultCursor which) const |
| Obtain a default cursor.
|
void | setDefaultCursor (FXDefaultCursor which, FXCursor *cur) |
| Change default cursor.
|
FXuint | getTypingSpeed () const |
| Obtain application-wide settings.
|
FXuint | getClickSpeed () const |
FXuint | getScrollSpeed () const |
FXuint | getScrollDelay () const |
FXuint | getBlinkSpeed () const |
FXuint | getAnimSpeed () const |
FXuint | getMenuPause () const |
FXuint | getTooltipPause () const |
FXuint | getTooltipTime () const |
FXint | getDragDelta () const |
FXint | getWheelLines () const |
void | setTypingSpeed (FXuint speed) |
| Change application-wide settings.
|
void | setClickSpeed (FXuint speed) |
void | setScrollSpeed (FXuint speed) |
void | setScrollDelay (FXuint delay) |
void | setBlinkSpeed (FXuint speed) |
void | setAnimSpeed (FXuint speed) |
void | setMenuPause (FXuint pause) |
void | setTooltipPause (FXuint pause) |
void | setTooltipTime (FXuint time) |
void | setDragDelta (FXint delta) |
void | setWheelLines (FXint lines) |
FXColor | getBorderColor () const |
| Obtain default colors.
|
FXColor | getBaseColor () const |
FXColor | getHiliteColor () const |
FXColor | getShadowColor () const |
FXColor | getBackColor () const |
FXColor | getForeColor () const |
FXColor | getSelforeColor () const |
FXColor | getSelbackColor () const |
FXColor | getTipforeColor () const |
FXColor | getTipbackColor () const |
void | setBorderColor (FXColor color) |
| Change default colors.
|
void | setBaseColor (FXColor color) |
void | setHiliteColor (FXColor color) |
void | setShadowColor (FXColor color) |
void | setBackColor (FXColor color) |
void | setForeColor (FXColor color) |
void | setSelforeColor (FXColor color) |
void | setSelbackColor (FXColor color) |
void | setTipforeColor (FXColor color) |
void | setTipbackColor (FXColor color) |
virtual void | save (FXStream &store) const |
| Save.
|
virtual void | load (FXStream &store) |
| Load.
|
void | dumpWidgets () const |
| Dump widget information.
|
virtual | ~FXApp () |
| Destroy the application and all reachable resources.
|
Static Public Methods |
FXApp * | instance () |
| Return application instance.
|
Static Public Attributes |
const FXuchar | copyright [] = "Copyright (C) 1997,2002 Jeroen van der Zijp. All Rights Reserved." |
| Information.
|
Friends |
class | FXId |
class | FXBitmap |
class | FXImage |
class | FXIcon |
class | FXCursor |
class | FXDrawable |
class | FXWindow |
class | FXShell |
class | FXRootWindow |
class | FXTopWindow |
class | FXMainWindow |
class | FXFont |
class | FXVisual |
class | FXGLVisual |
class | FXGLContext |
class | FXDC |
class | FXDCWindow |