Blender V2.61 - r43446
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_screen.h"
#include "BKE_idprop.h"
#include "BKE_utildefines.h"
#include "BIF_gl.h"
#include "BLF_api.h"
#include "BLF_translation.h"
#include "UI_interface.h"
#include "IMB_imbuf.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_MENU_KEY_STR_CAT
#define UI_DEF_BUT_RNA_DISABLE(but)

Functions

static void ui_free_but (const bContext *C, uiBut *but)
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)
void uiExplicitBoundsBlock (uiBlock *block, int minx, int miny, int maxx, int maxy)
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 int ui_but_is_rna_undo (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 uiButui_find_inlink (uiBlock *block, void *poin)
static void ui_add_link_line (ListBase *listb, uiBut *but, uiBut *bt)
uiButuiFindInlink (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[3])
void ui_set_but_vectorf (uiBut *but, const float vec[3])
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, size_t 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, size_t 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)
uiBlockuiBeginBlock (const bContext *C, ARegion *region, const char *name, short dt)
uiBlockuiGetBlock (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, short nr)
void ui_block_do_align (uiBlock *block)
static uiButui_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 uiButui_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 uiButui_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 uiButui_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 uiButui_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)
uiButuiDefBut (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)
AutoCompleteautocomplete_begin (const char *startname, size_t 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 uiButuiDefButBit (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)
uiButuiDefButF (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)
uiButuiDefButBitF (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)
uiButuiDefButI (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)
uiButuiDefButBitI (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)
uiButuiDefButS (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)
uiButuiDefButBitS (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)
uiButuiDefButC (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)
uiButuiDefButBitC (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)
uiButuiDefButR (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)
uiButuiDefButR_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)
uiButuiDefButO (uiBlock *block, int type, const char *opname, int opcontext, const char *str, int x1, int y1, short x2, short y2, const char *tip)
uiButuiDefButTextO (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)
uiButuiDefIconBut (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 uiButuiDefIconButBit (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)
uiButuiDefIconButF (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)
uiButuiDefIconButBitF (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)
uiButuiDefIconButI (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)
uiButuiDefIconButBitI (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)
uiButuiDefIconButS (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)
uiButuiDefIconButBitS (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)
uiButuiDefIconButC (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)
uiButuiDefIconButBitC (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)
uiButuiDefIconButR (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)
uiButuiDefIconButR_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)
uiButuiDefIconButO (uiBlock *block, int type, const char *opname, int opcontext, int icon, int x1, int y1, short x2, short y2, const char *tip)
uiButuiDefIconTextBut (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 uiButuiDefIconTextButBit (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)
uiButuiDefIconTextButF (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)
uiButuiDefIconTextButBitF (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)
uiButuiDefIconTextButI (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)
uiButuiDefIconTextButBitI (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)
uiButuiDefIconTextButS (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)
uiButuiDefIconTextButBitS (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)
uiButuiDefIconTextButC (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)
uiButuiDefIconTextButBitC (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)
uiButuiDefIconTextButR (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)
uiButuiDefIconTextButR_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)
uiButuiDefIconTextButO (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)
PointerRNAuiButGetOperatorPtrRNA (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)
uiButuiDefIDPoinBut (uiBlock *block, uiIDPoinFuncFP func, short blocktype, int retval, const char *str, int x1, int y1, short x2, short y2, void *idpp, const char *tip)
uiButuiDefBlockBut (uiBlock *block, uiBlockCreateFunc func, void *arg, const char *str, int x1, int y1, short x2, short y2, const char *tip)
uiButuiDefBlockButN (uiBlock *block, uiBlockCreateFunc func, void *argN, const char *str, int x1, int y1, short x2, short y2, const char *tip)
uiButuiDefPulldownBut (uiBlock *block, uiBlockCreateFunc func, void *arg, const char *str, int x1, int y1, short x2, short y2, const char *tip)
uiButuiDefMenuBut (uiBlock *block, uiMenuCreateFunc func, void *arg, const char *str, int x1, int y1, short x2, short y2, const char *tip)
uiButuiDefIconTextMenuBut (uiBlock *block, uiMenuCreateFunc func, void *arg, int icon, const char *str, int x1, int y1, short x2, short y2, const char *tip)
uiButuiDefIconMenuBut (uiBlock *block, uiMenuCreateFunc func, void *arg, int icon, int x1, int y1, short x2, short y2, const char *tip)
uiButuiDefIconTextBlockBut (uiBlock *block, uiBlockCreateFunc func, void *arg, int icon, const char *str, int x1, int y1, short x2, short y2, const char *tip)
uiButuiDefIconBlockBut (uiBlock *block, uiBlockCreateFunc func, void *arg, int retval, int icon, int x1, int y1, short x2, short y2, const char *tip)
uiButuiDefKeyevtButS (uiBlock *block, int retval, const char *str, int x1, int y1, short x2, short y2, short *spoin, const char *tip)
uiButuiDefHotKeyevtButS (uiBlock *block, int retval, const char *str, int x1, int y1, short x2, short y2, short *keypoin, short *modkeypoin, const char *tip)
uiButuiDefSearchBut (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_reinit_font (void)
void UI_exit (void)

Detailed Description

Definition in file interface.c.


Define Documentation

#define MENU_ITEM_HEIGHT   20

Definition at line 76 of file interface.c.

#define MENU_SEP_HEIGHT   6

Definition at line 77 of file interface.c.

#define MENU_WIDTH   120

Definition at line 75 of file interface.c.

#define PRECISION_FLOAT_MAX   6

Definition at line 79 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 80 of file interface.c.

Referenced by ui_but_float_precision().

#define UI_BUT_VALUE_UNSET   DBL_MAX

Definition at line 83 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 2600 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 84 of file interface.c.

Referenced by ui_check_but(), and ui_is_but_sel().

#define UI_MENU_KEY_STR_CAT
Value:
char *butstr_orig= BLI_strdup(but->str);                                  \
    BLI_snprintf(but->strdata,                                                \
                 sizeof(but->strdata),                                        \
                 "%s|%s",                                                     \
                 butstr_orig, buf);                                           \
    MEM_freeN(butstr_orig);                                                   \
    but->str= but->strdata;                                                   \
    ui_check_but(but);                                                        \

Referenced by ui_menu_block_set_keymaps().


Function Documentation

AutoComplete* autocomplete_begin ( const char *  startname,
size_t  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 2301 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 2840 of file interface.c.

References is_power_of_2_i().

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

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

Definition at line 1836 of file interface.c.

References 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 1823 of file interface.c.

References 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 1121 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 2456 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,
short  nr 
) [static]
void ui_block_to_window ( const ARegion ar,
uiBlock block,
int *  x,
int *  y 
)

Definition at line 119 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 2317 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 450 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 int ui_but_is_rna_undo ( uiBut but) [static]
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 2097 of file interface.c.

References BLI_snprintf(), BLI_strncpy(), 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, strlen(), 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_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,
size_t  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 2486 of file interface.c.

References uiBut::a1, uiBut::a2, uiBut::alignnr, uiBlock::alignnr, uiBut::aspect, BIT, uiBut::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, uiBlock::func, uiBut::func, uiBut::func_arg1, uiBlock::func_arg1, uiBut::func_arg2, uiBlock::func_arg2, uiBlock::func_argN, uiBut::func_argN, uiBlock::funcN, uiBut::funcN, uiBut::hardmax, uiBut::hardmin, HSVSLI, uiBut::icon, uiBut::iconadd, IDPOIN, LABEL, LISTBOX, uiBlock::lock, uiBut::lock, uiBlock::lockstr, uiBut::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, strlen(), TEX, uiBut::tip, uiBut::type, UI_BLOCK_LOOP, UI_BUT_ALIGN, ui_but_can_align(), UI_BUT_DISABLED, UI_BUT_UNDO, UI_editsource_active_but_test(), UI_editsource_enable_check(), 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 3602 of file interface.c.

References ui_resources_free().

Referenced by WM_exit_ext().

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

Definition at line 1107 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 930 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 1927 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,
size_t  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[3] 
)
void UI_init ( void  )

Definition at line 3584 of file interface.c.

References ui_resources_init().

Referenced by WM_init().

void UI_init_userdef ( void  )

Definition at line 3590 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_reinit_font ( void  )

Definition at line 3597 of file interface.c.

References uiStyleInit().

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,
const float  vec[3] 
)
static void ui_text_bounds_block ( uiBlock block,
float  offset 
) [static]
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 189 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 1182 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 3240 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 3245 of file interface.c.

References uiBlock::xofs.

int uiBlocksGetYMin ( ListBase lb)

Definition at line 3180 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 
)
PointerRNA* uiButGetOperatorPtrRNA ( uiBut but) [read]
int uiButGetRetVal ( uiBut but)

Definition at line 3260 of file interface.c.

References uiBut::retval.

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

Definition at line 3394 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 3265 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 3283 of file interface.c.

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

void uiButSetDragPath ( uiBut but,
const char *  path 
)

Definition at line 3277 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 3271 of file interface.c.

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

void uiButSetDragValue ( uiBut but)

Definition at line 3290 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 3364 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 
)
void uiCenteredBoundsBlock ( uiBlock block,
int  addval 
)

Definition at line 431 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 
)

Definition at line 2827 of file interface.c.

References ui_check_but(), and ui_def_but().

Referenced by actuator_menu(), colorband_buttons_large(), colorband_buttons_small(), controller_menu(), controller_state_mask_menu(), curvemap_buttons_layout(), curvemap_clipping_func(), draw_actuatorbuttons(), draw_constraint(), draw_controllerbuttons(), draw_group_socket_name(), draw_modifier(), draw_modifier__envelope(), draw_modifier__generator(), draw_sensorbuttons(), file_draw_buttons(), file_draw_list(), file_draw_preview(), graph_panel_drivers(), id_search_menu(), logic_buttons(), node_draw_basis(), node_draw_hidden(), node_shader_buts_dynamic(), node_socket_button_color(), node_socket_button_label(), object_state_mask_menu(), operator_search_menu(), outliner_buttons(), outliner_draw_keymapbuts(), sensor_menu(), template_ID(), tool_search_menu(), ui_block_func_ICONTEXTROW(), ui_item_array(), ui_item_disabled(), ui_item_with_label(), ui_layout_box(), ui_node_menu_column(), ui_template_node_link_menu(), uiBlockPicker(), uiDefAutoButR(), uiDefButBit(), uiDefButC(), uiDefButF(), uiDefButI(), uiDefButS(), uiItemL_(), uiItemS(), uiPupMenuBegin(), uiTemplateHistogram(), uiTemplateImage(), uiTemplateMarker(), uiTemplateMovieClip(), uiTemplatePreview(), uiTemplateReportsBanner(), uiTemplateRunningJobs(), uiTemplateTrack(), uiTemplateVectorscope(), uiTemplateWaveform(), v3d_editvertex_buts(), v3d_posearmature_buts(), view3d_panel_vgroup(), wm_block_create_splash(), wm_block_dialog_create(), wm_block_search_menu(), and wm_enum_search_menu().

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 2947 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 2984 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 2960 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 2980 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 3010 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 3523 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 3062 of file interface.c.

References CHA, and uiDefIconButBit().

Referenced by buttons_context_draw(), draw_setting_widget(), list_item_row(), 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 3038 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 
)
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 3058 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 3034 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 3042 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 
)
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 3050 of file interface.c.

References SHO, and uiDefIconBut().

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 3134 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 3110 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 3118 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 3126 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 3130 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 3106 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 3114 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 3154 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 3122 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 3514 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 
)
uiBut* uiDefPulldownBut ( uiBlock block,
uiBlockCreateFunc  func,
void *  arg,
const char *  str,
int  x1,
int  y1,
short  x2,
short  y2,
const char *  tip 
)

Definition at line 3433 of file interface.c.

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

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 
)
void uiExplicitBoundsBlock ( uiBlock block,
int  minx,
int  miny,
int  maxx,
int  maxy 
)
uiBut* uiFindInlink ( uiBlock block,
void *  poin 
)

Definition at line 1131 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 1985 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 2087 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 
)