Blender V2.61 - r43446
Functions

interface_style.c File Reference

#include <limits.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "DNA_screen_types.h"
#include "DNA_userdef_types.h"
#include "BLI_math.h"
#include "BLI_listbase.h"
#include "BLI_rect.h"
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "BKE_global.h"
#include "BLF_api.h"
#include "BLF_translation.h"
#include "UI_interface.h"
#include "ED_datafiles.h"
#include "interface_intern.h"

Go to the source code of this file.

Functions

static uiStyleui_style_new (ListBase *styles, const char *name, short uifont_id)
static uiFontuifont_to_blfont (int id)
void uiStyleFontDrawExt (uiFontStyle *fs, rcti *rect, const char *str, float *r_xofs, float *r_yofs)
void uiStyleFontDraw (uiFontStyle *fs, rcti *rect, const char *str)
void uiStyleFontDrawRotated (uiFontStyle *fs, rcti *rect, const char *str)
uiStyleUI_GetStyle (void)
int UI_GetStringWidth (const char *str)
void UI_DrawString (float x, float y, const char *str)
void uiStyleInit (void)
void uiStyleFontSet (uiFontStyle *fs)

Detailed Description

Definition in file interface_style.c.


Function Documentation

void UI_DrawString ( float  x,
float  y,
const char *  str 
)
int UI_GetStringWidth ( const char *  str)
uiStyle* UI_GetStyle ( void  )
static uiStyle* ui_style_new ( ListBase styles,
const char *  name,
short  uifont_id 
) [static]
static uiFont* uifont_to_blfont ( int  id) [static]

Definition at line 132 of file interface_style.c.

References ListBase::first, uiFont::next, U, uiFont::uifont_id, and UserDef::uifonts.

Referenced by uiStyleFontSet().

void uiStyleFontDraw ( uiFontStyle fs,
rcti rect,
const char *  str 
)
void uiStyleFontDrawExt ( uiFontStyle fs,
rcti rect,
const char *  str,
float *  r_xofs,
float *  r_yofs 
)
void uiStyleFontDrawRotated ( uiFontStyle fs,
rcti rect,
const char *  str 
)
void uiStyleFontSet ( uiFontStyle fs)
void uiStyleInit ( void  )