50 class FXComposeContext;
173 FXWindow *activeWindow;
174 FXWindow *cursorWindow;
175 FXWindow *mouseGrabWindow;
176 FXWindow *keyboardGrabWindow;
178 FXWindow *selectionWindow;
179 FXWindow *clipboardWindow;
180 FXWindow *dropWindow;
181 FXWindow *dragWindow;
183 FXWindow *refresherstop;
184 FXPopup *popupWindow;
186 FXVisual *monoVisual;
187 FXVisual *defaultVisual;
193 FXRepaint *repaintrecs;
194 FXInvocation *invocation;
232 FXCursor *waitCursor;
238 const
FXchar *const *appArgv;
239 const
FXchar *inputmethod;
257 FXID wmNetWindowName;
260 FXID wmNetHMaximized;
261 FXID wmNetVMaximized;
299 FXID xdndActionPrivate;
303 FXID xdndProxyTarget;
305 FXbool xdndStatusReceived;
336 FXbool xdndStatusReceived;
349 static void signalhandler(
int sig);
350 static void immediatesignalhandler(
int sig);
351 void leaveWindow(FXWindow *window,FXWindow *ancestor);
352 void enterWindow(FXWindow *window,FXWindow *ancestor);
355 void selectionGetTypes(
const FXWindow* window,
FXDragType*& types,
FXuint& numtypes);
358 void clipboardGetTypes(
const FXWindow* window,
FXDragType*& types,
FXuint& numtypes);
361 void dragdropGetTypes(
const FXWindow* window,
FXDragType*& types,
FXuint& numtypes);
366 static void imcreatecallback(
void*,
FXApp*,
void*);
367 static void imdestroycallback(
void*,
FXApp*,
void*);
377 virtual bool getNextEvent(
FXRawEvent& ev,
bool blocking=
true);
400 static const FXuchar copyright[];
415 const FXString& getVendorName()
const {
return registry.
getVendorKey(); }
424 void* getDisplay()
const {
return display; }
427 bool isInitialized()
const {
return initialized; }
430 FXint getArgc()
const {
return appArgc; }
433 const FXchar *
const *getArgv()
const {
return appArgv; }
436 bool hasInputMethod()
const;
439 FXVisual* getDefaultVisual()
const {
return defaultVisual; }
442 void setDefaultVisual(FXVisual* vis);
445 FXVisual* getMonoVisual()
const {
return monoVisual; }
448 FXRootWindow* getRootWindow()
const {
return root; }
451 void setRootWindow(FXRootWindow* rt);
454 FXWindow *getFocusWindow()
const;
457 FXWindow *getCursorWindow()
const {
return cursorWindow; }
460 FXWindow *getActiveWindow()
const {
return activeWindow; }
463 FXPopup* getPopupWindow()
const {
return popupWindow; }
466 FXWindow* findWindowWithId(
FXID xid)
const;
472 virtual void create();
475 virtual void destroy();
478 virtual void detach();
509 void handleTimeouts();
540 void removeSignal(
FXint sig);
557 bool getKeyState(
FXuint keysym)
const;
563 bool runOneEvent(
bool blocking=
true);
581 FXint runWhileEvents();
603 FXint runModalFor(FXWindow* window);
610 FXint runModalWhileShown(FXWindow* window);
616 FXint runPopup(FXWindow* window);
619 bool isModal(FXWindow* window)
const;
622 FXWindow* getModalWindow()
const;
632 void stop(
FXint value=0);
638 void stopModal(FXWindow* window,
FXint value=0);
643 void stopModal(
FXint value=0);
652 void flush(
bool sync=
false);
665 virtual void init(
int& argc,
char** argv,
bool connect=
true);
671 virtual void exit(
FXint code=0);
688 FXWindow* getDragWindow()
const {
return dragWindow; }
694 static inline FXApp* instance(){
return app; }
697 void setNormalFont(FXFont* font);
700 FXFont* getNormalFont()
const {
return normalFont; }
703 void beginWaitCursor();
706 void endWaitCursor();
709 void setWaitCursor(FXCursor *cur);
712 FXCursor* getWaitCursor()
const {
return waitCursor; }
715 FXCursor* getDefaultCursor(
FXDefaultCursor which)
const {
return cursor[which]; }
724 FXbool writeWindow(FXStream& store,FXWindow *window);
730 FXbool readWindow(FXStream& store,FXWindow*& window,FXWindow* father,FXWindow* owner);
744 FXMutex& mutex(){
return appMutex; }
750 void setTranslator(FXTranslator* trans);
753 FXTranslator* getTranslator()
const {
return translator; }
756 FXuint getTypingSpeed()
const {
return typingSpeed; }
757 FXuint getClickSpeed()
const {
return clickSpeed; }
758 FXuint getScrollSpeed()
const {
return scrollSpeed; }
759 FXuint getScrollDelay()
const {
return scrollDelay; }
760 FXuint getBlinkSpeed()
const {
return blinkSpeed; }
761 FXuint getAnimSpeed()
const {
return animSpeed; }
762 FXuint getMenuPause()
const {
return menuPause; }
763 FXuint getTooltipPause()
const {
return tooltipPause; }
764 FXuint getTooltipTime()
const {
return tooltipTime; }
765 FXint getDragDelta()
const {
return dragDelta; }
766 FXint getWheelLines()
const {
return wheelLines; }
767 FXint getScrollBarSize()
const {
return scrollBarSize; }
770 void setTypingSpeed(
FXuint speed);
771 void setClickSpeed(
FXuint speed);
772 void setScrollSpeed(
FXuint speed);
773 void setScrollDelay(
FXuint delay);
774 void setBlinkSpeed(
FXuint speed);
775 void setAnimSpeed(
FXuint speed);
776 void setMenuPause(
FXuint pause);
777 void setTooltipPause(
FXuint pause);
779 void setDragDelta(
FXint delta);
780 void setWheelLines(
FXint lines);
781 void setScrollBarSize(
FXint size);
784 FXColor getBorderColor()
const {
return borderColor; }
785 FXColor getBaseColor()
const {
return baseColor; }
786 FXColor getHiliteColor()
const {
return hiliteColor; }
787 FXColor getShadowColor()
const {
return shadowColor; }
788 FXColor getBackColor()
const {
return backColor; }
789 FXColor getForeColor()
const {
return foreColor; }
790 FXColor getSelforeColor()
const {
return selforeColor; }
791 FXColor getSelbackColor()
const {
return selbackColor; }
792 FXColor getTipforeColor()
const {
return tipforeColor; }
793 FXColor getTipbackColor()
const {
return tipbackColor; }
794 FXColor getSelMenuTextColor()
const {
return selMenuTextColor; }
795 FXColor getSelMenuBackColor()
const {
return selMenuBackColor; }
798 void setBorderColor(
FXColor color);
799 void setBaseColor(
FXColor color);
800 void setHiliteColor(
FXColor color);
801 void setShadowColor(
FXColor color);
802 void setBackColor(
FXColor color);
803 void setForeColor(
FXColor color);
804 void setSelforeColor(
FXColor color);
805 void setSelbackColor(
FXColor color);
806 void setTipforeColor(
FXColor color);
807 void setTipbackColor(
FXColor color);
808 void setSelMenuTextColor(
FXColor color);
809 void setSelMenuBackColor(
FXColor color);
812 FXuint getWindowCount()
const {
return windowCount; }
815 virtual void save(FXStream& store)
const;
818 virtual void load(FXStream& store);
821 void dumpWidgets()
const;
Inactive.
Definition: FXApp.h:67
FXString time(FXTime value)
Convert time value to date-string.
South-west cursor.
Definition: FXApp.h:114
FXDefaultCursor
Default cursors provided by the application.
Definition: FXApp.h:91
FXDragAction
Drag and drop actions.
Definition: fxdefs.h:330
unsigned long FXID
Definition: fxdefs.h:442
unsigned short FXushort
Definition: fxdefs.h:394
A drag corner widget may be placed in the bottom right corner so as to allow the window to be resized...
Definition: FXDragCorner.h:38
Drag and drop stop.
Definition: FXApp.h:106
A Bitmap is a rectangular array of pixels.
Definition: FXBitmap.h:64
char FXchar
Definition: fxdefs.h:387
The translator class translates a message to another language.
Definition: FXTranslator.h:44
Drag and drop move.
Definition: FXApp.h:108
Rectangle.
Definition: FXRectangle.h:37
Base class for all windows.
Definition: FXWindow.h:115
Root window.
Definition: FXRootWindow.h:35
Color swatch drag cursor.
Definition: FXApp.h:98
unsigned int FXuint
Definition: fxdefs.h:396
Resize bottom-left corner.
Definition: FXApp.h:105
North-east cursor.
Definition: FXApp.h:111
FXuint FXSelector
Association key.
Definition: FXObject.h:53
Resize vertical edge.
Definition: FXApp.h:101
Modal dialog (beep if outside of modal dialog)
Definition: FXApp.h:81
#define FXAPI
Definition: fxdefs.h:122
_XEvent FXRawEvent
Definition: fxdefs.h:475
FXInputMode
File input modes for addInput.
Definition: FXApp.h:66
FXuchar FXbool
Definition: fxdefs.h:393
Drag and drop link.
Definition: FXApp.h:109
Application Object.
Definition: FXApp.h:158
const FXString & getAppKey() const
Return application key.
Definition: FXRegistry.h:72
Read input fd.
Definition: FXApp.h:68
The Main Window is usually the central window of an application.
Definition: FXMainWindow.h:43
The registry maintains a database of persistent settings for an application.
Definition: FXRegistry.h:55
#define NULL
Definition: fxdefs.h:41
Help arrow cursor.
Definition: FXApp.h:115
FXuint FXColor
Definition: fxdefs.h:454
Cross hair cursor.
Definition: FXApp.h:110
FXString name(const FXString &file)
Return name and extension part of the path name.
const FXString & getVendorKey() const
Return vendor key.
Definition: FXRegistry.h:75
A hash table for associating pointers to pointers.
Definition: FXHash.h:33
Except input fd.
Definition: FXApp.h:70
Arrow cursor.
Definition: FXApp.h:92
Text cursor.
Definition: FXApp.h:94
FXString root(const FXString &file)
Return root of absolute path; on Unix, this is just "/".
Abstract Device Context.
Definition: FXDC.h:191
FXModality
All ways of being modal.
Definition: FXApp.h:79
long FXival
Definition: fxdefs.h:435
Encapsulates server side resource.
Definition: FXId.h:37
Horizontal split cursor.
Definition: FXApp.h:95
North-west cursor.
Definition: FXApp.h:112
Definition: FX4Splitter.h:31
int FXint
Definition: fxdefs.h:397
An Icon is an image with two additional server-side resources: a shape bitmap, which is used to mask ...
Definition: FXIcon.h:45
Cross split cursor.
Definition: FXApp.h:97
FOX Event.
Definition: FXApp.h:125
A GL context is an object representing the OpenGL state information.
Definition: FXGLContext.h:46
The Shell widget is used as the base class for top level windows, i.e.
Definition: FXShell.h:38
Compose Context manages the state of an input method if input method support is enabled.
Definition: FXComposeContext.h:42
Non modal event loop (dispatch normally)
Definition: FXApp.h:80
Write input fd.
Definition: FXApp.h:69
Cursor class.
Definition: FXCursor.h:68
Abstract base class for all top-level windows.
Definition: FXTopWindow.h:106
Drag and drop copy.
Definition: FXApp.h:107
Visual describes pixel format of a drawable.
Definition: FXGLVisual.h:44
Visual describes pixel format of a drawable.
Definition: FXVisual.h:84
Rotate cursor.
Definition: FXApp.h:117
Hand cursor.
Definition: FXApp.h:116
Move cursor.
Definition: FXApp.h:99
#define FALSE
Definition: fxdefs.h:35
Wait cursor.
Definition: FXApp.h:118
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:166
unsigned char FXuchar
Definition: fxdefs.h:392
Reverse arrow cursor.
Definition: FXApp.h:93
Window Device Context.
Definition: FXDCWindow.h:52
FXint FXInputHandle
Definition: fxdefs.h:468
An Image is a rectangular array of pixels.
Definition: FXImage.h:67
Resize horizontal edge.
Definition: FXApp.h:100
FXMutex provides a mutex which can be used to enforce critical sections around updates of data shared...
Definition: FXThread.h:45
Vertical split cursor.
Definition: FXApp.h:96
unsigned long FXuval
Definition: fxdefs.h:436
Resize upper-right corner.
Definition: FXApp.h:104
Resize bottom-right corner.
Definition: FXApp.h:103
FXID FXDragType
Definition: fxdefs.h:461
South-east cursor.
Definition: FXApp.h:113
Font class.
Definition: FXFont.h:142
Modal for popup (always dispatch to popup)
Definition: FXApp.h:82
#define FXDECLARE(classname)
Macro to set up class declaration.
Definition: FXObject.h:92
The dock handler exists as a common base class for tool bar grip and dock title.
Definition: FXDockHandler.h:38
FXString provides essential string manipulation capabilities.
Definition: FXString.h:33
Drawable is an abstract base class for any surface that can be drawn upon, such as a FXWindow...
Definition: FXDrawable.h:41
Resize upper-leftcorner.
Definition: FXApp.h:102