Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/WM_api.h
| Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | |||||
| enum { | enum { | ||||
| WM_WINDOW_RENDER = 1, | WM_WINDOW_RENDER = 1, | ||||
| WM_WINDOW_USERPREFS, | WM_WINDOW_USERPREFS, | ||||
| // WM_WINDOW_FILESEL // UNUSED | // WM_WINDOW_FILESEL // UNUSED | ||||
| }; | }; | ||||
| struct wmWindow *WM_window_open(struct bContext *C, const struct rcti *rect); | struct wmWindow *WM_window_open(struct bContext *C, const struct rcti *rect); | ||||
| struct wmWindow *WM_window_open_temp(struct bContext *C, int x, int y, int sizex, int sizey, int type); | struct wmWindow *WM_window_open_temp(struct bContext *C, int x, int y, int sizex, int sizey, int type); | ||||
| /* input method */ | |||||
| #ifdef WITH_IM_OVERTHESPOT | |||||
| bool WM_window_IM_is_spot_needed(wmWindow *win); | |||||
| #endif | |||||
| #if defined(WITH_IM_OVERTHESPOT) || defined(WITH_IM_ONTHESPOT) | |||||
| void WM_window_IM_modal_set (wmWindow *win); | |||||
| void WM_window_IM_modal_unset(wmWindow *win); | |||||
| void WM_window_IM_spot_set (wmWindow *win, int x, int y, int h); | |||||
| void WM_window_IM_begin (wmWindow *win); | |||||
| void WM_window_IM_end (wmWindow *win); | |||||
| #endif | |||||
| /* returns true if draw method is triple buffer */ | /* returns true if draw method is triple buffer */ | ||||
| bool WM_is_draw_triple(struct wmWindow *win); | bool WM_is_draw_triple(struct wmWindow *win); | ||||
| bool WM_stereo3d_enabled(struct wmWindow *win, bool only_fullscreen_test); | bool WM_stereo3d_enabled(struct wmWindow *win, bool only_fullscreen_test); | ||||
| /* files */ | /* files */ | ||||
| void WM_file_autoexec_init(const char *filepath); | void WM_file_autoexec_init(const char *filepath); | ||||
| ▲ Show 20 Lines • Show All 395 Lines • ▼ Show 20 Lines | |||||
| float WM_event_ndof_to_axis_angle(const struct wmNDOFMotionData *ndof, float axis[3]); | float WM_event_ndof_to_axis_angle(const struct wmNDOFMotionData *ndof, float axis[3]); | ||||
| void WM_event_ndof_to_quat(const struct wmNDOFMotionData *ndof, float q[4]); | void WM_event_ndof_to_quat(const struct wmNDOFMotionData *ndof, float q[4]); | ||||
| #endif /* WITH_INPUT_NDOF */ | #endif /* WITH_INPUT_NDOF */ | ||||
| float WM_event_tablet_data(const struct wmEvent *event, int *pen_flip, float tilt[2]); | float WM_event_tablet_data(const struct wmEvent *event, int *pen_flip, float tilt[2]); | ||||
| bool WM_event_is_tablet(const struct wmEvent *event); | bool WM_event_is_tablet(const struct wmEvent *event); | ||||
| #ifdef WITH_INPUT_IME | #ifdef WITH_IM_ONTHESPOT | ||||
| bool WM_event_is_ime_switch(const struct wmEvent *event); | bool WM_event_is_im_switch(const struct wmEvent *event); | ||||
| #endif | #endif | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||
| #endif /* __WM_API_H__ */ | #endif /* __WM_API_H__ */ | ||||