maxscript/util/listener.h File Reference

#include <windowsx.h>
#include "..\foundation\pipe.h"
#include "..\compiler\thunks.h"

Classes

class  Listener
 
class  ListenerViewWindow
 
class  ListenerMessageData
 
struct  edit_window
 

Macros

#define LISTENER_STYLE_INPUT   0
 
#define LISTENER_STYLE_OUTPUT   1
 
#define LISTENER_STYLE_MESSAGE   2
 
#define LISTENER_STYLE_LABEL   3
 
#define LISTENER_STYLE_PYTHON_PROMPT   4
 
#define LISTENER_STYLE_PYTHON_SUB_PROMPT   5
 
#define LSNR_INPUT_MODE_MASK   0x000F
 
#define LSNR_KEYINPUT_OFF   0x0000
 
#define LSNR_KEYINPUT_LINE   0x0001
 
#define LSNR_KEYINPUT_CHAR   0x0002
 
#define LSNR_SHOWING   0x0010
 
#define LSNR_NO_MACRO_REDRAW   0x0020
 
#define LSNR_QUITMAX_RUN   0x0040
 
#define LSNR_STYLE_MASK   0x0300
 
#define LSNR_STYLE_INPUT   0x0000
 
#define LSNR_STYLE_OUTPUT   0x0100
 
#define LSNR_STYLE_MESSAGE   0x0200
 
#define LSNR_BLOCK_MINI_UPDATES   0x0400
 
#define EDIT_BOX_ITEM   1001
 
#define MACROREC_BOX_ITEM   1002
 
#define SWITCHER_WIDGET_ITEM   1003
 
#define SWITCHER_MAXSCRIPT_ITEM   1004
 
#define SWITCHER_PYTHON_ITEM   1005
 
#define CLICK_STACK_SIZE   8
 

Typedefs

typedef void(* msg_output_callback) (const MCHAR *x)
 

Functions

ScripterExport int get_cur_line (HWND window, MSTR &line, bool stripEOL)
 
ScripterExport void set_edit_box_font (HWND window, const MCHAR *font_name)
 
ScripterExport void set_edit_box_font_size (HWND window, int fontSize)
 

Variables

GlobalThunklistener_result_thunk
 
ScripterExport BOOL end_keyboard_input
 
ScripterExport BOOL start_keyboard_input
 
ScripterExport MCHARkeyboard_input
 
ScripterExport Valuekeyboard_terminator
 
ScripterExport Array * keyboard_input_terminators
 
COLORREF input_text_color
 
COLORREF output_text_color
 
COLORREF message_text_color
 
COLORREF label_text_color
 
COLORREF python_prompt_color
 

Macro Definition Documentation

#define LISTENER_STYLE_INPUT   0
#define LISTENER_STYLE_OUTPUT   1
#define LISTENER_STYLE_MESSAGE   2
#define LISTENER_STYLE_LABEL   3
#define LISTENER_STYLE_PYTHON_PROMPT   4
#define LISTENER_STYLE_PYTHON_SUB_PROMPT   5
#define LSNR_INPUT_MODE_MASK   0x000F
#define LSNR_KEYINPUT_OFF   0x0000
#define LSNR_KEYINPUT_LINE   0x0001
#define LSNR_KEYINPUT_CHAR   0x0002
#define LSNR_SHOWING   0x0010
#define LSNR_NO_MACRO_REDRAW   0x0020
#define LSNR_QUITMAX_RUN   0x0040
#define LSNR_STYLE_MASK   0x0300
#define LSNR_STYLE_INPUT   0x0000
#define LSNR_STYLE_OUTPUT   0x0100
#define LSNR_STYLE_MESSAGE   0x0200
#define LSNR_BLOCK_MINI_UPDATES   0x0400
#define EDIT_BOX_ITEM   1001
#define MACROREC_BOX_ITEM   1002
#define SWITCHER_WIDGET_ITEM   1003
#define SWITCHER_MAXSCRIPT_ITEM   1004
#define SWITCHER_PYTHON_ITEM   1005
#define CLICK_STACK_SIZE   8

Typedef Documentation

typedef void(* msg_output_callback) (const MCHAR *x)

Function Documentation

ScripterExport int get_cur_line ( HWND  window,
MSTR line,
bool  stripEOL 
)
ScripterExport void set_edit_box_font ( HWND  window,
const MCHAR font_name 
)
ScripterExport void set_edit_box_font_size ( HWND  window,
int  fontSize 
)

Variable Documentation

GlobalThunk* listener_result_thunk
ScripterExport BOOL end_keyboard_input
ScripterExport BOOL start_keyboard_input
ScripterExport MCHAR* keyboard_input
ScripterExport Value* keyboard_terminator
ScripterExport Array* keyboard_input_terminators
COLORREF input_text_color
COLORREF output_text_color
COLORREF message_text_color
COLORREF label_text_color
COLORREF python_prompt_color