Public Member Functions | Static Public Member Functions | Public Attributes

Listener Class Reference

Search for all occurrences

#include <listener.h>

Inheritance diagram for Listener:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  Listener (HINSTANCE mxs_instance, HWND MAX_window)
  Constructor. This is statically allocated.
  ~Listener ()
  Destructor.
void  stop ()
  For shutting down the Listener thread, i.e. "run" method.
void  create_listener_window (HINSTANCE hInstance, HWND hwnd)
void  gc_trace ()
void  collect ()
ScripterExport void  set_keyinput_mode (int mode)
ScripterExport int  set_style (int style)
ScripterExport int  get_style ()
ScripterExport void  set_font (const MCHAR *font_name)
ScripterExport void  set_font_size (int fontSize)
ScripterExport bool  set_block_mini_updates (bool blocked)
ScripterExport bool  get_block_mini_updates ()

Static Public Member Functions

static DWORD  run (Listener *l)
  The method that gets run for the Listener thread.

Public Attributes

HWND  listener_window
HWND  edit_box
HWND  macrorec_box
HWND  mini_listener
HWND  mini_edit
HWND  mini_macrorec
WindowStream *  edit_stream
WindowStream *  macrorec_stream
WindowStream *  mini_edit_stream
WindowStream *  mini_macrorec_stream
Pipe source_pipe
int  flags
ListenerViewWindow lvw

Constructor & Destructor Documentation

Listener ( HINSTANCE  mxs_instance,
HWND  MAX_window 
)

Constructor. This is statically allocated.

When this constructor gets called, it starts a new thread using the run method.

~Listener ( )

Destructor.

Since the Listener is statically allocated, this destructor gets called long after Max has uninitialized itself, and deleted all Collectable objects.


Member Function Documentation

static DWORD run ( Listener l ) [static]

The method that gets run for the Listener thread.

void stop ( )

For shutting down the Listener thread, i.e. "run" method.

This blocks until the Listener thread, i.e. Listener::run returns. In other words, it signals for the run thread to exit, then waits for the mShutdown_Event handle to get signaled.

void create_listener_window ( HINSTANCE  hInstance,
HWND  hwnd 
)
void gc_trace ( ) [virtual]
void collect ( ) [inline, virtual]

Implements Collectable.

{ delete this; }
ScripterExport void set_keyinput_mode ( int  mode ) [inline]
{ flags = (flags & ~LSNR_INPUT_MODE_MASK) | mode; }
ScripterExport int set_style ( int  style )
ScripterExport int get_style ( )
ScripterExport void set_font ( const MCHAR *  font_name )
ScripterExport void set_font_size ( int  fontSize )
ScripterExport bool set_block_mini_updates ( bool  blocked )
ScripterExport bool get_block_mini_updates ( )

Member Data Documentation

HWND edit_box
HWND mini_edit
WindowStream* edit_stream
WindowStream* macrorec_stream
WindowStream* mini_edit_stream
WindowStream* mini_macrorec_stream
int flags

Listener Listener Listener Listener Listener Listener Listener Listener Listener Listener
Listener Listener Listener Listener Listener Listener Listener Listener Listener Listener