Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/WM_types.h
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| * - for straight line is a recti: (xmin,ymin) is start, (xmax, ymax) is end. | * - for straight line is a recti: (xmin,ymin) is start, (xmax, ymax) is end. | ||||
| */ | */ | ||||
| void *customdata; | void *customdata; | ||||
| /** Free pointer to use for operator allocs (if set, its freed on exit). */ | /** Free pointer to use for operator allocs (if set, its freed on exit). */ | ||||
| wmGenericUserData user_data; | wmGenericUserData user_data; | ||||
| } wmGesture; | } wmGesture; | ||||
| #ifdef WITH_INPUT_IME | |||||
| /* *********** Input Method Editor *********** */ | |||||
| typedef struct wmIMEResult { | |||||
| size_t len; | |||||
| /** utf8 encoding */ | |||||
| char *str; | |||||
| } wmIMEResult; | |||||
| #endif | |||||
| /* ************** wmEvent ************************ */ | /* ************** wmEvent ************************ */ | ||||
| typedef struct wmTabletData { | typedef struct wmTabletData { | ||||
| /** 0=EVT_TABLET_NONE, 1=EVT_TABLET_STYLUS, 2=EVT_TABLET_ERASER. */ | /** 0=EVT_TABLET_NONE, 1=EVT_TABLET_STYLUS, 2=EVT_TABLET_ERASER. */ | ||||
| int active; | int active; | ||||
| /** range 0.0 (not touching) to 1.0 (full pressure). */ | /** range 0.0 (not touching) to 1.0 (full pressure). */ | ||||
| float pressure; | float pressure; | ||||
| /** range 0.0 (upright) to 1.0 (tilted fully against the tablet surface). */ | /** range 0.0 (upright) to 1.0 (tilted fully against the tablet surface). */ | ||||
| ▲ Show 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | |||||
| /** 'oskey' is apple or windows-key, value denotes order of pressed. */ | /** 'oskey' is apple or windows-key, value denotes order of pressed. */ | ||||
| short shift, ctrl, alt, oskey; | short shift, ctrl, alt, oskey; | ||||
| /** Raw-key modifier (allow using any key as a modifier). */ | /** Raw-key modifier (allow using any key as a modifier). */ | ||||
| short keymodifier; | short keymodifier; | ||||
| /** Tablet info, available for mouse move and button events. */ | /** Tablet info, available for mouse move and button events. */ | ||||
| wmTabletData tablet; | wmTabletData tablet; | ||||
| #ifdef WITH_INPUT_IME | |||||
| /** Input Method Editor data - complex character input (esp. for asian character input) | |||||
| * Currently WIN32, runtime-only data */ | |||||
| wmIMEResult ime_result; | |||||
| /** Whether IME is composing. */ | |||||
| bool is_ime_composing; | |||||
| #endif | |||||
| /* Custom data. */ | /* Custom data. */ | ||||
| /** Custom data type, stylus, 6dof, see wm_event_types.h */ | /** Custom data type, stylus, 6dof, see wm_event_types.h */ | ||||
| short custom; | short custom; | ||||
| short customdatafree; | short customdatafree; | ||||
| int pad2; | int pad2; | ||||
| /** Ascii, unicode, mouse-coords, angles, vectors, NDOF data, drag-drop info. */ | /** Ascii, unicode, mouse-coords, angles, vectors, NDOF data, drag-drop info. */ | ||||
| void *customdata; | void *customdata; | ||||
| ▲ Show 20 Lines • Show All 184 Lines • ▼ Show 20 Lines | |||||
| } wmOperatorCallParams; | } wmOperatorCallParams; | ||||
| #ifdef WITH_INPUT_IME | #ifdef WITH_INPUT_IME | ||||
| /* *********** Input Method Editor (IME) *********** */ | /* *********** Input Method Editor (IME) *********** */ | ||||
| /** | /** | ||||
| * \note similar to #GHOST_TEventImeData. | * \note similar to #GHOST_TEventImeData. | ||||
| */ | */ | ||||
| typedef struct wmIMEData { | typedef struct wmIMEData { | ||||
| size_t result_len, composite_len; | size_t len; | ||||
| /** utf8 encoding */ | /** utf8 encoding */ | ||||
| char *str_result; | char *str; | ||||
| /** utf8 encoding */ | |||||
| char *str_composite; | |||||
| /** Cursor position in the IME composition. */ | /** Cursor position in the IME composition. */ | ||||
| int cursor_pos; | int cursor_pos; | ||||
| /** Beginning of the selection. */ | /** Beginning of the selection. */ | ||||
| int sel_start; | int sel_start; | ||||
| /** End of the selection. */ | /** End of the selection. */ | ||||
| int sel_end; | int sel_end; | ||||
| bool is_ime_composing; | |||||
| } wmIMEData; | } wmIMEData; | ||||
| #endif | #endif | ||||
| /* **************** Paint Cursor ******************* */ | /* **************** Paint Cursor ******************* */ | ||||
| typedef void (*wmPaintCursorDraw)(struct bContext *C, int, int, void *customdata); | typedef void (*wmPaintCursorDraw)(struct bContext *C, int, int, void *customdata); | ||||
| /* *************** Drag and drop *************** */ | /* *************** Drag and drop *************** */ | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||