Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXApp.h>
Inheritance diagram for FX::FXApp:
Public Types | |
enum | { ID_QUIT = 1, ID_DUMP, ID_HOVER, ID_LAST } |
Public Member Functions | |
FXApp (const FXString &name="Application", const FXString &vendor="FoxDefault") | |
const FXString & | getAppName () const |
const FXString & | getVendorName () const |
FXbool | openDisplay (const FXchar *dpyname=NULL) |
FXbool | closeDisplay () |
void * | getDisplay () const |
FXbool | isInitialized () const |
FXint | getArgc () const |
const FXchar *const * | getArgv () const |
FXVisual * | getDefaultVisual () const |
void | setDefaultVisual (FXVisual *vis) |
FXVisual * | getMonoVisual () const |
FXRootWindow * | getRootWindow () const |
void | setRootWindow (FXRootWindow *rt) |
FXWindow * | getCursorWindow () const |
FXWindow * | getFocusWindow () const |
FXPopup * | getPopupWindow () const |
FXWindow * | findWindowWithId (FXID xid) const |
FXWindow * | findWindowAt (FXint rx, FXint ry, FXID window=0) const |
virtual void | create () |
virtual void | destroy () |
virtual void | detach () |
void | addTimeout (FXObject *tgt, FXSelector sel, FXuint ms=1000, void *ptr=NULL) |
void | removeTimeout (FXObject *tgt, FXSelector sel) |
FXbool | hasTimeout (FXObject *tgt, FXSelector sel) const |
FXuint | remainingTimeout (FXObject *tgt, FXSelector sel) |
void | handleTimouts () |
void | addChore (FXObject *tgt, FXSelector sel, void *ptr=NULL) |
void | removeChore (FXObject *tgt, FXSelector sel) |
FXbool | hasChore (FXObject *tgt, FXSelector sel) const |
void | addSignal (FXint sig, FXObject *tgt, FXSelector sel, FXbool immediate=FALSE, FXuint flags=0) |
void | removeSignal (FXint sig) |
FXbool | addInput (FXInputHandle fd, FXuint mode, FXObject *tgt, FXSelector sel) |
FXbool | removeInput (FXInputHandle fd, FXuint mode) |
FXbool | getKeyState (FXuint keysym) const |
FXbool | peekEvent () |
FXbool | runOneEvent (FXbool blocking=TRUE) |
FXint | run () |
FXint | runUntil (FXuint &condition) |
FXint | runWhileEvents () |
FXint | runModalWhileEvents (FXWindow *window=NULL) |
FXint | runModal () |
FXint | runModalFor (FXWindow *window) |
FXint | runModalWhileShown (FXWindow *window) |
FXint | runPopup (FXWindow *window) |
FXbool | isModal (FXWindow *window) const |
FXWindow * | getModalWindow () const |
FXModality | getModality () const |
void | stop (FXint value=0) |
void | stopModal (FXWindow *window, FXint value=0) |
void | stopModal (FXint value=0) |
void | forceRefresh () |
void | refresh () |
void | flush (FXbool sync=FALSE) |
void | repaint () |
virtual void | init (int &argc, char **argv, FXbool connect=TRUE) |
virtual void | exit (FXint code=0) |
FXRegistry & | reg () |
FXDragType | registerDragType (const FXString &name) const |
FXString | getDragTypeName (FXDragType type) const |
FXWindow * | getDragWindow () const |
void | beep () |
void | setNormalFont (FXFont *font) |
FXFont * | getNormalFont () const |
void | beginWaitCursor () |
void | endWaitCursor () |
void | setWaitCursor (FXCursor *cur) |
FXCursor * | getWaitCursor () const |
FXCursor * | getDefaultCursor (FXDefaultCursor which) const |
void | setDefaultCursor (FXDefaultCursor which, FXCursor *cur) |
FXMutex & | mutex () |
FXuint | getTypingSpeed () const |
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) |
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 |
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 |
FXColor | getSelMenuTextColor () const |
FXColor | getSelMenuBackColor () const |
void | setBorderColor (FXColor color) |
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) |
void | setSelMenuTextColor (FXColor color) |
void | setSelMenuBackColor (FXColor color) |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
void | dumpWidgets () const |
virtual | ~FXApp () |
Static Public Member Functions | |
FXApp * | instance () |
Static Public Attributes | |
const FXuchar | copyright [] |
See also:
|
Messages applications understand.
|
|
Construct application object; the name and vendor strings are used as keys into the registry database for this application's settings. Only one single application object can be constructed. |
|
Destroy the application and all reachable resources.
|
|
Get application name.
|
|
Get vendor name.
|
|
Connection to display; this is called by init().
|
|
Close connection to the display.
|
|
Return pointer.
|
|
Is application initialized.
|
|
Get argument count.
|
|
Get argument vector.
|
|
Get default visual.
|
|
Change default visual.
|
|
Get monochrome visual.
|
|
Get root Window.
|
|
Set root Window.
|
|
Get the window under the cursor, if any.
|
|
Get the window which has the focus, if any.
|
|
Get current popup window, if any.
|
|
Find window from id.
|
|
Find window from root x,y, starting from given window.
|
|
Create application's windows.
|
|
Destroy application's windows.
|
|
Detach application's windows.
|
|
Add timeout message to be sent to target object in ms milliseconds; the timer fires only once after the interval expires. The void* ptr is user data which will be passed into the void* ptr of the message handler. If a timer with the same target and message already exists, it will be rescheduled. |
|
Remove timeout identified by tgt and sel.
|
|
Return TRUE if given timeout has been set.
|
|
Return, in ms, the time remaining until the given timer fires. If the timer is past due, 0 is returned. If there is no such timer, infinity (UINT_MAX) is returned. |
|
Process any timouts due at this time.
|
|
Add a idle processing message to be sent to target object when the system becomes idle, i.e. there are no events to be processed. The void* ptr is user data which will be passed into the void* ptr of the message handler. If a chore with the same target and message already exists, it will be rescheduled. |
|
Remove idle processing message identified by tgt and sel.
|
|
Return TRUE if given chore has been set.
|
|
Add signal processing message to be sent to target object when the signal sig is raised; flags are to be set as per POSIX definitions. When immediate is TRUE, the message will be sent to the target right away; this should be used with extreme care as the application is interrupted at an unknown point in its execution. |
|
Remove signal message for signal sig.
|
|
Add a file descriptor fd to be watched for activity as determined by mode, where mode is a bitwise OR (INPUT_READ, INPUT_WRITE, INPUT_EXCEPT). A message of type SEL_IO_READ, SEL_IO_WRITE, or SEL_IO_EXCEPT will be sent to the target when the specified activity is detected on the file descriptor. |
|
Remove input message and target object for the specified file descriptor and mode, which is a bitwise OR of (INPUT_READ, INPUT_WRITE, INPUT_EXCEPT).
|
|
Return key state.
|
|
Peek to determine if there's an event.
|
|
Perform one event dispatch; return true if event was dispatched.
|
|
Run the main application event loop until stop() is called, and return the exit code passed as argument to stop().
|
|
Run an event loop till some flag becomes non-zero, and then return.
|
|
Run event loop while events are available, non-modally. Return when no more events, timers, or chores are outstanding. |
|
Run event loop while there are events are available in the queue. Returns 1 when all events in the queue have been handled, and 0 when the event loop was terminated due to stop() or stopModal(). Except for the modal window and its children, user input to all windows is blocked; if the modal window is NULL, all user input is blocked. |
|
Run modal event loop, blocking keyboard and mouse events to all windows until stopModal is called.
|
|
Run a modal event loop for the given window, until stop() or stopModal() is called. Except for the modal window and its children, user input to all windows is blocked; if the modal window is NULL all user input is blocked. |
|
Run modal while window is shown, or until stop() or stopModal() is called. Except for the modal window and its children, user input to all windows is blocked; if the modal window is NULL all user input is blocked. |
|
Run popup menu while shown, until stop() or stopModal() is called. Also returns when entering previous cascading popup menu. |
|
True if the window is modal.
|
|
Return window of current modal loop.
|
|
Return mode of current modal loop.
|
|
Terminate the outermost event loop, and all inner modal loops; All more deeper nested event loops will be terminated with code equal to 0, while the outermost event loop will return code equal to value.
|
|
Break out of the matching modal loop, returning code equal to value. All deeper nested event loops are terminated with code equal to 0. |
|
Break out of the innermost modal loop, returning code equal to value.
|
|
Force GUI refresh.
|
|
Schedule a refresh.
|
|
Flush pending repaints.
|
|
Paint all windows marked for repainting. On return all the applications windows have been painted. |
|
Initialize application. Parses and removes common command line arguments, reads the registry. Finally, if connect is TRUE, it opens the display. |
|
Exit application. Closes the display and writes the registry. |
|
Return a reference to the registry. The registry keeps settings and configuration information for an application, which are automatically loaded when the application starts up, and saved when the application terminates. |
|
Register new DND type.
|
|
Get drag type name.
|
|
Return drag window if a drag operation is in progress.
|
|
Beep.
|
|
Return application instance.
|
|
Change default font.
|
|
Return default font.
|
|
Begin of wait-cursor block; wait-cursor blocks may be nested.
|
|
End of wait-cursor block.
|
|
Change to a new wait cursor.
|
|
Return current wait cursor.
|
|
Obtain a default cursor.
|
|
Change default cursor.
|
|
Return a reference to the application-wide mutex. Normally, the main user interface thread holds this mutex, insuring that no other threads are modifying data during the processing of user interface messages. However, whenever the main user interface thread blocks for messages, it releases this mutex, to allow other threads to modify the same data. When a new message becomes available, the main user interface thread regains the mutex prior to dispatching the message. Other threads should hold this mutex only for short durations, so as to not starve the main user interface thread. |
|
Obtain application-wide settings.
|
|
Change application-wide settings.
|
|
Obtain default colors.
|
|
Change default colors.
|
|
Save.
Reimplemented from FX::FXObject. |
|
Load.
Reimplemented from FX::FXObject. |
|
Dump widget information.
|
|
Information.
|
Copyright © 1997-2005 Jeroen van der Zijp |