3ds Max C++ API Reference
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 Arraykeyboard_input_terminators
 

Macro Definition Documentation

◆ LISTENER_STYLE_INPUT

#define LISTENER_STYLE_INPUT   0

◆ LISTENER_STYLE_OUTPUT

#define LISTENER_STYLE_OUTPUT   1

◆ LISTENER_STYLE_MESSAGE

#define LISTENER_STYLE_MESSAGE   2

◆ LISTENER_STYLE_LABEL

#define LISTENER_STYLE_LABEL   3

◆ LISTENER_STYLE_PYTHON_PROMPT

#define LISTENER_STYLE_PYTHON_PROMPT   4

◆ LISTENER_STYLE_PYTHON_SUB_PROMPT

#define LISTENER_STYLE_PYTHON_SUB_PROMPT   5

◆ LSNR_INPUT_MODE_MASK

#define LSNR_INPUT_MODE_MASK   0x000F

◆ LSNR_KEYINPUT_OFF

#define LSNR_KEYINPUT_OFF   0x0000

◆ LSNR_KEYINPUT_LINE

#define LSNR_KEYINPUT_LINE   0x0001

◆ LSNR_KEYINPUT_CHAR

#define LSNR_KEYINPUT_CHAR   0x0002

◆ LSNR_SHOWING

#define LSNR_SHOWING   0x0010

◆ LSNR_NO_MACRO_REDRAW

#define LSNR_NO_MACRO_REDRAW   0x0020

◆ LSNR_QUITMAX_RUN

#define LSNR_QUITMAX_RUN   0x0040

◆ LSNR_STYLE_MASK

#define LSNR_STYLE_MASK   0x0300

◆ LSNR_STYLE_INPUT

#define LSNR_STYLE_INPUT   0x0000

◆ LSNR_STYLE_OUTPUT

#define LSNR_STYLE_OUTPUT   0x0100

◆ LSNR_STYLE_MESSAGE

#define LSNR_STYLE_MESSAGE   0x0200

◆ LSNR_BLOCK_MINI_UPDATES

#define LSNR_BLOCK_MINI_UPDATES   0x0400

◆ EDIT_BOX_ITEM

#define EDIT_BOX_ITEM   1001

◆ MACROREC_BOX_ITEM

#define MACROREC_BOX_ITEM   1002

◆ SWITCHER_WIDGET_ITEM

#define SWITCHER_WIDGET_ITEM   1003

◆ SWITCHER_MAXSCRIPT_ITEM

#define SWITCHER_MAXSCRIPT_ITEM   1004

◆ SWITCHER_PYTHON_ITEM

#define SWITCHER_PYTHON_ITEM   1005

◆ CLICK_STACK_SIZE

#define CLICK_STACK_SIZE   8

Typedef Documentation

◆ msg_output_callback

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

Function Documentation

◆ get_cur_line()

ScripterExport int get_cur_line ( HWND  window,
MSTR line,
bool  stripEOL 
)

◆ set_edit_box_font()

ScripterExport void set_edit_box_font ( HWND  window,
const MCHAR font_name 
)

◆ set_edit_box_font_size()

ScripterExport void set_edit_box_font_size ( HWND  window,
int  fontSize 
)

Variable Documentation

◆ listener_result_thunk

GlobalThunk* listener_result_thunk
extern

◆ end_keyboard_input

ScripterExport BOOL end_keyboard_input
extern

◆ start_keyboard_input

ScripterExport BOOL start_keyboard_input
extern

◆ keyboard_input

ScripterExport MCHAR* keyboard_input
extern

◆ keyboard_terminator

ScripterExport Value* keyboard_terminator
extern

◆ keyboard_input_terminators

ScripterExport Array* keyboard_input_terminators
extern