Main Page   Class Hierarchy   Compound List   File List   Header Files   Compound Members   File Members  

evt.cpp File Reference


Compounds

class  EventQueue

Defines

#define EVENT_NULL
#define EVENT_MENU
#define EVENT_CONTROL
#define BLOCKING
#define VERBOSE_EVT

Functions

filter_result windowEventFilter (BMessage * msg, BHandler ** target, BMessageFilter * msgFilter)
The filter function for window-related events. More...

filter_result viewEventFilter (BMessage * msg, BHandler ** target, BMessageFilter * msgFilter)
The filter function for view-related events. More...

int TranslateEvent (BMessage * msg)
Translate native BeOS events to Java events. More...

jobject __cdecl Java_java_awt_Toolkit_evtInit ( JNIEnv* env, jclass clazz )
jobject __cdecl Java_java_awt_Toolkit_evtGetNextEvent ( JNIEnv* env, jclass clazz )
Used by the AWT dispatcher thread to fetch events from the native layer.

jobject __cdecl Java_java_awt_Toolkit_evtPeekEvent ( JNIEnv* env, jclass clazz )
just a dummy for the linker.

jobject __cdecl Java_java_awt_Toolkit_evtPeekEventId ( JNIEnv* env, jclass clazz, jint id )
just a dummy for the linker.

void __cdecl Java_java_awt_Toolkit_evtSendWMEvent ( JNIEnv* env, jclass clazz, jobject evt )
Force context change to dispatcher thread.

void __cdecl Java_java_awt_Toolkit_evtWakeup ( JNIEnv* env, jclass clazz )
Wake up the event dispatcher thread.

jint __cdecl Java_java_awt_Toolkit_evtRegisterSource ( JNIEnv* env, jclass clazz, KWnd* wnd )
Insert a KWnd widget among the event handlers.

jint __cdecl Java_java_awt_Toolkit_evtUnregisterSource ( JNIEnv* env, jclass clazz, KWnd* wnd )
Remove widget from the event handlers.

void recurseView (BView * v, BMenu * menu)
int32 InspectHierarchy (BMessage * msg )
Shows a popup menu which represents the hierarchy of native widgets. More...

KWndgetWnd ( BHandler * target )
Get the KWnd object for target. More...


Variables

BMessage* KWM_WND_EVENT
BMessage* KWM_REQUEST_FOCUS
BMessage* KWM_CONTEXTMENU
BMessage* KWM_DESTROY
char* RootViewName


Define Documentation

#define EVENT_NULL ()

#define EVENT_MENU ()

#define EVENT_CONTROL ()

#define BLOCKING ()

#define VERBOSE_EVT ()


Function Documentation

filter_result windowEventFilter (BMessage * msg, BHandler ** target, BMessageFilter * msgFilter)

The filter function for window-related events.

We don't want to break the native event chain, we just insert ourselves between message reception and message dispatch to the native objects

message loop -> [our MessageFilter] -> DispatchMessage -> object-oriented handlers

filter_result viewEventFilter (BMessage * msg, BHandler ** target, BMessageFilter * msgFilter)

The filter function for view-related events.

We don't want to break the native event chain, we just insert ourselves between message reception and message dispatch to the native objects

message loop -> [our MessageFilter] -> DispatchMessage -> object-oriented handlers

This filter is added on view registration (see evtRegisterSource)

int TranslateEvent (BMessage * msg)

Translate native BeOS events to Java events.

this is the core routine of the event system, if some event doesn't get to the proper target, please look here or into viewEventFilter and windowEventFilter

jobject __cdecl Java_java_awt_Toolkit_evtInit (JNIEnv * env, jclass clazz)

jobject __cdecl Java_java_awt_Toolkit_evtGetNextEvent (JNIEnv * env, jclass clazz)

Used by the AWT dispatcher thread to fetch events from the native layer.

jobject __cdecl Java_java_awt_Toolkit_evtPeekEvent (JNIEnv * env, jclass clazz)

just a dummy for the linker.

jobject __cdecl Java_java_awt_Toolkit_evtPeekEventId (JNIEnv * env, jclass clazz, jint id)

just a dummy for the linker.

void __cdecl Java_java_awt_Toolkit_evtSendWMEvent (JNIEnv * env, jclass clazz, jobject evt)

Force context change to dispatcher thread.

void __cdecl Java_java_awt_Toolkit_evtWakeup (JNIEnv * env, jclass clazz)

Wake up the event dispatcher thread.

jint __cdecl Java_java_awt_Toolkit_evtRegisterSource (JNIEnv * env, jclass clazz, KWnd * wnd)

Insert a KWnd widget among the event handlers.

jint __cdecl Java_java_awt_Toolkit_evtUnregisterSource (JNIEnv * env, jclass clazz, KWnd * wnd)

Remove widget from the event handlers.

void recurseView (BView * v, BMenu * menu)

int32 InspectHierarchy (BMessage * msg)

Shows a popup menu which represents the hierarchy of native widgets.

Called from viewEventFilter and windowEventFilter for debugging purposes.

KWnd * getWnd (BHandler * target)

Get the KWnd object for target.

!!! once fixed, move to toolkit.hpp as an inline


Variable Documentation

BMessage* KWM_WND_EVENT

BMessage* KWM_REQUEST_FOCUS

BMessage* KWM_CONTEXTMENU

BMessage* KWM_DESTROY

char* RootViewName


Generated at Sat Jun 10 12:37:08 2000 by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999