Blender  V2.93
ED_util.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) 2008 Blender Foundation.
17  * All rights reserved.
18  */
19 
24 #pragma once
25 
26 #include "BLI_compiler_attrs.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 struct Main;
33 struct bContext;
34 
35 /* ed_util.c */
36 void ED_editors_init_for_undo(struct Main *bmain);
37 void ED_editors_init(struct bContext *C);
38 void ED_editors_exit(struct Main *bmain, bool do_undo_system);
39 
41  struct Object *ob,
42  bool for_render,
43  bool check_needs_flush);
44 bool ED_editors_flush_edits_for_object(struct Main *bmain, struct Object *ob);
45 
46 bool ED_editors_flush_edits_ex(struct Main *bmain, bool for_render, bool check_needs_flush);
47 bool ED_editors_flush_edits(struct Main *bmain);
48 
50  struct SpaceLink *sl,
51  struct ID *old_id,
52  struct ID *new_id);
53 
54 void ED_operatortypes_edutils(void);
55 
56 /* Drawing */
58  struct ARegion *region,
59  void *arg_info);
60 
62  int x, int y, struct ImBuf *ibuf, const rctf *frame, float zoomx, float zoomy);
63 
64 /* ************** XXX OLD CRUFT WARNING ************* */
65 
66 void apply_keyb_grid(
67  int shift, int ctrl, float *val, float fac1, float fac2, float fac3, int invert);
68 
69 /* where else to go ? */
70 void unpack_menu(struct bContext *C,
71  const char *opname,
72  const char *id_name,
73  const char *abs_name,
74  const char *folder,
75  struct PackedFile *pf);
76 
77 #ifdef __cplusplus
78 }
79 #endif
bool ED_editors_flush_edits_for_object(struct Main *bmain, struct Object *ob)
Definition: ed_util.c:271
void ED_editors_init_for_undo(struct Main *bmain)
Definition: ed_util.c:68
void ED_editors_exit(struct Main *bmain, bool do_undo_system)
Definition: ed_util.c:181
bool ED_editors_flush_edits_for_object_ex(struct Main *bmain, struct Object *ob, bool for_render, bool check_needs_flush)
Definition: ed_util.c:222
void ED_spacedata_id_remap(struct ScrArea *area, struct SpaceLink *sl, struct ID *old_id, struct ID *new_id)
Definition: ed_util.c:428
void ED_editors_init(struct bContext *C)
Definition: ed_util.c:86
void ED_operatortypes_edutils(void)
Definition: ed_util_ops.cc:276
bool ED_editors_flush_edits(struct Main *bmain)
Definition: ed_util.c:295
void ED_region_image_metadata_draw(int x, int y, struct ImBuf *ibuf, const rctf *frame, float zoomx, float zoomy)
Definition: ed_draw.c:313
void apply_keyb_grid(int shift, int ctrl, float *val, float fac1, float fac2, float fac3, int invert)
Definition: ed_util.c:304
bool ED_editors_flush_edits_ex(struct Main *bmain, bool for_render, bool check_needs_flush)
Definition: ed_util.c:278
void ED_region_draw_mouse_line_cb(const struct bContext *C, struct ARegion *region, void *arg_info)
void unpack_menu(struct bContext *C, const char *opname, const char *id_name, const char *abs_name, const char *folder, struct PackedFile *pf)
Definition: ed_util.c:329
_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
std::string id_name(void *id)
#define pf(_x, _i)
Prefetch 64.
Definition: gim_memory.h:48
static void area(int d1, int d2, int e1, int e2, float weights[2])
Definition: DNA_ID.h:273
Definition: BKE_main.h:116
struct ARegion * region
Definition: context.c:79
CCL_NAMESPACE_BEGIN ccl_device float invert(float color, float factor)
Definition: svm_invert.h:19