Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/WM_api.h
| Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | |||||
| void WM_check (struct bContext *C); | void WM_check (struct bContext *C); | ||||
| int WM_window_pixels_x (struct wmWindow *win); | int WM_window_pixels_x (struct wmWindow *win); | ||||
| int WM_window_pixels_y (struct wmWindow *win); | int WM_window_pixels_y (struct wmWindow *win); | ||||
| bool WM_window_is_fullscreen (struct wmWindow *win); | bool WM_window_is_fullscreen (struct wmWindow *win); | ||||
| /* defines for 'type' WM_window_open_temp */ | /* defines for 'type' WM_window_open_temp/WM_window_open_restricted */ | ||||
| enum { | enum { | ||||
| WM_WINDOW_RENDER = 1, | WM_WINDOW_RENDER = 1, | ||||
| WM_WINDOW_USERPREFS, | WM_WINDOW_USERPREFS, | ||||
| // WM_WINDOW_FILESEL // UNUSED | WM_WINDOW_HMD, | ||||
| }; | }; | ||||
| 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, const struct rcti *rect_init, int type); | struct wmWindow *WM_window_open_temp(struct bContext *C, const struct rcti *rect_init, int type); | ||||
| struct wmWindow *WM_window_open_restricted(struct bContext *C, const struct rcti *rect_init, int type); | |||||
| void WM_window_fullscreen_toggle(const struct wmWindow *win, const bool force_full, const bool force_normal); | |||||
| /* 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 397 Lines • ▼ Show 20 Lines | |||||
| 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_INPUT_IME | ||||
| bool WM_event_is_ime_switch(const struct wmEvent *event); | bool WM_event_is_ime_switch(const struct wmEvent *event); | ||||
| #endif | #endif | ||||
| /* wm_device.c */ | |||||
| #ifdef WITH_INPUT_HMD | |||||
| #define MAX_HMD_DEVICES 12 | |||||
| /* Get/Set Wrappers */ | |||||
| int WM_device_HMD_num_devices_get(void) ATTR_WARN_UNUSED_RESULT; | |||||
| int WM_device_HMD_current_get(void) ATTR_WARN_UNUSED_RESULT; | |||||
| const char *WM_device_HMD_name_get(int index) ATTR_WARN_UNUSED_RESULT; | |||||
| const char *WM_device_HMD_vendor_get(int index) ATTR_WARN_UNUSED_RESULT; | |||||
| float WM_device_HMD_IPD_get(void) ATTR_WARN_UNUSED_RESULT; | |||||
| void WM_device_HMD_IPD_set(float value); | |||||
| float WM_device_HMD_lens_horizontal_separation_get(void) ATTR_WARN_UNUSED_RESULT; | |||||
| /* Utils */ | |||||
| void WM_device_HMD_state_set(const int device, const bool enable); | |||||
| void WM_device_HMD_modelview_matrix_get(const bool is_left, float r_modelviewmat[4][4]) ATTR_NONNULL(); | |||||
| void WM_device_HMD_projection_matrix_get(const bool is_left, float r_projmat[4][4]) ATTR_NONNULL(); | |||||
| void* WM_device_HMD_distortion_parameters_get(void); | |||||
| #endif /* WITH_INPUT_HMD */ | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||
| #endif /* __WM_API_H__ */ | #endif /* __WM_API_H__ */ | ||||