Blender V2.61 - r43446
Classes | Typedefs | Functions

BKE_icons.h File Reference

Go to the source code of this file.

Classes

struct  Icon

Typedefs

typedef void(* DrawInfoFreeFP )(void *drawinfo)
typedef struct Icon Icon

Functions

void BKE_icons_init (int first_dyn_id)
int BKE_icon_getid (struct ID *id)
struct IconBKE_icon_get (int icon_id)
void BKE_icon_set (int icon_id, struct Icon *icon)
void BKE_icon_delete (struct ID *id)
void BKE_icon_changed (int icon_id)
void BKE_icons_free (void)
void BKE_previewimg_freefunc (void *link)
void BKE_previewimg_free (struct PreviewImage **prv)
void BKE_previewimg_free_id (struct ID *id)
struct PreviewImageBKE_previewimg_create (void)
struct PreviewImageBKE_previewimg_copy (struct PreviewImage *prv)
struct PreviewImageBKE_previewimg_get (struct ID *id)

Detailed Description

Definition in file BKE_icons.h.


Typedef Documentation

typedef void(* DrawInfoFreeFP)(void *drawinfo)

Definition at line 39 of file BKE_icons.h.

typedef struct Icon Icon

Definition at line 49 of file BKE_icons.h.


Function Documentation

void BKE_icon_changed ( int  icon_id)
void BKE_icon_delete ( struct ID id)
struct Icon* BKE_icon_get ( int  icon_id) [read]

Definition at line 285 of file icons.c.

References BLI_ghash_lookup(), NULL, and SET_INT_IN_POINTER.

Referenced by icon_draw_size(), UI_icon_get_height(), and UI_icon_get_width().

int BKE_icon_getid ( struct ID id)
void BKE_icon_set ( int  icon_id,
struct Icon icon 
)

Definition at line 299 of file icons.c.

References BLI_ghash_insert(), BLI_ghash_lookup(), NULL, and SET_INT_IN_POINTER.

Referenced by def_internal_icon(), and def_internal_vicon().

void BKE_icons_free ( void  )

Definition at line 112 of file icons.c.

References BLI_ghash_free(), icon_free(), and NULL.

Referenced by main(), and UI_icons_free().

void BKE_icons_init ( int  first_dyn_id)

Definition at line 103 of file icons.c.

References BLI_ghash_new(), BLI_ghashutil_intcmp(), BLI_ghashutil_inthash(), gFirstIconId, and gNextIconId.

Referenced by main(), and UI_icons_init().

struct PreviewImage* BKE_previewimg_copy ( struct PreviewImage prv) [read]

Definition at line 157 of file icons.c.

References i, MEM_dupallocN(), NULL, NUM_ICON_SIZES, and PreviewImage::rect.

Referenced by copy_lamp(), copy_material(), copy_texture(), and copy_world().

struct PreviewImage* BKE_previewimg_create ( void  ) [read]
void BKE_previewimg_free ( struct PreviewImage **  prv)
void BKE_previewimg_free_id ( struct ID id)
void BKE_previewimg_freefunc ( void *  link)

Definition at line 133 of file icons.c.

References i, MEM_freeN(), NULL, NUM_ICON_SIZES, and PreviewImage::rect.

Referenced by BKE_previewimg_free(), and filelist_from_library().

struct PreviewImage* BKE_previewimg_get ( struct ID id) [read]