7 #ifndef __native_NativeEventContext_h__ 8 #define __native_NativeEventContext_h__ 15 #define FE_WINDOW_EVENT_DEBUG FALSE 16 #define FE_COMMANDLINE_LENGTH 1024 19 #define FE_POINTERMOTION FALSE 35 virtual void initialize(
void);
38 virtual void loop(BWORD dropout);
39 virtual void threadLock(
void);
40 virtual void threadUnlock(
void);
42 virtual void setPointerMotion(BWORD active);
45 virtual Real multiplication(
void) {
return m_multiplication; }
47 virtual void registerWindow(
WindowI *window);
48 virtual void deregisterWindow(
WindowI *window);
53 virtual void handle(
Record &record);
56 Result broadcastEvent(FE_WINDOW_HANDLE* pWindow);
58 static U32 systemTimer(
void);
59 void setTimer(U32
set) { m_timer=
set; }
60 U32 getTimer(
void) {
return m_timer; }
62 void accumulateTime(U32 exclusive,U32 inclusive);
63 void fps(F32 *exclusive,F32 *inclusive)
64 { *exclusive=m_fps_excl;
65 *inclusive=m_fps_incl; }
67 void setCommandLine(
char *line)
68 { strncpy(m_commandline,line,FE_COMMANDLINE_LENGTH);
69 m_commandline[FE_COMMANDLINE_LENGTH-1]=0; }
70 const char* commandLine(
void)
const {
return m_commandline; }
72 void endLoop(
void) { m_endloop=
true; }
74 FE_DISPLAY_HANDLE displayHandle(
void) {
return m_pDisplayHandle; }
78 void setLastWindowHandle(FE_WINDOW_HANDLE handle)
79 { m_lastWindowHandle=handle; }
81 void notifyCreate(FE_WINDOW_HANDLE &windowHandle);
83 #if FE_2DGL==FE_2D_GDI 84 static LRESULT CALLBACK wndProc(HWND hWND,UINT message,
85 WPARAM wParam,LPARAM lParam);
89 void nativeStartup(
void);
90 void nativeShutdown(
void);
91 void createEvent(
void);
108 Real m_multiplication;
110 BWORD m_pointerMotion;
111 char m_commandline[FE_COMMANDLINE_LENGTH];
120 FE_DISPLAY_HANDLE m_pDisplayHandle;
121 FE_WINDOW_HANDLE m_lastWindowHandle;
123 #if FE_2DGL==FE_2D_X_GFX 124 XFontStruct* m_pFontStruct;
130 XFontStruct* loadXFont(Display* a_pDisplayHandle,
131 Real a_multiplication);
132 #elif FE_2DGL==FE_2D_GDI 136 void setMouseButtons(
138 { m_mousebuttons=
set; }
140 {
return m_mousebuttons; }
Fully Bidirectional Doubly-Linked List.
Definition: List.h:496
MouseButtons
State of the mouse buttons during an event.
Definition: WindowEvent.h:214
kernel
Definition: namespace.dox:3
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
The main data access class for the data system.
Definition: Accessor.h:128
Implementation of an event loop using the raw native system.
Definition: NativeEventContext.h:27
General interface to a window.
Definition: WindowI.h:24
Interface to handle signals from an SignalerI.
Definition: HandlerI.h:22
Generalized windowing event.
Definition: WindowEvent.h:43
Interface for processing queued windowing events.
Definition: EventContextI.h:20
Reference to an instance of a Layout.
Definition: RecordSB.h:35
virtual BWORD pointerMotion(void)
check if pointer motion events are on
Definition: NativeEventContext.h:43