Back to index

lightning-sunbird  0.9+nobinonly
Typedefs | Functions
EventFilter.h File Reference
#include <Events.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


typedef Boolean(* EventFilterProcPtr )(EventRecord *event)
typedef Boolean(* MenuFilterProcPtr )(long menuSelection)


OSStatus InstallEventFilters (EventFilterProcPtr eventFilter, MenuFilterProcPtr menuFilter)
OSStatus RemoveEventFilters ()

Typedef Documentation

typedef Boolean(* EventFilterProcPtr)(EventRecord *event)

Definition at line 52 of file EventFilter.h.

typedef Boolean(* MenuFilterProcPtr)(long menuSelection)

Definition at line 53 of file EventFilter.h.

Function Documentation

Definition at line 113 of file EventFilter.cpp.

       if (theEventFilter == NULL) {
              theEventFilter = eventFilter;
              theMenuFilter = menuFilter;

              // Patch WNE, which will be used to filter events.
              // Patch MenuSelect, which will be used to filter menu selections.

              return noErr;
       return paramErr;

Definition at line 130 of file EventFilter.cpp.

       if (theEventFilter != NULL) {
              theEventFilter = NULL;
              theMenuFilter = NULL;
              return noErr;
       return paramErr;