Blender V2.61 - r43446
Classes | Defines | Typedefs | Functions

UI_interface_icons.h File Reference

Go to the source code of this file.

Classes

struct  IconFile

Defines

#define ICON_DEFAULT_HEIGHT   16
#define ICON_DEFAULT_WIDTH   16
#define ICON_DEFAULT_HEIGHT_SCALE   ((int)(UI_UNIT_Y * 0.8f))
#define ICON_DEFAULT_WIDTH_SCALE   ((int)(UI_UNIT_X * 0.8f))
#define PREVIEW_DEFAULT_HEIGHT   96

Typedefs

typedef struct IconFile IconFile

Functions

void UI_icons_init (int first_dyn_id)
int UI_icon_get_width (int icon_id)
int UI_icon_get_height (int icon_id)
void UI_icon_draw (float x, float y, int icon_id)
void UI_icon_draw_preview (float x, float y, int icon_id)
void UI_icon_draw_preview_aspect (float x, float y, int icon_id, float aspect)
void UI_icon_draw_preview_aspect_size (float x, float y, int icon_id, float aspect, int size)
void UI_icon_draw_aspect (float x, float y, int icon_id, float aspect, float alpha)
void UI_icon_draw_aspect_color (float x, float y, int icon_id, float aspect, float *rgb)
void UI_icon_draw_size (float x, float y, int size, int icon_id, float alpha)
void UI_icons_free (void)
void UI_icons_free_drawinfo (void *drawinfo)
struct ListBaseUI_iconfile_list (void)
int UI_iconfile_get_index (const char *filename)

Detailed Description

Definition in file UI_interface_icons.h.


Define Documentation

#define ICON_DEFAULT_HEIGHT   16

Definition at line 48 of file UI_interface_icons.h.

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

#define ICON_DEFAULT_HEIGHT_SCALE   ((int)(UI_UNIT_Y * 0.8f))

Definition at line 51 of file UI_interface_icons.h.

Referenced by file_draw_list().

#define ICON_DEFAULT_WIDTH   16

Definition at line 49 of file UI_interface_icons.h.

Referenced by UI_icon_get_width().

#define ICON_DEFAULT_WIDTH_SCALE   ((int)(UI_UNIT_X * 0.8f))

Definition at line 52 of file UI_interface_icons.h.

Referenced by ED_fileselect_init_layout(), and file_draw_list().

#define PREVIEW_DEFAULT_HEIGHT   96

Definition at line 54 of file UI_interface_icons.h.

Referenced by get_draw_size(), and preview_render_size().


Typedef Documentation

typedef struct IconFile IconFile

Function Documentation

void UI_icon_draw ( float  x,
float  y,
int  icon_id 
)
void UI_icon_draw_aspect ( float  x,
float  y,
int  icon_id,
float  aspect,
float  alpha 
)
void UI_icon_draw_aspect_color ( float  x,
float  y,
int  icon_id,
float  aspect,
float *  rgb 
)

Definition at line 1139 of file interface_icons.c.

References FALSE, get_draw_size(), icon_draw_size(), and ICON_SIZE_ICON.

Referenced by widget_draw_icon().

void UI_icon_draw_preview ( float  x,
float  y,
int  icon_id 
)

Definition at line 1155 of file interface_icons.c.

References icon_draw_at_size(), and ICON_SIZE_PREVIEW.

void UI_icon_draw_preview_aspect ( float  x,
float  y,
int  icon_id,
float  aspect 
)

Definition at line 1160 of file interface_icons.c.

References icon_draw_at_size(), and ICON_SIZE_PREVIEW.

void UI_icon_draw_preview_aspect_size ( float  x,
float  y,
int  icon_id,
float  aspect,
int  size 
)

Definition at line 1165 of file interface_icons.c.

References FALSE, icon_draw_size(), ICON_SIZE_PREVIEW, NULL, and TRUE.

Referenced by widget_draw_preview().

void UI_icon_draw_size ( float  x,
float  y,
int  size,
int  icon_id,
float  alpha 
)

Definition at line 1150 of file interface_icons.c.

References FALSE, icon_draw_size(), ICON_SIZE_ICON, NULL, and TRUE.

int UI_icon_get_height ( int  icon_id)
int UI_icon_get_width ( int  icon_id)
int UI_iconfile_get_index ( const char *  filename)
struct ListBase* UI_iconfile_list ( void  ) [read]

Definition at line 698 of file interface_icons.c.

References iconfilelist.

void UI_icons_free ( void  )

Definition at line 706 of file interface_icons.c.

References BKE_icons_free(), free_iconfile_list(), and IconTexture::id.

Referenced by ui_resources_free().

void UI_icons_free_drawinfo ( void *  drawinfo)
void UI_icons_init ( int  first_dyn_id)