Blender  V3.3
wm_window.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2007 Blender Foundation. All rights reserved. */
3 
8 #pragma once
9 
10 struct wmOperator;
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 /* *************** internal api ************** */
17 
22 void wm_ghost_init(bContext *C);
23 void wm_ghost_exit(void);
24 
29 void wm_get_screensize(int *r_width, int *r_height);
33 void wm_get_desktopsize(int *r_width, int *r_height);
34 
38 wmWindow *wm_window_new(const struct Main *bmain,
39  wmWindowManager *wm,
40  wmWindow *parent,
41  bool dialog);
46  struct Main *bmain, wmWindowManager *wm, wmWindow *win_src, bool duplicate_layout, bool child);
51 wmWindow *wm_window_copy_test(bContext *C, wmWindow *win_src, bool duplicate_layout, bool child);
62 
83 
89 void wm_window_reset_drawable(void);
90 
91 void wm_window_raise(wmWindow *win);
92 void wm_window_lower(wmWindow *win);
93 void wm_window_set_size(wmWindow *win, int width, int height);
94 void wm_window_get_position(wmWindow *win, int *r_pos_x, int *r_pos_y);
99 void wm_window_set_swap_interval(wmWindow *win, int interval);
100 bool wm_window_get_swap_interval(wmWindow *win, int *intervalOut);
101 
102 void wm_cursor_position_get(wmWindow *win, int *r_x, int *r_y);
103 void wm_cursor_position_from_ghost_screen_coords(wmWindow *win, int *r_x, int *r_y);
105 
108 
109 #ifdef WITH_INPUT_IME
110 void wm_window_IME_begin(wmWindow *win, int x, int y, int w, int h, bool complete);
111 void wm_window_IME_end(wmWindow *win);
112 #endif
113 
117 
118 /* *************** window operators ************** */
119 
133 
134 int wm_window_new_exec(bContext *C, struct wmOperator *op);
135 int wm_window_new_main_exec(bContext *C, struct wmOperator *op);
136 
139 
140 #ifdef __cplusplus
141 }
142 #endif
#define ATTR_NONNULL(...)
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei height
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei width
#define C
Definition: RandGen.cpp:25
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.
Definition: btQuadWord.h:119
Definition: BKE_main.h:121
PointerRNA * ptr
Definition: wm_files.c:3480
wmOperatorType * ot
Definition: wm_files.c:3479
void wm_test_autorun_revert_action_set(struct wmOperatorType *ot, struct PointerRNA *ptr)
Definition: wm_files.c:3486
void wm_quit_with_optional_confirmation_prompt(bContext *C, wmWindow *win) ATTR_NONNULL()
Definition: wm_window.c:339
void wm_window_raise(wmWindow *win)
Definition: wm_window.c:1868
void wm_ghost_exit(void)
Definition: wm_window.c:1600
void wm_window_swap_buffers(wmWindow *win)
Push rendered buffer to the screen.
Definition: wm_window.c:1883
void wm_window_reset_drawable(void)
Definition: wm_window.c:1049
void wm_cursor_position_to_ghost_client_coords(wmWindow *win, int *x, int *y)
Definition: wm_window.c:939
void wm_cursor_position_from_ghost_client_coords(wmWindow *win, int *x, int *y)
Definition: wm_window.c:930
int wm_window_close_exec(bContext *C, struct wmOperator *op)
void wm_cursor_position_to_ghost_screen_coords(wmWindow *win, int *x, int *y)
Definition: wm_window.c:954
void wm_window_title(wmWindowManager *wm, wmWindow *win)
Definition: wm_window.c:417
bool wm_window_get_swap_interval(wmWindow *win, int *intervalOut)
Definition: wm_window.c:1893
void wm_window_close(bContext *C, wmWindowManager *wm, wmWindow *win)
Definition: wm_window.c:366
void wm_cursor_position_from_ghost_screen_coords(wmWindow *win, int *r_x, int *r_y)
Definition: wm_window.c:948
void wm_window_set_swap_interval(wmWindow *win, int interval)
Definition: wm_window.c:1888
void wm_get_desktopsize(int *r_width, int *r_height)
Definition: wm_window.c:133
void wm_window_set_size(wmWindow *win, int width, int height)
Definition: wm_window.c:1852
void wm_window_delete_removed_timers(wmWindowManager *wm)
Definition: wm_window.c:1669
wmWindow * wm_window_new(const struct Main *bmain, wmWindowManager *wm, wmWindow *parent, bool dialog)
void wm_window_ghostwindows_remove_invalid(bContext *C, wmWindowManager *wm)
Definition: wm_window.c:684
void wm_window_clear_drawable(wmWindowManager *wm)
Definition: wm_window.c:1021
void wm_window_process_events(const bContext *C)
Definition: wm_window.c:1537
void wm_get_screensize(int *r_width, int *r_height)
Definition: wm_window.c:123
wmWindow * wm_window_copy(struct Main *bmain, wmWindowManager *wm, wmWindow *win_src, bool duplicate_layout, bool child)
Definition: wm_window.c:267
void wm_window_make_drawable(wmWindowManager *wm, wmWindow *win)
Definition: wm_window.c:1028
wmWindow * wm_window_copy_test(bContext *C, wmWindow *win_src, bool duplicate_layout, bool child)
Definition: wm_window.c:297
void wm_test_autorun_warning(bContext *C)
Definition: wm_files.c:3519
void wm_window_get_position(wmWindow *win, int *r_pos_x, int *r_pos_y)
Definition: wm_window.c:1846
int wm_window_fullscreen_toggle_exec(bContext *C, struct wmOperator *op)
int wm_window_new_main_exec(bContext *C, struct wmOperator *op)
Definition: wm_window.c:897
void wm_window_free(bContext *C, wmWindowManager *wm, wmWindow *win)
Definition: wm_window.c:182
void wm_ghost_init(bContext *C)
Definition: wm_window.c:1566
void wm_window_ghostwindows_ensure(wmWindowManager *wm)
Definition: wm_window.c:661
int wm_window_new_exec(bContext *C, struct wmOperator *op)
Definition: wm_window.c:873
void wm_cursor_position_get(wmWindow *win, int *r_x, int *r_y)
Definition: wm_window.c:960
void wm_window_lower(wmWindow *win)
Definition: wm_window.c:1863