~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to source/blender/blenkernel/BKE_icons.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
/** \file BKE_icons.h
32
32
 *  \ingroup bke
33
 
 */
34
 
 
35
 
/*
 
33
 *
36
34
 * Resizable Icons for Blender
37
35
 */
38
36
 
39
 
typedef void (*DrawInfoFreeFP) (void *drawinfo);
 
37
typedef void (*DrawInfoFreeFP)(void *drawinfo);
40
38
 
41
 
struct Icon
42
 
{
 
39
struct Icon {
43
40
        void *drawinfo;
44
41
        void *obj;
45
42
        short type;
54
51
void BKE_icons_init(int first_dyn_id);
55
52
 
56
53
/* return icon id for library object or create new icon if not found */
57
 
int     BKE_icon_getid(struct ID* id);
 
54
int BKE_icon_getid(struct ID *id);
58
55
 
59
56
/* retrieve icon for id */
60
 
struct Icon* BKE_icon_get(int icon_id);
 
57
struct Icon *BKE_icon_get(int icon_id);
61
58
 
62
59
/* set icon for id if not already defined */
63
60
/* used for inserting the internal icons */
64
 
void BKE_icon_set(int icon_id, struct Icon* icon);
 
61
void BKE_icon_set(int icon_id, struct Icon *icon);
65
62
 
66
63
/* remove icon and free date if library object becomes invalid */
67
 
void BKE_icon_delete(struct ID* id);
 
64
void BKE_icon_delete(struct ID *id);
68
65
 
69
66
/* report changes - icon needs to be recalculated */
70
67
void BKE_icon_changed(int icon_id);
82
79
void BKE_previewimg_free_id(struct ID *id);
83
80
 
84
81
/* create a new preview image */
85
 
struct PreviewImage* BKE_previewimg_create(void);
 
82
struct PreviewImage *BKE_previewimg_create(void);
86
83
 
87
84
/* create a copy of the preview image */
88
 
struct PreviewImage* BKE_previewimg_copy(struct PreviewImage *prv);
 
85
struct PreviewImage *BKE_previewimg_copy(struct PreviewImage *prv);
89
86
 
90
87
/* retrieve existing or create new preview image */
91
 
struct PreviewImage* BKE_previewimg_get(struct ID *id);
 
88
struct PreviewImage *BKE_previewimg_get(struct ID *id);
92
89
 
93
90
#endif /*  __BKE_ICONS_H__ */