#include <listener.h>
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 |
| 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.
| 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] |
Reimplemented from Collectable.
| void collect | ( | ) | [virtual] |
Implements Collectable.
| 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 | ( | ) |
| WindowStream* edit_stream |
| WindowStream* macrorec_stream |
| WindowStream* mini_edit_stream |
| WindowStream* mini_macrorec_stream |
| int flags |
Reimplemented from Collectable.