class Fox::FXApp

Application Object

Events

The FXApp object itself doesn’t have a designated message target like other FOX objects, but it can send messages to objects for a few special events.

Timers

When a timeout event is registered with the application using the addTimeout method, a SEL_TIMEOUT message is sent to the message target.

Chores

When a chore event is registered with the application using the addChore method, a SEL_CHORE message is sent to the message target.

Inputs

When an input event is registered with the application using the addInput method, a SEL_IO_READ, SEL_IO_WRITE or SEL_IO_EXCEPT message may be sent to the message target.

Signals

When a signal handler object is registered with the application using the addSignal method, a SEL_SIGNAL message may be sent to the message target.

File input modes for {#addInput}

INPUT_NONE

inactive

INPUT_READ

read input fd

INPUT_WRITE

write input fd

INPUT_EXCEPT

except input fd

All ways of being modal

MODAL_FOR_NONE

Non modal event loop (dispatch normally)

MODAL_FOR_WINDOW

Modal dialog (beep if outside of modal dialog)

MODAL_FOR_POPUP

Modal for popup (always dispatch to popup)

Default cursors provided by the application

These constants symbolically represent the different cursor shapes used in FOX applications, and can be used as the which arguments for {#getDefaultCursor} and {#setDefaultCursor}.

DEF_ARROW_CURSOR

Arrow cursor

DEF_RARROW_CURSOR

Reverse arrow cursor

DEF_TEXT_CURSOR

Text cursor

DEF_HSPLIT_CURSOR

Horizontal split cursor

DEF_VSPLIT_CURSOR

Vertical split cursor

DEF_XSPLIT_CURSOR

Cross split cursor

DEF_SWATCH_CURSOR

Color swatch drag cursor

DEF_MOVE_CURSOR

Move cursor

DEF_DRAGH_CURSOR

Resize horizontal edge

DEF_DRAGV_CURSOR

Resize vertical edge

DEF_DRAGTL_CURSOR

Resize upper-leftcorner

DEF_DRAGBR_CURSOR

Resize bottom-right corner

DEF_DRAGTR_CURSOR

Resize upper-right corner

DEF_DRAGBL_CURSOR

Resize bottom-left corner

DEF_DNDSTOP_CURSOR

Drag and drop stop

DEF_DNDCOPY_CURSOR

Drag and drop copy

DEF_DNDMOVE_CURSOR

Drag and drop move

DEF_DNDLINK_CURSOR

Drag and drop link

DEF_CROSSHAIR_CURSOR

Cross hair cursor

DEF_CORNERNE_CURSOR

North-east cursor

DEF_CORNERNW_CURSOR

North-west cursor

DEF_CORNERSE_CURSOR

South-east cursor

DEF_CORNERSW_CURSOR

South-west cursor

DEF_HELP_CURSOR

Help arrow cursor

DEF_HAND_CURSOR

Hand cursor

DEF_ROTATE_CURSOR

Rotate cursor

DEF_WAIT_CURSOR

Wait cursor

Messages identifiers

ID_QUIT

Terminate the application normally

ID_DUMP

Dump the current widget tree