Blender  V2.93
MOD_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 /* so modifier types match their defines */
24 #include "MOD_modifiertypes.h"
25 
26 #include "DEG_depsgraph_build.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 struct ARegionType;
33 struct PanelType;
34 struct bContext;
35 struct uiLayout;
36 typedef void (*PanelDrawFn)(const bContext *, struct Panel *);
37 
38 void modifier_panel_buttons(const struct bContext *C, struct Panel *panel);
39 
41  struct PointerRNA *ptr,
42  struct PointerRNA *ob_ptr,
43  const char *vgroup_prop,
44  const char *invert_vgroup_prop,
45  const char *text);
46 
48 
50  struct PointerRNA *r_ob_ptr);
51 
55 
57  const char *name,
58  const char *label,
61  struct PanelType *parent);
62 
63 #ifdef __cplusplus
64 }
65 #endif
ModifierType
_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
void modifier_panel_end(struct uiLayout *layout, PointerRNA *ptr)
struct PanelType * modifier_panel_register(struct ARegionType *region_type, ModifierType type, PanelDrawFn draw)
struct PanelType * modifier_subpanel_register(struct ARegionType *region_type, const char *name, const char *label, PanelDrawFn draw_header, PanelDrawFn draw, struct PanelType *parent)
void(* PanelDrawFn)(const bContext *, struct Panel *)
Definition: MOD_ui_common.h:36
void modifier_vgroup_ui(struct uiLayout *layout, struct PointerRNA *ptr, struct PointerRNA *ob_ptr, const char *vgroup_prop, const char *invert_vgroup_prop, const char *text)
struct PointerRNA * modifier_panel_get_property_pointers(struct Panel *panel, struct PointerRNA *r_ob_ptr)
void modifier_panel_buttons(const struct bContext *C, struct Panel *panel)
#define C
Definition: RandGen.cpp:39
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
struct uiLayout * layout
PointerRNA * ptr
Definition: wm_files.c:3157