Blender  V2.93
FX_ui_common.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 
21 #pragma once
22 
23 #include "FX_shader_types.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 struct ARegionType;
30 struct PanelType;
31 struct bContext;
32 struct uiLayout;
33 typedef void (*PanelDrawFn)(const bContext *, Panel *);
34 
35 void shaderfx_panel_end(struct uiLayout *layout, PointerRNA *ptr);
36 
38  struct PointerRNA *r_ob_ptr);
39 
41 
43  const char *name,
44  const char *label,
47  struct PanelType *parent);
48 
49 #ifdef __cplusplus
50 }
51 #endif
ShaderFxType
struct PointerRNA * shaderfx_panel_get_property_pointers(struct Panel *panel, struct PointerRNA *r_ob_ptr)
Definition: FX_ui_common.c:111
PanelType * shaderfx_panel_register(ARegionType *region_type, ShaderFxType type, PanelDrawFn draw)
Definition: FX_ui_common.c:242
void shaderfx_panel_end(struct uiLayout *layout, PointerRNA *ptr)
Definition: FX_ui_common.c:99
void(* PanelDrawFn)(const bContext *, Panel *)
Definition: FX_ui_common.h:33
struct PanelType * shaderfx_subpanel_register(struct ARegionType *region_type, const char *name, const char *label, PanelDrawFn draw_header, PanelDrawFn draw, struct PanelType *parent)
Definition: FX_ui_common.c:273
_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 type
const char * label
void(* draw)(const struct bContext *C, struct Panel *panel)
Definition: BKE_screen.h:266
void(* draw_header)(const struct bContext *C, struct Panel *panel)
Definition: BKE_screen.h:262
short region_type
Definition: BKE_screen.h:252
struct PanelType * parent
Definition: BKE_screen.h:288
PointerRNA * ptr
Definition: wm_files.c:3157