Blender  V2.93
MOD_gpencil_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 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
28 
29 struct ARegionType;
30 struct PanelType;
31 struct bContext;
32 struct uiLayout;
33 typedef void (*PanelDrawFn)(const bContext *, Panel *);
34 
35 void gpencil_modifier_masking_panel_draw(Panel *panel, bool use_material, bool use_vertex);
36 
39 
40 void gpencil_modifier_panel_end(struct uiLayout *layout, PointerRNA *ptr);
41 
43  struct PointerRNA *r_ob_ptr);
44 
47  PanelDrawFn draw);
48 
50  const char *name,
51  const char *label,
54  struct PanelType *parent);
55 
56 #ifdef __cplusplus
57 }
58 #endif
_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 gpencil_modifier_curve_panel_draw(const bContext *C, Panel *panel)
void gpencil_modifier_masking_panel_draw(Panel *panel, bool use_material, bool use_vertex)
PanelType * gpencil_modifier_panel_register(struct ARegionType *region_type, GpencilModifierType type, PanelDrawFn draw)
void gpencil_modifier_curve_header_draw(const bContext *C, Panel *panel)
struct PanelType * gpencil_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 *, Panel *)
void gpencil_modifier_panel_end(struct uiLayout *layout, PointerRNA *ptr)
struct PointerRNA * gpencil_modifier_panel_get_property_pointers(struct Panel *panel, struct PointerRNA *r_ob_ptr)
#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
PointerRNA * ptr
Definition: wm_files.c:3157