Blender  V2.59
Classes | Defines | Functions
interface.c File Reference
#include <float.h>
#include <limits.h>
#include <math.h>
#include <string.h>
#include <ctype.h>
#include "MEM_guardedalloc.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_userdef_types.h"
#include "BLI_math.h"
#include "BLI_blenlib.h"
#include "BLI_dynstr.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_library.h"
#include "BKE_unit.h"
#include "BKE_utildefines.h"
#include "BIF_gl.h"
#include "BLF_api.h"
#include "UI_interface.h"
#include "WM_api.h"
#include "WM_types.h"
#include "wm_subwindow.h"
#include "wm_window.h"
#include "RNA_access.h"
#include "BPY_extern.h"
#include "interface_intern.h"

Go to the source code of this file.

Classes

struct  AutoComplete

Defines

#define MENU_WIDTH   120
#define MENU_ITEM_HEIGHT   20
#define MENU_SEP_HEIGHT   6
#define PRECISION_FLOAT_MAX   6
#define PRECISION_FLOAT_MAX_POW   1000000
#define UI_BUT_VALUE_UNSET   DBL_MAX
#define UI_GET_BUT_VALUE_INIT(_but, _value)   if(_value == DBL_MAX) { (_value)= ui_get_but_val(_but); }
#define UI_DEF_BUT_RNA_DISABLE(but)

Functions

static void ui_free_but (const bContext *C, uiBut *but)
int ui_translate_buttons (void)
int ui_translate_menus (void)
int ui_translate_tooltips (void)
void ui_block_to_window_fl (const ARegion *ar, uiBlock *block, float *x, float *y)
void ui_block_to_window (const ARegion *ar, uiBlock *block, int *x, int *y)
void ui_block_to_window_rct (const ARegion *ar, uiBlock *block, rctf *graph, rcti *winr)
void ui_window_to_block_fl (const ARegion *ar, uiBlock *block, float *x, float *y)
void ui_window_to_block (const ARegion *ar, uiBlock *block, int *x, int *y)
void ui_window_to_region (const ARegion *ar, int *x, int *y)
void ui_block_translate (uiBlock *block, int x, int y)
static void ui_text_bounds_block (uiBlock *block, float offset)
void ui_bounds_block (uiBlock *block)
static void ui_centered_bounds_block (const bContext *C, uiBlock *block)
static void ui_popup_bounds_block (const bContext *C, uiBlock *block, int bounds_calc)
void uiBoundsBlock (uiBlock *block, int addval)
void uiTextBoundsBlock (uiBlock *block, int addval)
void uiPopupBoundsBlock (uiBlock *block, int addval, int mx, int my)
void uiMenuPopupBoundsBlock (uiBlock *block, int addval, int mx, int my)
void uiCenteredBoundsBlock (uiBlock *block, int addval)
static int ui_but_float_precision (uiBut *but, double value)
static void ui_draw_linkline (uiLinkLine *line)
static void ui_draw_links (uiBlock *block)
static int ui_but_equals_old (uiBut *but, uiBut *oldbut)
static void ui_but_update_linklines (uiBlock *block, uiBut *oldbut, uiBut *newbut)
static int ui_but_update_from_old_block (const bContext *C, uiBlock *block, uiBut **butpp)
int uiButActiveOnly (const bContext *C, uiBlock *block, uiBut *but)
static void ui_menu_block_set_keyaccels (uiBlock *block)
static void ui_menu_block_set_keymaps (const bContext *C, uiBlock *block)
void uiEndBlock (const bContext *C, uiBlock *block)
void ui_fontscale (short *points, float aspect)
static void ui_but_to_pixelrect (rcti *rect, const ARegion *ar, uiBlock *block, uiBut *but)
void uiDrawBlock (const bContext *C, uiBlock *block)
static void ui_is_but_sel (uiBut *but, double *value)
static uiBut * ui_find_inlink (uiBlock *block, void *poin)
static void ui_add_link_line (ListBase *listb, uiBut *but, uiBut *bt)
uiBut * uiFindInlink (uiBlock *block, void *poin)
void uiComposeLinks (uiBlock *block)
void uiBlockSetButLock (uiBlock *block, int val, const char *lockstr)
void uiBlockClearButLock (uiBlock *block)
void ui_delete_linkline (uiLinkLine *line, uiBut *but)
void ui_get_but_vectorf (uiBut *but, float *vec)
void ui_set_but_vectorf (uiBut *but, float *vec)
int ui_is_but_float (uiBut *but)
int ui_is_but_unit (uiBut *but)
int ui_is_but_rna_valid (uiBut *but)
double ui_get_but_val (uiBut *but)
void ui_set_but_val (uiBut *but, double value)
int ui_get_but_string_max_length (uiBut *but)
static double ui_get_but_scale_unit (uiBut *but, double value)
void ui_convert_to_unit_alt_name (uiBut *but, char *str, int maxlen)
static void ui_get_but_string_unit (uiBut *but, char *str, int len_max, double value, int pad)
static float ui_get_but_step_unit (uiBut *but, float step_default)
void ui_get_but_string (uiBut *but, char *str, int maxlen)
int ui_set_but_string (bContext *C, uiBut *but, const char *str)
void ui_set_but_default (bContext *C, short all)
static double soft_range_round_up (double value, double max)
static double soft_range_round_down (double value, double max)
void ui_set_but_soft_range (uiBut *but, double value)
static void ui_free_link (uiLink *link)
void uiFreeBlock (const bContext *C, uiBlock *block)
void uiFreeBlocks (const bContext *C, ListBase *lb)
void uiFreeInactiveBlocks (const bContext *C, ListBase *lb)
void uiBlockSetRegion (uiBlock *block, ARegion *region)
uiBlock * uiBeginBlock (const bContext *C, ARegion *region, const char *name, short dt)
uiBlock * uiGetBlock (const char *name, ARegion *ar)
void uiBlockSetEmboss (uiBlock *block, char dt)
void ui_check_but (uiBut *but)
void uiBlockBeginAlign (uiBlock *block)
static int buts_are_horiz (uiBut *but1, uiBut *but2)
void uiBlockEndAlign (uiBlock *block)
int ui_but_can_align (uiBut *but)
static void ui_block_do_align_but (uiBut *first, int nr)
void ui_block_do_align (uiBlock *block)
static uiBut * ui_def_but (uiBlock *block, int type, int retval, const char *str, int x1, int y1, short x2, short y2, void *poin, float min, float max, float a1, float a2, const char *tip)
static uiBut * ui_def_but_rna (uiBlock *block, int type, int retval, const char *str, int x1, int y1, short x2, short y2, PointerRNA *ptr, PropertyRNA *prop, int index, float min, float max, float a1, float a2, const char *tip)
static uiBut * ui_def_but_rna_propname (uiBlock *block, int type, int retval, const char *str, int x1, int y1, short x2, short y2, PointerRNA *ptr, const char *propname, int index, float min, float max, float a1, float a2, const char *tip)
static uiBut * ui_def_but_operator (uiBlock *block, int type, const char *opname, int opcontext, const char *str, int x1, int y1, short x2, short y2, const char *tip)
static uiBut * ui_def_but_operator_text (uiBlock *block, int type, const char *opname, int opcontext, const char *str, int x1, int y1, short x2, short y2, void *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefBut (uiBlock *block, int type, int retval, const char *str, int x1, int y1, short x2, short y2, void *poin, float min, float max, float a1, float a2, const char *tip)
static int findBitIndex (unsigned int x)
AutoComplete * autocomplete_begin (const char *startname, int maxlen)
void autocomplete_do_name (AutoComplete *autocpl, const char *name)
void autocomplete_end (AutoComplete *autocpl, char *autoname)
static void autocomplete_id (bContext *C, char *str, void *arg_v)
static void ui_check_but_and_iconize (uiBut *but, int icon)
static uiBut * uiDefButBit (uiBlock *block, int type, int bit, int retval, const char *str, int x1, int y1, short x2, short y2, void *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefButF (uiBlock *block, int type, int retval, const char *str, int x1, int y1, short x2, short y2, float *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefButBitF (uiBlock *block, int type, int bit, int retval, const char *str, int x1, int y1, short x2, short y2, float *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefButI (uiBlock *block, int type, int retval, const char *str, int x1, int y1, short x2, short y2, int *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefButBitI (uiBlock *block, int type, int bit, int retval, const char *str, int x1, int y1, short x2, short y2, int *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefButS (uiBlock *block, int type, int retval, const char *str, int x1, int y1, short x2, short y2, short *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefButBitS (uiBlock *block, int type, int bit, int retval, const char *str, int x1, int y1, short x2, short y2, short *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefButC (uiBlock *block, int type, int retval, const char *str, int x1, int y1, short x2, short y2, char *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefButBitC (uiBlock *block, int type, int bit, int retval, const char *str, int x1, int y1, short x2, short y2, char *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefButR (uiBlock *block, int type, int retval, const char *str, int x1, int y1, short x2, short y2, PointerRNA *ptr, const char *propname, int index, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefButR_prop (uiBlock *block, int type, int retval, const char *str, int x1, int y1, short x2, short y2, PointerRNA *ptr, PropertyRNA *prop, int index, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefButO (uiBlock *block, int type, const char *opname, int opcontext, const char *str, int x1, int y1, short x2, short y2, const char *tip)
uiBut * uiDefButTextO (uiBlock *block, int type, const char *opname, int opcontext, const char *str, int x1, int y1, short x2, short y2, void *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefIconBut (uiBlock *block, int type, int retval, int icon, int x1, int y1, short x2, short y2, void *poin, float min, float max, float a1, float a2, const char *tip)
static uiBut * uiDefIconButBit (uiBlock *block, int type, int bit, int retval, int icon, int x1, int y1, short x2, short y2, void *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefIconButF (uiBlock *block, int type, int retval, int icon, int x1, int y1, short x2, short y2, float *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefIconButBitF (uiBlock *block, int type, int bit, int retval, int icon, int x1, int y1, short x2, short y2, float *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefIconButI (uiBlock *block, int type, int retval, int icon, int x1, int y1, short x2, short y2, int *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefIconButBitI (uiBlock *block, int type, int bit, int retval, int icon, int x1, int y1, short x2, short y2, int *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefIconButS (uiBlock *block, int type, int retval, int icon, int x1, int y1, short x2, short y2, short *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefIconButBitS (uiBlock *block, int type, int bit, int retval, int icon, int x1, int y1, short x2, short y2, short *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefIconButC (uiBlock *block, int type, int retval, int icon, int x1, int y1, short x2, short y2, char *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefIconButBitC (uiBlock *block, int type, int bit, int retval, int icon, int x1, int y1, short x2, short y2, char *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefIconButR (uiBlock *block, int type, int retval, int icon, int x1, int y1, short x2, short y2, PointerRNA *ptr, const char *propname, int index, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefIconButR_prop (uiBlock *block, int type, int retval, int icon, int x1, int y1, short x2, short y2, PointerRNA *ptr, PropertyRNA *prop, int index, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefIconButO (uiBlock *block, int type, const char *opname, int opcontext, int icon, int x1, int y1, short x2, short y2, const char *tip)
uiBut * uiDefIconTextBut (uiBlock *block, int type, int retval, int icon, const char *str, int x1, int y1, short x2, short y2, void *poin, float min, float max, float a1, float a2, const char *tip)
static uiBut * uiDefIconTextButBit (uiBlock *block, int type, int bit, int retval, int icon, const char *str, int x1, int y1, short x2, short y2, void *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefIconTextButF (uiBlock *block, int type, int retval, int icon, const char *str, int x1, int y1, short x2, short y2, float *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefIconTextButBitF (uiBlock *block, int type, int bit, int retval, int icon, const char *str, int x1, int y1, short x2, short y2, float *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefIconTextButI (uiBlock *block, int type, int retval, int icon, const char *str, int x1, int y1, short x2, short y2, int *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefIconTextButBitI (uiBlock *block, int type, int bit, int retval, int icon, const char *str, int x1, int y1, short x2, short y2, int *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefIconTextButS (uiBlock *block, int type, int retval, int icon, const char *str, int x1, int y1, short x2, short y2, short *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefIconTextButBitS (uiBlock *block, int type, int bit, int retval, int icon, const char *str, int x1, int y1, short x2, short y2, short *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefIconTextButC (uiBlock *block, int type, int retval, int icon, const char *str, int x1, int y1, short x2, short y2, char *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefIconTextButBitC (uiBlock *block, int type, int bit, int retval, int icon, const char *str, int x1, int y1, short x2, short y2, char *poin, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefIconTextButR (uiBlock *block, int type, int retval, int icon, const char *str, int x1, int y1, short x2, short y2, PointerRNA *ptr, const char *propname, int index, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefIconTextButR_prop (uiBlock *block, int type, int retval, int icon, const char *str, int x1, int y1, short x2, short y2, PointerRNA *ptr, PropertyRNA *prop, int index, float min, float max, float a1, float a2, const char *tip)
uiBut * uiDefIconTextButO (uiBlock *block, int type, const char *opname, int opcontext, int icon, const char *str, int x1, int y1, short x2, short y2, const char *tip)
void uiSetButLink (uiBut *but, void **poin, void ***ppoin, short *tot, int from, int to)
int uiBlocksGetYMin (ListBase *lb)
void uiBlockSetDirection (uiBlock *block, int direction)
void uiBlockFlipOrder (uiBlock *block)
void uiBlockSetFlag (uiBlock *block, int flag)
void uiBlockClearFlag (uiBlock *block, int flag)
void uiBlockSetXOfs (uiBlock *block, int xofs)
void uiButSetFlag (uiBut *but, int flag)
void uiButClearFlag (uiBut *but, int flag)
int uiButGetRetVal (uiBut *but)
void uiButSetDragID (uiBut *but, ID *id)
void uiButSetDragRNA (uiBut *but, PointerRNA *ptr)
void uiButSetDragPath (uiBut *but, const char *path)
void uiButSetDragName (uiBut *but, const char *name)
void uiButSetDragValue (uiBut *but)
void uiButSetDragImage (uiBut *but, const char *path, int icon, struct ImBuf *imb, float scale)
PointerRNA * uiButGetOperatorPtrRNA (uiBut *but)
void uiButSetUnitType (uiBut *but, const int unit_type)
int uiButGetUnitType (uiBut *but)
void uiBlockSetHandleFunc (uiBlock *block, uiBlockHandleFunc func, void *arg)
void uiBlockSetButmFunc (uiBlock *block, uiMenuHandleFunc func, void *arg)
void uiBlockSetFunc (uiBlock *block, uiButHandleFunc func, void *arg1, void *arg2)
void uiBlockSetNFunc (uiBlock *block, uiButHandleFunc func, void *argN, void *arg2)
void uiButSetRenameFunc (uiBut *but, uiButHandleRenameFunc func, void *arg1)
void uiBlockSetDrawExtraFunc (uiBlock *block, void(*func)(const bContext *C, void *idv, void *arg1, void *arg2, rcti *rect), void *arg1, void *arg2)
void uiButSetFunc (uiBut *but, uiButHandleFunc func, void *arg1, void *arg2)
void uiButSetNFunc (uiBut *but, uiButHandleNFunc funcN, void *argN, void *arg2)
void uiButSetCompleteFunc (uiBut *but, uiButCompleteFunc func, void *arg)
uiBut * uiDefIDPoinBut (uiBlock *block, uiIDPoinFuncFP func, short blocktype, int retval, const char *str, int x1, int y1, short x2, short y2, void *idpp, const char *tip)
uiBut * uiDefBlockBut (uiBlock *block, uiBlockCreateFunc func, void *arg, const char *str, int x1, int y1, short x2, short y2, const char *tip)
uiBut * uiDefBlockButN (uiBlock *block, uiBlockCreateFunc func, void *argN, const char *str, int x1, int y1, short x2, short y2, const char *tip)
uiBut * uiDefPulldownBut (uiBlock *block, uiBlockCreateFunc func, void *arg, const char *str, int x1, int y1, short x2, short y2, const char *tip)
uiBut * uiDefMenuBut (uiBlock *block, uiMenuCreateFunc func, void *arg, const char *str, int x1, int y1, short x2, short y2, const char *tip)
uiBut * uiDefIconTextMenuBut (uiBlock *block, uiMenuCreateFunc func, void *arg, int icon, const char *str, int x1, int y1, short x2, short y2, const char *tip)
uiBut * uiDefIconMenuBut (uiBlock *block, uiMenuCreateFunc func, void *arg, int icon, int x1, int y1, short x2, short y2, const char *tip)
uiBut * uiDefIconTextBlockBut (uiBlock *block, uiBlockCreateFunc func, void *arg, int icon, const char *str, int x1, int y1, short x2, short y2, const char *tip)
uiBut * uiDefIconBlockBut (uiBlock *block, uiBlockCreateFunc func, void *arg, int retval, int icon, int x1, int y1, short x2, short y2, const char *tip)
uiBut * uiDefKeyevtButS (uiBlock *block, int retval, const char *str, int x1, int y1, short x2, short y2, short *spoin, const char *tip)
uiBut * uiDefHotKeyevtButS (uiBlock *block, int retval, const char *str, int x1, int y1, short x2, short y2, short *keypoin, short *modkeypoin, const char *tip)
uiBut * uiDefSearchBut (uiBlock *block, void *arg, int retval, int icon, int maxlen, int x1, int y1, short x2, short y2, float a1, float a2, const char *tip)
void uiButSetSearchFunc (uiBut *but, uiButSearchFunc sfunc, void *arg, uiButHandleFunc bfunc, void *active)
void uiButSetFocusOnEnter (wmWindow *win, uiBut *but)
void UI_init (void)
void UI_init_userdef (void)
void UI_exit (void)

Detailed Description

Definition in file interface.c.


Define Documentation

#define MENU_ITEM_HEIGHT   20

Definition at line 74 of file interface.c.

#define MENU_SEP_HEIGHT   6

Definition at line 75 of file interface.c.

#define MENU_WIDTH   120

Definition at line 73 of file interface.c.

#define PRECISION_FLOAT_MAX   6

Definition at line 77 of file interface.c.

Referenced by ui_but_float_precision(), and ui_get_but_string_unit().

#define PRECISION_FLOAT_MAX_POW   1000000

Definition at line 78 of file interface.c.

Referenced by ui_but_float_precision().

#define UI_BUT_VALUE_UNSET   DBL_MAX

Definition at line 81 of file interface.c.

Referenced by ui_check_but(), and ui_set_but_val().

#define UI_DEF_BUT_RNA_DISABLE (   but)
Value:
but->flag |= UI_BUT_DISABLED; \
        but->lock = 1; \
        but->lockstr = ""

Definition at line 2501 of file interface.c.

Referenced by ui_def_but_rna(), and ui_def_but_rna_propname().

#define UI_GET_BUT_VALUE_INIT (   _but,
  _value 
)    if(_value == DBL_MAX) { (_value)= ui_get_but_val(_but); }

Definition at line 82 of file interface.c.

Referenced by ui_check_but(), and ui_is_but_sel().


Function Documentation

AutoComplete* autocomplete_begin ( const char *  startname,
int  maxlen 
)
void autocomplete_do_name ( AutoComplete *  autocpl,
const char *  name 
)
void autocomplete_end ( AutoComplete *  autocpl,
char *  autoname 
)
static void autocomplete_id ( bContext *  C,
char *  str,
void *  arg_v 
) [static]
static int buts_are_horiz ( uiBut *  but1,
uiBut *  but2 
) [static]

Definition at line 2208 of file interface.c.

References fabs(), uiBut::x1, uiBut::x2, uiBut::y1, and uiBut::y2.

Referenced by ui_block_do_align_but().

static int findBitIndex ( unsigned int  x) [static]

Definition at line 2737 of file interface.c.

Referenced by uiDefButBit(), uiDefIconButBit(), and uiDefIconTextButBit().

static double soft_range_round_down ( double  value,
double  max 
) [static]

Definition at line 1753 of file interface.c.

References KDL::log(), M_LN10, and pow().

Referenced by ui_set_but_soft_range().

static double soft_range_round_up ( double  value,
double  max 
) [static]

Definition at line 1740 of file interface.c.

References KDL::log(), M_LN10, and pow().

Referenced by ui_set_but_soft_range().

static void ui_add_link_line ( ListBase *  listb,
uiBut *  but,
uiBut *  bt 
) [static]

Definition at line 1051 of file interface.c.

References BLI_addtail(), uiLinkLine::from, MEM_callocN(), and uiLinkLine::to.

Referenced by uiComposeLinks().

void ui_block_do_align ( uiBlock *  block)

Definition at line 2363 of file interface.c.

References uiBut::alignnr, uiBlock::buttons, ListBase::first, uiBut::next, and ui_block_do_align_but().

Referenced by uiEndBlock().

static void ui_block_do_align_but ( uiBut *  first,
int  nr 
) [static]
void ui_block_to_window ( const ARegion *  ar,
uiBlock *  block,
int *  x,
int *  y 
)

Definition at line 134 of file interface.c.

References ui_block_to_window_fl().

void ui_block_to_window_fl ( const ARegion *  ar,
uiBlock *  block,
float *  x,
float *  y 
)
void ui_block_to_window_rct ( const ARegion *  ar,
uiBlock *  block,
rctf *  graph,
rcti *  winr 
)
void ui_block_translate ( uiBlock *  block,
int  x,
int  y 
)
void ui_bounds_block ( uiBlock *  block)
int ui_but_can_align ( uiBut *  but)

Definition at line 2224 of file interface.c.

References ELEM3, LABEL, OPTION, OPTIONN, and uiBut::type.

Referenced by ui_def_but(), and ui_item_align().

static int ui_but_equals_old ( uiBut *  but,
uiBut *  oldbut 
) [static]
static int ui_but_float_precision ( uiBut *  but,
double  value 
) [static]

Definition at line 459 of file interface.c.

References uiBut::a2, ABS, CLAMP(), uiBut::hardmax, i, PRECISION_FLOAT_MAX, and PRECISION_FLOAT_MAX_POW.

Referenced by ui_check_but(), and ui_get_but_string().

static void ui_but_to_pixelrect ( rcti *  rect,
const ARegion *  ar,
uiBlock *  block,
uiBut *  but 
) [static]
static int ui_but_update_from_old_block ( const bContext *  C,
uiBlock *  block,
uiBut **  butpp 
) [static]
static void ui_but_update_linklines ( uiBlock *  block,
uiBut *  oldbut,
uiBut *  newbut 
) [static]
static void ui_centered_bounds_block ( const bContext *  C,
uiBlock *  block 
) [static]
void ui_check_but ( uiBut *  but)

Definition at line 2001 of file interface.c.

References BLI_snprintf(), BUT_TOGDUAL, uiBut::drawstr, uiBut::editstr, uiBut::editval, uiBut::editvec, fabs(), uiBut::flag, FLT_MAX, uiBut::hardmax, uiBut::hardmin, HOTKEYEVT, HSVCIRCLE, HSVCUBE, HSVSLI, uiBut::iconadd, ICONROW, ICONTEXTROW, ICONTOG, ICONTOGN, IDPOIN, KEYEVT, KM_ALT, KM_CTRL, KM_OSKEY, KM_SHIFT, LABEL, MENU, uiBut::modifier_key, NUM, NUMABS, NUMSLI, PROP_ICONS_CONSECUTIVE, PROP_PERCENTAGE, RNA_property_flag(), RNA_property_subtype(), uiBut::rnaprop, SCROLL, SEARCH_MENU, SLI, uiBut::str, TEX, TRUE, uiBut::type, ui_but_float_precision(), UI_BUT_VALUE_UNSET, ui_get_but_string(), ui_get_but_string_unit(), UI_GET_BUT_VALUE_INIT, ui_is_but_float(), ui_is_but_sel(), ui_is_but_unit(), UI_MAX_DRAW_STR, UI_SELECT, ui_set_but_soft_range(), ui_set_but_val(), ui_set_name_menu(), WM_key_event_string(), uiBut::x1, and uiBut::x2.

Referenced by but_shortcut_name_func(), button_activate_exit(), button_activate_state(), ui_apply_but_BLOCK(), ui_apply_but_IDPOIN(), ui_apply_but_NUM(), ui_apply_but_ROW(), ui_apply_but_TEX(), ui_apply_but_TOG(), ui_apply_but_TOG3(), ui_apply_but_VEC(), ui_block_position(), ui_check_but_and_iconize(), ui_do_but_HOTKEYEVT(), ui_do_but_textedit(), ui_do_but_textedit_select(), ui_handle_button_return_submenu(), ui_item_position(), ui_layer_but_cb(), ui_menu_block_set_keymaps(), ui_numedit_apply(), ui_text_bounds_block(), ui_textedit_begin(), ui_textedit_set_cursor_select(), ui_update_block_buts_rgb(), uiDefBlockBut(), uiDefBlockButN(), uiDefBut(), uiDefButO(), uiDefButR(), uiDefButR_prop(), uiDefButTextO(), uiDefHotKeyevtButS(), uiDefIconBlockBut(), uiDefIconMenuBut(), uiDefIconTextBlockBut(), uiDefIconTextMenuBut(), uiDefIDPoinBut(), uiDefKeyevtButS(), uiDefMenuBut(), uiDefPulldownBut(), uiDefSearchBut(), and uiEndBlock().

static void ui_check_but_and_iconize ( uiBut *  but,
int  icon 
) [static]
void ui_convert_to_unit_alt_name ( uiBut *  but,
char *  str,
int  maxlen 
)
static uiBut* ui_def_but ( uiBlock *  block,
int  type,
int  retval,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
void *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
) [static]

Definition at line 2394 of file interface.c.

References uiBut::a1, uiBut::a2, uiBut::alignnr, uiBlock::alignnr, uiBut::aspect, uiBut::bit, BIT, uiBut::bitnr, BLI_addtail(), BLOCK, uiBut::block, BUT, BUT_TOGDUAL, BUTM, BUTPOIN, uiBlock::buttons, BUTTYPE, uiBlock::curlayout, uiBut::dt, uiBlock::dt, ELEM3, ELEM4, ELEM7, ELEM8, uiBut::flag, uiBlock::flag, FTPREVIEW, uiBut::func, uiBlock::func, uiBut::func_arg1, uiBlock::func_arg1, uiBut::func_arg2, uiBlock::func_arg2, uiBut::func_argN, uiBlock::func_argN, uiBut::funcN, uiBlock::funcN, uiBut::hardmax, uiBut::hardmin, HSVSLI, uiBut::icon, uiBut::iconadd, IDPOIN, LABEL, LISTBOX, uiBut::lock, uiBlock::lock, uiBut::lockstr, uiBlock::lockstr, max, MEM_callocN(), MEM_dupallocN(), MEM_mallocN(), MENU, min, NULL, NUM, NUMABS, NUMSLI, uiBut::poin, uiBut::pointype, uiBut::pos, PROGRESSBAR, PULLDOWN, uiBut::retval, ROUNDBOX, SCROLL, SEARCH_MENU, SEPR, uiBut::softmax, uiBut::softmin, uiBut::str, uiBut::strdata, TEX, uiBut::tip, uiBut::type, UI_BLOCK_LOOP, UI_BUT_ALIGN, ui_but_can_align(), UI_BUT_DISABLED, UI_BUT_UNDO, UI_ICON_LEFT, ui_layout_add_but(), UI_MAX_NAME_STR, UI_TEXT_LEFT, uiBut::x1, uiBut::x2, uiBut::y1, and uiBut::y2.

Referenced by ui_def_but_operator(), ui_def_but_operator_text(), ui_def_but_rna(), ui_def_but_rna_propname(), uiDefBlockBut(), uiDefBlockButN(), uiDefBut(), uiDefHotKeyevtButS(), uiDefIconBlockBut(), uiDefIconBut(), uiDefIconMenuBut(), uiDefIconTextBlockBut(), uiDefIconTextBut(), uiDefIconTextMenuBut(), uiDefIDPoinBut(), uiDefKeyevtButS(), uiDefMenuBut(), uiDefPulldownBut(), and uiDefSearchBut().

static uiBut* ui_def_but_operator ( uiBlock *  block,
int  type,
const char *  opname,
int  opcontext,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
const char *  tip 
) [static]
static uiBut* ui_def_but_operator_text ( uiBlock *  block,
int  type,
const char *  opname,
int  opcontext,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
void *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
) [static]
static uiBut* ui_def_but_rna ( uiBlock *  block,
int  type,
int  retval,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
PointerRNA *  ptr,
PropertyRNA *  prop,
int  index,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
) [static]
static uiBut* ui_def_but_rna_propname ( uiBlock *  block,
int  type,
int  retval,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
PointerRNA *  ptr,
const char *  propname,
int  index,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
) [static]
void ui_delete_linkline ( uiLinkLine *  line,
uiBut *  but 
)
static void ui_draw_linkline ( uiLinkLine *  line) [static]
static void ui_draw_links ( uiBlock *  block) [static]
void UI_exit ( void  )

Definition at line 3487 of file interface.c.

References ui_resources_free().

Referenced by WM_exit().

static uiBut* ui_find_inlink ( uiBlock *  block,
void *  poin 
) [static]

Definition at line 1037 of file interface.c.

References uiBlock::buttons, ListBase::first, INLINK, uiBut::next, NULL, uiBut::poin, and uiBut::type.

Referenced by uiComposeLinks(), and uiFindInlink().

void ui_fontscale ( short *  points,
float  aspect 
)

Definition at line 869 of file interface.c.

References ceilf, floorf, and sqrt().

Referenced by ui_searchbox_create(), and uiDrawBlock().

static void ui_free_but ( const bContext *  C,
uiBut *  but 
) [static]
static void ui_free_link ( uiLink *  link) [static]

Definition at line 1844 of file interface.c.

References BLI_freelistN(), uiLink::lines, and MEM_freeN().

Referenced by ui_free_but().

static double ui_get_but_scale_unit ( uiBut *  but,
double  value 
) [static]
static float ui_get_but_step_unit ( uiBut *  but,
float  step_default 
) [static]
void ui_get_but_string ( uiBut *  but,
char *  str,
int  maxlen 
)
int ui_get_but_string_max_length ( uiBut *  but)
static void ui_get_but_string_unit ( uiBut *  but,
char *  str,
int  len_max,
double  value,
int  pad 
) [static]
double ui_get_but_val ( uiBut *  but)
void ui_get_but_vectorf ( uiBut *  but,
float *  vec 
)
void UI_init ( void  )

Definition at line 3474 of file interface.c.

References ui_resources_init().

Referenced by WM_init().

void UI_init_userdef ( void  )

Definition at line 3480 of file interface.c.

References init_userdef_do_versions(), and uiStyleInit().

Referenced by wm_init_userdef().

int ui_is_but_float ( uiBut *  but)
int ui_is_but_rna_valid ( uiBut *  but)
static void ui_is_but_sel ( uiBut *  but,
double *  value 
) [static]
int ui_is_but_unit ( uiBut *  but)
static void ui_menu_block_set_keyaccels ( uiBlock *  block) [static]
static void ui_menu_block_set_keymaps ( const bContext *  C,
uiBlock *  block 
) [static]
static void ui_popup_bounds_block ( const bContext *  C,
uiBlock *  block,
int  bounds_calc 
) [static]
void ui_set_but_default ( bContext *  C,
short  all 
)
void ui_set_but_soft_range ( uiBut *  but,
double  value 
)
int ui_set_but_string ( bContext *  C,
uiBut *  but,
const char *  str 
)
void ui_set_but_val ( uiBut *  but,
double  value 
)
void ui_set_but_vectorf ( uiBut *  but,
float *  vec 
)
static void ui_text_bounds_block ( uiBlock *  block,
float  offset 
) [static]
int ui_translate_buttons ( void  )

Definition at line 95 of file interface.c.

References USER_TR_BUTTONS.

int ui_translate_menus ( void  )

Definition at line 100 of file interface.c.

References USER_TR_MENUS.

int ui_translate_tooltips ( void  )

Definition at line 105 of file interface.c.

References USER_TR_TOOLTIPS.

void ui_window_to_block ( const ARegion *  ar,
uiBlock *  block,
int *  x,
int *  y 
)
void ui_window_to_block_fl ( const ARegion *  ar,
uiBlock *  block,
float *  x,
float *  y 
)
void ui_window_to_region ( const ARegion *  ar,
int *  x,
int *  y 
)

Definition at line 204 of file interface.c.

References ARegion::winrct, rcti::xmin, and rcti::ymin.

Referenced by ui_mouse_inside_region().

uiBlock* uiBeginBlock ( const bContext *  C,
ARegion *  region,
const char *  name,
short  dt 
)
void uiBlockBeginAlign ( uiBlock *  block)
void uiBlockClearButLock ( uiBlock *  block)

Definition at line 1112 of file interface.c.

References uiBlock::lock, uiBlock::lockstr, and NULL.

Referenced by draw_constraint(), and draw_modifier().

void uiBlockClearFlag ( uiBlock *  block,
int  flag 
)

Definition at line 3136 of file interface.c.

References uiBlock::flag.

Referenced by wm_block_create_redo(), wm_block_dialog_create(), and wm_operator_ui_create().

void uiBlockEndAlign ( uiBlock *  block)
void uiBlockFlipOrder ( uiBlock *  block)
void uiBlockSetButLock ( uiBlock *  block,
int  val,
const char *  lockstr 
)
void uiBlockSetButmFunc ( uiBlock *  block,
uiMenuHandleFunc  func,
void *  arg 
)
void uiBlockSetDirection ( uiBlock *  block,
int  direction 
)
void uiBlockSetDrawExtraFunc ( uiBlock *  block,
void(*)(const bContext *C, void *idv, void *arg1, void *arg2, rcti *rect)  func,
void *  arg1,
void *  arg2 
)
void uiBlockSetEmboss ( uiBlock *  block,
char  dt 
)
void uiBlockSetFlag ( uiBlock *  block,
int  flag 
)
void uiBlockSetFunc ( uiBlock *  block,
uiButHandleFunc  func,
void *  arg1,
void *  arg2 
)
void uiBlockSetHandleFunc ( uiBlock *  block,
uiBlockHandleFunc  func,
void *  arg 
)
void uiBlockSetNFunc ( uiBlock *  block,
uiButHandleFunc  func,
void *  argN,
void *  arg2 
)
void uiBlockSetRegion ( uiBlock *  block,
ARegion *  region 
)
void uiBlockSetXOfs ( uiBlock *  block,
int  xofs 
)

Definition at line 3141 of file interface.c.

References uiBlock::xofs.

int uiBlocksGetYMin ( ListBase *  lb)

Definition at line 3076 of file interface.c.

References ListBase::first, min, uiBlock::miny, and uiBlock::next.

void uiBoundsBlock ( uiBlock *  block,
int  addval 
)
int uiButActiveOnly ( const bContext *  C,
uiBlock *  block,
uiBut *  but 
)
void uiButClearFlag ( uiBut *  but,
int  flag 
)

Definition at line 3151 of file interface.c.

References uiBut::flag.

Referenced by uiLayoutOperatorButs().

PointerRNA* uiButGetOperatorPtrRNA ( uiBut *  but) [read]
int uiButGetRetVal ( uiBut *  but)

Definition at line 3156 of file interface.c.

References uiBut::retval.

int uiButGetUnitType ( uiBut *  but)
void uiButSetCompleteFunc ( uiBut *  but,
uiButCompleteFunc  func,
void *  arg 
)

Definition at line 3284 of file interface.c.

References uiBut::autocomplete_func, and uiBut::autofunc_arg.

Referenced by file_draw_buttons(), and uiDefIDPoinBut().

void uiButSetDragID ( uiBut *  but,
ID *  id 
)

Definition at line 3161 of file interface.c.

References uiBut::dragpoin, uiBut::dragtype, and WM_DRAG_ID.

Referenced by template_ID(), tselem_draw_icon_uibut(), and uiItemLDrag().

void uiButSetDragImage ( uiBut *  but,
const char *  path,
int  icon,
struct ImBuf *  imb,
float  scale 
)
void uiButSetDragName ( uiBut *  but,
const char *  name 
)

Definition at line 3179 of file interface.c.

References uiBut::dragpoin, uiBut::dragtype, and WM_DRAG_NAME.

void uiButSetDragPath ( uiBut *  but,
const char *  path 
)

Definition at line 3173 of file interface.c.

References uiBut::dragpoin, uiBut::dragtype, and WM_DRAG_PATH.

Referenced by file_draw_icon().

void uiButSetDragRNA ( uiBut *  but,
PointerRNA *  ptr 
)

Definition at line 3167 of file interface.c.

References uiBut::dragpoin, uiBut::dragtype, and WM_DRAG_RNA.

void uiButSetDragValue ( uiBut *  but)

Definition at line 3186 of file interface.c.

References uiBut::dragtype, and WM_DRAG_VALUE.

void uiButSetFlag ( uiBut *  but,
int  flag 
)
void uiButSetFocusOnEnter ( wmWindow *  win,
uiBut *  but 
)
void uiButSetFunc ( uiBut *  but,
uiButHandleFunc  func,
void *  arg1,
void *  arg2 
)
void uiButSetNFunc ( uiBut *  but,
uiButHandleNFunc  funcN,
void *  argN,
void *  arg2 
)
void uiButSetRenameFunc ( uiBut *  but,
uiButHandleRenameFunc  func,
void *  arg1 
)

Definition at line 3254 of file interface.c.

References uiBut::rename_arg1, and uiBut::rename_func.

Referenced by file_draw_list(), and outliner_buttons().

void uiButSetSearchFunc ( uiBut *  but,
uiButSearchFunc  sfunc,
void *  arg,
uiButHandleFunc  bfunc,
void *  active 
)
void uiButSetUnitType ( uiBut *  but,
const int  unit_type 
)

Definition at line 3210 of file interface.c.

References uiBut::unit_type.

Referenced by v3d_editvertex_buts(), and v3d_posearmature_buts().

void uiCenteredBoundsBlock ( uiBlock *  block,
int  addval 
)

Definition at line 449 of file interface.c.

References uiBlock::bounds, uiBlock::dobounds, and UI_BLOCK_BOUNDS_POPUP_CENTER.

Referenced by wm_block_create_splash().

void uiComposeLinks ( uiBlock *  block)
uiBut* uiDefBlockBut ( uiBlock *  block,
uiBlockCreateFunc  func,
void *  arg,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
const char *  tip 
)
uiBut* uiDefBlockButN ( uiBlock *  block,
uiBlockCreateFunc  func,
void *  argN,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
const char *  tip 
)
uiBut* uiDefBut ( uiBlock *  block,
int  type,
int  retval,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
void *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)
static uiBut* uiDefButBit ( uiBlock *  block,
int  type,
int  bit,
int  retval,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
void *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
) [static]

Definition at line 2843 of file interface.c.

References BIT, findBitIndex(), NULL, and uiDefBut().

Referenced by uiDefButBitC(), uiDefButBitF(), uiDefButBitI(), and uiDefButBitS().

uiBut* uiDefButBitC ( uiBlock *  block,
int  type,
int  bit,
int  retval,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
char *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)

Definition at line 2880 of file interface.c.

References CHA, and uiDefButBit().

uiBut* uiDefButBitF ( uiBlock *  block,
int  type,
int  bit,
int  retval,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
float *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)

Definition at line 2856 of file interface.c.

References FLO, and uiDefButBit().

uiBut* uiDefButBitI ( uiBlock *  block,
int  type,
int  bit,
int  retval,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
int *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)
uiBut* uiDefButBitS ( uiBlock *  block,
int  type,
int  bit,
int  retval,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
short *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)
uiBut* uiDefButC ( uiBlock *  block,
int  type,
int  retval,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
char *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)

Definition at line 2876 of file interface.c.

References CHA, and uiDefBut().

Referenced by draw_sensorbuttons(), and uiTemplateHeader3D().

uiBut* uiDefButF ( uiBlock *  block,
int  type,
int  retval,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
float *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)
uiBut* uiDefButI ( uiBlock *  block,
int  type,
int  retval,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
int *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)
uiBut* uiDefButO ( uiBlock *  block,
int  type,
const char *  opname,
int  opcontext,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
const char *  tip 
)
uiBut* uiDefButR ( uiBlock *  block,
int  type,
int  retval,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
PointerRNA *  ptr,
const char *  propname,
int  index,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)
uiBut* uiDefButR_prop ( uiBlock *  block,
int  type,
int  retval,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
PointerRNA *  ptr,
PropertyRNA *  prop,
int  index,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)
uiBut* uiDefButS ( uiBlock *  block,
int  type,
int  retval,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
short *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)
uiBut* uiDefButTextO ( uiBlock *  block,
int  type,
const char *  opname,
int  opcontext,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
void *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)

Definition at line 2906 of file interface.c.

References ui_check_but(), and ui_def_but_operator_text().

Referenced by file_draw_buttons().

uiBut* uiDefHotKeyevtButS ( uiBlock *  block,
int  retval,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
short *  keypoin,
short *  modkeypoin,
const char *  tip 
)

Definition at line 3413 of file interface.c.

References HOTKEYEVT, uiBut::modifier_key, SHO, ui_check_but(), and ui_def_but().

uiBut* uiDefIconBlockBut ( uiBlock *  block,
uiBlockCreateFunc  func,
void *  arg,
int  retval,
int  icon,
int  x1,
int  y1,
short  x2,
short  y2,
const char *  tip 
)
uiBut* uiDefIconBut ( uiBlock *  block,
int  type,
int  retval,
int  icon,
int  x1,
int  y1,
short  x2,
short  y2,
void *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)
static uiBut* uiDefIconButBit ( uiBlock *  block,
int  type,
int  bit,
int  retval,
int  icon,
int  x1,
int  y1,
short  x2,
short  y2,
void *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
) [static]
uiBut* uiDefIconButBitC ( uiBlock *  block,
int  type,
int  bit,
int  retval,
int  icon,
int  x1,
int  y1,
short  x2,
short  y2,
char *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)

Definition at line 2958 of file interface.c.

References CHA, and uiDefIconButBit().

Referenced by buttons_context_draw(), draw_setting_widget(), and uiTemplateHeader3D().

uiBut* uiDefIconButBitF ( uiBlock *  block,
int  type,
int  bit,
int  retval,
int  icon,
int  x1,
int  y1,
short  x2,
short  y2,
float *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)

Definition at line 2934 of file interface.c.

References FLO, and uiDefIconButBit().

uiBut* uiDefIconButBitI ( uiBlock *  block,
int  type,
int  bit,
int  retval,
int  icon,
int  x1,
int  y1,
short  x2,
short  y2,
int *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)

Definition at line 2942 of file interface.c.

References INT, and uiDefIconButBit().

Referenced by draw_modifier(), draw_setting_widget(), and outliner_draw_restrictbuts().

uiBut* uiDefIconButBitS ( uiBlock *  block,
int  type,
int  bit,
int  retval,
int  icon,
int  x1,
int  y1,
short  x2,
short  y2,
short *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)
uiBut* uiDefIconButC ( uiBlock *  block,
int  type,
int  retval,
int  icon,
int  x1,
int  y1,
short  x2,
short  y2,
char *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)

Definition at line 2954 of file interface.c.

References CHA, and uiDefIconBut().

uiBut* uiDefIconButF ( uiBlock *  block,
int  type,
int  retval,
int  icon,
int  x1,
int  y1,
short  x2,
short  y2,
float *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)

Definition at line 2930 of file interface.c.

References FLO, and uiDefIconBut().

Referenced by ui_block_func_ICONROW(), and uiItemV().

uiBut* uiDefIconButI ( uiBlock *  block,
int  type,
int  retval,
int  icon,
int  x1,
int  y1,
short  x2,
short  y2,
int *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)

Definition at line 2938 of file interface.c.

References INT, and uiDefIconBut().

uiBut* uiDefIconButO ( uiBlock *  block,
int  type,
const char *  opname,
int  opcontext,
int  icon,
int  x1,
int  y1,
short  x2,
short  y2,
const char *  tip 
)
uiBut* uiDefIconButR ( uiBlock *  block,
int  type,
int  retval,
int  icon,
int  x1,
int  y1,
short  x2,
short  y2,
PointerRNA *  ptr,
const char *  propname,
int  index,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)
uiBut* uiDefIconButR_prop ( uiBlock *  block,
int  type,
int  retval,
int  icon,
int  x1,
int  y1,
short  x2,
short  y2,
PointerRNA *  ptr,
PropertyRNA *  prop,
int  index,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)

Definition at line 2969 of file interface.c.

References ui_check_but_and_iconize(), and ui_def_but_rna().

Referenced by ui_item_enum_expand(), uiDefAutoButR(), and uiTemplateList().

uiBut* uiDefIconButS ( uiBlock *  block,
int  type,
int  retval,
int  icon,
int  x1,
int  y1,
short  x2,
short  y2,
short *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)

Definition at line 2946 of file interface.c.

References SHO, and uiDefIconBut().

Referenced by buttons_header_buttons().

uiBut* uiDefIconMenuBut ( uiBlock *  block,
uiMenuCreateFunc  func,
void *  arg,
int  icon,
int  x1,
int  y1,
short  x2,
short  y2,
const char *  tip 
)
uiBut* uiDefIconTextBlockBut ( uiBlock *  block,
uiBlockCreateFunc  func,
void *  arg,
int  icon,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
const char *  tip 
)
uiBut* uiDefIconTextBut ( uiBlock *  block,
int  type,
int  retval,
int  icon,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
void *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)
static uiBut* uiDefIconTextButBit ( uiBlock *  block,
int  type,
int  bit,
int  retval,
int  icon,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
void *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
) [static]
uiBut* uiDefIconTextButBitC ( uiBlock *  block,
int  type,
int  bit,
int  retval,
int  icon,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
char *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)

Definition at line 3030 of file interface.c.

References CHA, and uiDefIconTextButBit().

uiBut* uiDefIconTextButBitF ( uiBlock *  block,
int  type,
int  bit,
int  retval,
int  icon,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
float *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)

Definition at line 3006 of file interface.c.

References FLO, and uiDefIconTextButBit().

uiBut* uiDefIconTextButBitI ( uiBlock *  block,
int  type,
int  bit,
int  retval,
int  icon,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
int *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)

Definition at line 3014 of file interface.c.

References INT, and uiDefIconTextButBit().

uiBut* uiDefIconTextButBitS ( uiBlock *  block,
int  type,
int  bit,
int  retval,
int  icon,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
short *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)

Definition at line 3022 of file interface.c.

References SHO, and uiDefIconTextButBit().

uiBut* uiDefIconTextButC ( uiBlock *  block,
int  type,
int  retval,
int  icon,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
char *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)

Definition at line 3026 of file interface.c.

References CHA, and uiDefIconTextBut().

Referenced by ED_area_header_switchbutton().

uiBut* uiDefIconTextButF ( uiBlock *  block,
int  type,
int  retval,
int  icon,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
float *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)

Definition at line 3002 of file interface.c.

References FLO, and uiDefIconTextBut().

Referenced by ui_block_func_ICONTEXTROW(), ui_block_func_MENUSTR(), and uiItemV().

uiBut* uiDefIconTextButI ( uiBlock *  block,
int  type,
int  retval,
int  icon,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
int *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)

Definition at line 3010 of file interface.c.

References INT, and uiDefIconTextBut().

uiBut* uiDefIconTextButO ( uiBlock *  block,
int  type,
const char *  opname,
int  opcontext,
int  icon,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
const char *  tip 
)

Definition at line 3050 of file interface.c.

References uiBut::flag, ui_check_but_and_iconize(), ui_def_but_operator(), and UI_ICON_LEFT.

Referenced by template_ID(), and uiItemFullO().

uiBut* uiDefIconTextButR ( uiBlock *  block,
int  type,
int  retval,
int  icon,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
PointerRNA *  ptr,
const char *  propname,
int  index,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)
uiBut* uiDefIconTextButR_prop ( uiBlock *  block,
int  type,
int  retval,
int  icon,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
PointerRNA *  ptr,
PropertyRNA *  prop,
int  index,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)
uiBut* uiDefIconTextButS ( uiBlock *  block,
int  type,
int  retval,
int  icon,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
short *  poin,
float  min,
float  max,
float  a1,
float  a2,
const char *  tip 
)

Definition at line 3018 of file interface.c.

References SHO, and uiDefIconTextBut().

Referenced by file_panel_category(), and uiTemplateHeader3D().

uiBut* uiDefIconTextMenuBut ( uiBlock *  block,
uiMenuCreateFunc  func,
void *  arg,
int  icon,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
const char *  tip 
)
uiBut* uiDefIDPoinBut ( uiBlock *  block,
uiIDPoinFuncFP  func,
short  blocktype,
int  retval,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
void *  idpp,
const char *  tip 
)
uiBut* uiDefKeyevtButS ( uiBlock *  block,
int  retval,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
short *  spoin,
const char *  tip 
)

Definition at line 3404 of file interface.c.

References KEYEVT, SHO, ui_check_but(), and ui_def_but().

Referenced by draw_sensorbuttons(), and outliner_draw_keymapbuts().

uiBut* uiDefMenuBut ( uiBlock *  block,
uiMenuCreateFunc  func,
void *  arg,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
const char *  tip 
)

Definition at line 3331 of file interface.c.

References uiBut::menu_create_func, PULLDOWN, ui_check_but(), and ui_def_but().

Referenced by ui_item_menu().

uiBut* uiDefPulldownBut ( uiBlock *  block,
uiBlockCreateFunc  func,
void *  arg,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
const char *  tip 
)
uiBut* uiDefSearchBut ( uiBlock *  block,
void *  arg,
int  retval,
int  icon,
int  maxlen,
int  x1,
int  y1,
short  x2,
short  y2,
float  a1,
float  a2,
const char *  tip 
)
void uiDrawBlock ( const bContext *  C,
uiBlock *  block 
)
void uiEndBlock ( const bContext *  C,
uiBlock *  block 
)
uiBut* uiFindInlink ( uiBlock *  block,
void *  poin 
)

Definition at line 1061 of file interface.c.

References ui_find_inlink().

Referenced by is_sensor_linked().

void uiFreeBlock ( const bContext *  C,
uiBlock *  block 
)
void uiFreeBlocks ( const bContext *  C,
ListBase *  lb 
)

Definition at line 1897 of file interface.c.

References BLI_remlink(), ListBase::first, and uiFreeBlock().

void uiFreeInactiveBlocks ( const bContext *  C,
ListBase *  lb 
)
uiBlock* uiGetBlock ( const char *  name,
ARegion *  ar 
)

Definition at line 1991 of file interface.c.

References BLI_findstring(), and ARegion::uiblocks.

void uiMenuPopupBoundsBlock ( uiBlock *  block,
int  addval,
int  mx,
int  my 
)
void uiPopupBoundsBlock ( uiBlock *  block,
int  addval,
int  mx,
int  my 
)
void uiSetButLink ( uiBut *  but,
void **  poin,
void ***  ppoin,
short *  tot,
int  from,
int  to 
)
void uiTextBoundsBlock ( uiBlock *  block,
int  addval 
)