Blender  V2.93
wm_window.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2007 Blender Foundation.
17  * All rights reserved.
18  */
19 
24 #pragma once
25 
26 struct wmOperator;
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 /* *************** internal api ************** */
33 void wm_ghost_init(bContext *C);
34 void wm_ghost_exit(void);
35 
36 void wm_get_screensize(int *r_width, int *r_height);
37 void wm_get_desktopsize(int *r_width, int *r_height);
38 
39 wmWindow *wm_window_new(const struct Main *bmain,
40  wmWindowManager *wm,
41  wmWindow *parent,
42  bool dialog);
43 wmWindow *wm_window_copy(struct Main *bmain,
44  wmWindowManager *wm,
45  wmWindow *win_src,
46  const bool duplicate_layout,
47  const bool child);
49  wmWindow *win_src,
50  const bool duplicate_layout,
51  const bool child);
54 
59 
62 void wm_window_reset_drawable(void);
63 
64 void wm_window_raise(wmWindow *win);
65 void wm_window_lower(wmWindow *win);
66 void wm_window_set_size(wmWindow *win, int width, int height);
67 void wm_window_get_position(wmWindow *win, int *r_pos_x, int *r_pos_y);
69 void wm_window_set_swap_interval(wmWindow *win, int interval);
70 bool wm_window_get_swap_interval(wmWindow *win, int *intervalOut);
71 
72 void wm_cursor_position_get(wmWindow *win, int *r_x, int *r_y);
73 void wm_cursor_position_from_ghost(wmWindow *win, int *r_x, int *r_y);
74 void wm_cursor_position_to_ghost(wmWindow *win, int *x, int *y);
75 
76 #ifdef WITH_INPUT_IME
77 void wm_window_IME_begin(wmWindow *win, int x, int y, int w, int h, bool complete);
78 void wm_window_IME_end(wmWindow *win);
79 #endif
80 
81 /* *************** window operators ************** */
85 
88 
91 
92 #ifdef __cplusplus
93 }
94 #endif
#define ATTR_NONNULL(...)
_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
_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
#define C
Definition: RandGen.cpp:39
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.
Definition: btQuadWord.h:119
Definition: BKE_main.h:116
PointerRNA * ptr
Definition: wm_files.c:3157
wmOperatorType * ot
Definition: wm_files.c:3156
void wm_test_autorun_revert_action_set(struct wmOperatorType *ot, struct PointerRNA *ptr)
Definition: wm_files.c:3163
void wm_quit_with_optional_confirmation_prompt(bContext *C, wmWindow *win) ATTR_NONNULL()
Definition: wm_window.c:362
wmWindow * wm_window_copy(struct Main *bmain, wmWindowManager *wm, wmWindow *win_src, const bool duplicate_layout, const bool child)
Definition: wm_window.c:279
void wm_window_raise(wmWindow *win)
Definition: wm_window.c:1866
void wm_ghost_exit(void)
Definition: wm_window.c:1604
void wm_cursor_position_from_ghost(wmWindow *win, int *r_x, int *r_y)
Definition: wm_window.c:964
void wm_window_swap_buffers(wmWindow *win)
Push rendered buffer to the screen.
Definition: wm_window.c:1884
void wm_window_reset_drawable(void)
Definition: wm_window.c:1074
int wm_window_close_exec(bContext *C, struct wmOperator *op)
void wm_window_title(wmWindowManager *wm, wmWindow *win)
Definition: wm_window.c:440
bool wm_window_get_swap_interval(wmWindow *win, int *intervalOut)
Definition: wm_window.c:1894
void wm_window_close(bContext *C, wmWindowManager *wm, wmWindow *win)
Definition: wm_window.c:389
void wm_window_set_swap_interval(wmWindow *win, int interval)
Definition: wm_window.c:1889
void wm_get_desktopsize(int *r_width, int *r_height)
Definition: wm_window.c:151
void wm_window_set_size(wmWindow *win, int width, int height)
Definition: wm_window.c:1850
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:720
void wm_window_clear_drawable(wmWindowManager *wm)
Definition: wm_window.c:1047
void wm_window_process_events(const bContext *C)
Definition: wm_window.c:1550
void wm_get_screensize(int *r_width, int *r_height)
Definition: wm_window.c:140
void wm_cursor_position_to_ghost(wmWindow *win, int *x, int *y)
Definition: wm_window.c:975
void wm_window_make_drawable(wmWindowManager *wm, wmWindow *win)
Definition: wm_window.c:1054
void wm_test_autorun_warning(bContext *C)
Definition: wm_files.c:3196
void wm_window_get_position(wmWindow *win, int *r_pos_x, int *r_pos_y)
Definition: wm_window.c:1844
wmWindow * wm_window_copy_test(bContext *C, wmWindow *win_src, const bool duplicate_layout, const bool child)
Definition: wm_window.c:313
int wm_window_fullscreen_toggle_exec(bContext *C, struct wmOperator *op)
int wm_window_new_main_exec(bContext *C, struct wmOperator *op)
void wm_window_free(bContext *C, wmWindowManager *wm, wmWindow *win)
Definition: wm_window.c:202
void wm_ghost_init(bContext *C)
Definition: wm_window.c:1580
void wm_window_ghostwindows_ensure(wmWindowManager *wm)
Definition: wm_window.c:693
int wm_window_new_exec(bContext *C, struct wmOperator *op)
void wm_cursor_position_get(wmWindow *win, int *r_x, int *r_y)
Definition: wm_window.c:986
void wm_window_lower(wmWindow *win)
Definition: wm_window.c:1861