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

interface_intern.h File Reference

#include "UI_resources.h"
#include "RNA_types.h"

Go to the source code of this file.

Classes

struct  uiLinkLine
struct  uiLink
struct  uiBut
struct  uiBlock
struct  uiSafetyRct
struct  uiPopupBlockHandle

Defines

#define UI_PANEL_MINX   100
#define UI_PANEL_MINY   70
#define UI_SELECT   1
#define UI_SCROLLED   2
#define UI_ACTIVE   4
#define UI_HAS_ICON   8
#define UI_TEXTINPUT   16
#define UI_HIDDEN   32
#define PNL_GRID   (UI_UNIT_Y / 5)
#define PNL_HEADER   (UI_UNIT_Y + 4)
#define PNL_SELECT   1
#define PNL_CLOSEDX   2
#define PNL_CLOSEDY   4
#define PNL_CLOSED   6
#define PNL_OVERLAP   16
#define EXTEND_LEFT   1
#define EXTEND_RIGHT   2
#define SCOPE_RESIZE_PAD   9
#define UI_TRANSP_DARK   100
#define UI_TRANSP_LIGHT   160

Typedefs

typedef struct uiLinkLine uiLinkLine
typedef struct uiSafetyRct uiSafetyRct
typedef uiBlock *(* uiBlockHandleCreateFunc )(struct bContext *C, struct uiPopupBlockHandle *handle, void *arg1)

Enumerations

enum  uiWidgetTypeEnum {
  UI_WTYPE_REGULAR, UI_WTYPE_LABEL, UI_WTYPE_TOGGLE, UI_WTYPE_OPTION,
  UI_WTYPE_RADIO, UI_WTYPE_NUMBER, UI_WTYPE_SLIDER, UI_WTYPE_EXEC,
  UI_WTYPE_NAME, UI_WTYPE_NAME_LINK, UI_WTYPE_POINTER_LINK, UI_WTYPE_FILENAME,
  UI_WTYPE_MENU_RADIO, UI_WTYPE_MENU_ICON_RADIO, UI_WTYPE_MENU_POINTER_LINK, UI_WTYPE_MENU_NODE_LINK,
  UI_WTYPE_PULLDOWN, UI_WTYPE_MENU_ITEM, UI_WTYPE_MENU_BACK, UI_WTYPE_ICON,
  UI_WTYPE_SWATCH, UI_WTYPE_RGB_PICKER, UI_WTYPE_NORMAL, UI_WTYPE_BOX,
  UI_WTYPE_SCROLL, UI_WTYPE_LISTITEM, UI_WTYPE_PROGRESSBAR
}

Functions

void ui_delete_linkline (uiLinkLine *line, uiBut *but)
void ui_fontscale (short *points, float aspect)
void ui_block_to_window_fl (const struct ARegion *ar, uiBlock *block, float *x, float *y)
void ui_block_to_window (const struct ARegion *ar, uiBlock *block, int *x, int *y)
void ui_block_to_window_rct (const struct ARegion *ar, uiBlock *block, rctf *graph, rcti *winr)
void ui_window_to_block_fl (const struct ARegion *ar, uiBlock *block, float *x, float *y)
void ui_window_to_block (const struct ARegion *ar, uiBlock *block, int *x, int *y)
void ui_window_to_region (const ARegion *ar, int *x, int *y)
double ui_get_but_val (uiBut *but)
void ui_set_but_val (uiBut *but, double value)
void ui_set_but_hsv (uiBut *but)
void ui_get_but_vectorf (uiBut *but, float vec[3])
void ui_set_but_vectorf (uiBut *but, const float vec[3])
void ui_hsvcircle_vals_from_pos (float *valrad, float *valdist, rcti *rect, float mx, float my)
void ui_get_but_string (uiBut *but, char *str, size_t maxlen)
void ui_convert_to_unit_alt_name (uiBut *but, char *str, size_t maxlen)
int ui_set_but_string (struct bContext *C, uiBut *but, const char *str)
int ui_get_but_string_max_length (uiBut *but)
void ui_set_but_default (struct bContext *C, short all)
void ui_set_but_soft_range (uiBut *but, double value)
void ui_check_but (uiBut *but)
int ui_is_but_float (uiBut *but)
int ui_is_but_unit (uiBut *but)
int ui_is_but_rna_valid (uiBut *but)
int ui_is_but_utf8 (uiBut *but)
void ui_bounds_block (uiBlock *block)
void ui_block_translate (uiBlock *block, int x, int y)
void ui_block_do_align (uiBlock *block)
uiBlockui_block_func_COL (struct bContext *C, uiPopupBlockHandle *handle, void *arg_but)
void ui_block_func_ICONROW (struct bContext *C, uiLayout *layout, void *arg_but)
void ui_block_func_ICONTEXTROW (struct bContext *C, uiLayout *layout, void *arg_but)
struct ARegionui_tooltip_create (struct bContext *C, struct ARegion *butregion, uiBut *but)
void ui_tooltip_free (struct bContext *C, struct ARegion *ar)
uiButui_popup_menu_memory (struct uiBlock *block, struct uiBut *but)
float * ui_block_hsv_get (struct uiBlock *block)
void ui_popup_block_scrolltest (struct uiBlock *block)
ARegionui_searchbox_create (struct bContext *C, struct ARegion *butregion, uiBut *but)
int ui_searchbox_inside (struct ARegion *ar, int x, int y)
void ui_searchbox_update (struct bContext *C, struct ARegion *ar, uiBut *but, int reset)
void ui_searchbox_autocomplete (struct bContext *C, struct ARegion *ar, uiBut *but, char *str)
void ui_searchbox_event (struct bContext *C, struct ARegion *ar, uiBut *but, struct wmEvent *event)
void ui_searchbox_apply (uiBut *but, struct ARegion *ar)
void ui_searchbox_free (struct bContext *C, struct ARegion *ar)
void ui_but_search_test (uiBut *but)
uiPopupBlockHandleui_popup_block_create (struct bContext *C, struct ARegion *butregion, uiBut *but, uiBlockCreateFunc create_func, uiBlockHandleCreateFunc handle_create_func, void *arg)
uiPopupBlockHandleui_popup_menu_create (struct bContext *C, struct ARegion *butregion, uiBut *but, uiMenuCreateFunc create_func, void *arg, char *str)
void ui_popup_block_free (struct bContext *C, uiPopupBlockHandle *handle)
void ui_set_name_menu (uiBut *but, int value)
int ui_step_name_menu (uiBut *but, int step)
int ui_handler_panel_region (struct bContext *C, struct wmEvent *event)
void ui_draw_aligned_panel (struct uiStyle *style, uiBlock *block, rcti *rect)
void ui_dropshadow (rctf *rct, float radius, float aspect, int select)
void ui_draw_gradient (rcti *rect, const float hsv[3], int type, float alpha)
void ui_draw_but_HISTOGRAM (ARegion *ar, uiBut *but, struct uiWidgetColors *wcol, rcti *rect)
void ui_draw_but_WAVEFORM (ARegion *ar, uiBut *but, struct uiWidgetColors *wcol, rcti *rect)
void ui_draw_but_VECTORSCOPE (ARegion *ar, uiBut *but, struct uiWidgetColors *wcol, rcti *rect)
void ui_draw_but_COLORBAND (uiBut *but, struct uiWidgetColors *wcol, rcti *rect)
void ui_draw_but_NORMAL (uiBut *but, struct uiWidgetColors *wcol, rcti *rect)
void ui_draw_but_CURVE (ARegion *ar, uiBut *but, struct uiWidgetColors *wcol, rcti *rect)
void ui_draw_but_IMAGE (ARegion *ar, uiBut *but, struct uiWidgetColors *wcol, rcti *rect)
void ui_draw_but_TRACKPREVIEW (ARegion *ar, uiBut *but, struct uiWidgetColors *wcol, rcti *rect)
void ui_button_activate_do (struct bContext *C, struct ARegion *ar, uiBut *but)
void ui_button_active_free (const struct bContext *C, uiBut *but)
int ui_button_is_active (struct ARegion *ar)
void ui_draw_anti_tria (float x1, float y1, float x2, float y2, float x3, float y3)
void ui_draw_anti_roundbox (int mode, float minx, float miny, float maxx, float maxy, float rad)
void ui_draw_menu_back (struct uiStyle *style, uiBlock *block, rcti *rect)
void ui_draw_search_back (struct uiStyle *style, uiBlock *block, rcti *rect)
int ui_link_bezier_points (rcti *rect, float coord_array[][2], int resol)
void ui_draw_link_bezier (rcti *rect)
void ui_draw_but (const struct bContext *C, ARegion *ar, struct uiStyle *style, uiBut *but, rcti *rect)
void ui_widget_color_init (struct ThemeUI *tui)
void ui_draw_menu_item (struct uiFontStyle *fstyle, rcti *rect, const char *name, int iconid, int state)
void ui_draw_preview_item (struct uiFontStyle *fstyle, rcti *rect, const char *name, int iconid, int state)
void uiStyleInit (void)
int ui_id_icon_get (struct bContext *C, struct ID *id, int preview)
void init_userdef_do_versions (void)
void ui_theme_init_default (void)
void ui_resources_init (void)
void ui_resources_free (void)
void ui_layout_add_but (uiLayout *layout, uiBut *but)
int ui_but_can_align (uiBut *but)
void ui_but_add_search (uiBut *but, PointerRNA *ptr, PropertyRNA *prop, PointerRNA *searchptr, PropertyRNA *searchprop)
void ui_but_anim_flag (uiBut *but, float cfra)
void ui_but_anim_insert_keyframe (struct bContext *C)
void ui_but_anim_delete_keyframe (struct bContext *C)
void ui_but_anim_add_driver (struct bContext *C)
void ui_but_anim_remove_driver (struct bContext *C)
void ui_but_anim_copy_driver (struct bContext *C)
void ui_but_anim_paste_driver (struct bContext *C)
void ui_but_anim_add_keyingset (struct bContext *C)
void ui_but_anim_remove_keyingset (struct bContext *C)
int ui_but_anim_expression_get (uiBut *but, char *str, size_t maxlen)
int ui_but_anim_expression_set (uiBut *but, const char *str)
int ui_but_anim_expression_create (uiBut *but, const char *str)
void ui_but_anim_autokey (struct bContext *C, uiBut *but, struct Scene *scene, float cfra)

Variables

unsigned char checker_stipple_sml []

Detailed Description

Definition in file interface_intern.h.


Define Documentation

#define EXTEND_LEFT   1

Definition at line 127 of file interface_intern.h.

Referenced by ui_textedit_move(), and ui_textedit_set_cursor_select().

#define EXTEND_RIGHT   2

Definition at line 128 of file interface_intern.h.

Referenced by ui_textedit_move(), and ui_textedit_set_cursor_select().

#define PNL_CLOSED   6
#define PNL_CLOSEDX   2
#define PNL_CLOSEDY   4
#define PNL_GRID   (UI_UNIT_Y / 5)

Definition at line 114 of file interface_intern.h.

Referenced by ui_do_drag().

#define PNL_HEADER   (UI_UNIT_Y + 4)
#define PNL_OVERLAP   16

Definition at line 123 of file interface_intern.h.

Referenced by check_panel_overlap().

#define PNL_SELECT   1
#define SCOPE_RESIZE_PAD   9
#define UI_ACTIVE   4
#define UI_HAS_ICON   8
#define UI_HIDDEN   32
#define UI_PANEL_MINX   100

Definition at line 101 of file interface_intern.h.

Referenced by ui_do_drag().

#define UI_PANEL_MINY   70

Definition at line 102 of file interface_intern.h.

Referenced by ui_do_drag().

#define UI_SCROLLED   2
#define UI_SELECT   1
#define UI_TEXTINPUT   16

Definition at line 109 of file interface_intern.h.

Referenced by ui_draw_but(), widget_numbut(), and widget_numslider().

#define UI_TRANSP_DARK   100

Definition at line 481 of file interface_intern.h.

Referenced by ui_draw_but_COLORBAND(), and widgetbase_draw().

#define UI_TRANSP_LIGHT   160

Definition at line 482 of file interface_intern.h.

Referenced by ui_draw_but_COLORBAND(), and widgetbase_draw().


Typedef Documentation

typedef uiBlock*(* uiBlockHandleCreateFunc)(struct bContext *C, struct uiPopupBlockHandle *handle, void *arg1)

Definition at line 426 of file interface_intern.h.

typedef struct uiLinkLine uiLinkLine
typedef struct uiSafetyRct uiSafetyRct

Enumeration Type Documentation

Enumerator:
UI_WTYPE_REGULAR 
UI_WTYPE_LABEL 
UI_WTYPE_TOGGLE 
UI_WTYPE_OPTION 
UI_WTYPE_RADIO 
UI_WTYPE_NUMBER 
UI_WTYPE_SLIDER 
UI_WTYPE_EXEC 
UI_WTYPE_NAME 
UI_WTYPE_NAME_LINK 
UI_WTYPE_POINTER_LINK 
UI_WTYPE_FILENAME 
UI_WTYPE_MENU_RADIO 
UI_WTYPE_MENU_ICON_RADIO 
UI_WTYPE_MENU_POINTER_LINK 
UI_WTYPE_MENU_NODE_LINK 
UI_WTYPE_PULLDOWN 
UI_WTYPE_MENU_ITEM 
UI_WTYPE_MENU_BACK 
UI_WTYPE_ICON 
UI_WTYPE_SWATCH 
UI_WTYPE_RGB_PICKER 
UI_WTYPE_NORMAL 
UI_WTYPE_BOX 
UI_WTYPE_SCROLL 
UI_WTYPE_LISTITEM 
UI_WTYPE_PROGRESSBAR 

Definition at line 59 of file interface_intern.h.


Function Documentation

void init_userdef_do_versions ( void  )

Definition at line 1132 of file resources.c.

References ThemeSpace::act_marker, ThemeSpace::act_spline, UserDef::addons, UserDef::anim_player_preset, UserDef::anisotropic_filter, ThemeSpace::audio, UserDef::audiochannels, UserDef::audiodevice, UserDef::audioformat, UserDef::audiorate, UserDef::autokey_flag, AUTOKEY_FLAG_ONLYKEYINGSET, UserDef::autokey_mode, ThemeSpace::back, BEZT_IPO_BEZ, BLI_addtail(), BLI_findstring(), BLI_strncpy(), BLI_system_temporary_dir(), ThemeSpace::bone_pose, ThemeSpace::bone_solid, ThemeSpace::bundle_solid, ThemeSpace::camera_path, ThemeSpace::cframe, UserDef::coba_weight, UserDef::dbl_click_time, ThemeSpace::dis_marker, UserDef::dpi, UserDef::dragthreshold, ThemeSpace::ds_channel, ThemeSpace::ds_subchannel, UserDef::dupflag, ThemeSpace::edge_crease, ThemeSpace::edge_seam, ThemeSpace::edge_select, ThemeSpace::edge_sharp, ThemeSpace::editmesh_active, ThemeSpace::effect, ThemeSpace::extra_edge_len, ThemeSpace::extra_face_angle, ThemeSpace::extra_face_area, ThemeSpace::face_dot, ThemeSpace::facedot_size, ListBase::first, UserDef::flag, UserDef::frameserverport, G, UserDef::gameflags, UserDef::gp_euclideandist, UserDef::gp_manhattendist, ThemeSpace::grid, ThemeSpace::group, ThemeSpace::group_active, ThemeSpace::handle_align, ThemeSpace::handle_auto, ThemeSpace::handle_auto_clamped, ThemeSpace::handle_free, ThemeSpace::handle_sel_align, ThemeSpace::handle_sel_auto, ThemeSpace::handle_sel_auto_clamped, ThemeSpace::handle_sel_free, ThemeSpace::handle_sel_vect, ThemeSpace::handle_vect, ThemeSpace::handle_vertex, ThemeSpace::handle_vertex_select, ThemeSpace::handle_vertex_size, HD_AUTO, HD_AUTO_ANIM, uiPanelColors::header, ThemeUI::icon_alpha, wmKeyMap::idname, ThemeSpace::image, init_colorband(), UserDef::ipo_new, UserDef::keyhandles_new, ThemeSpace::lamp, ThemeSpace::lastsel_point, ThemeSpace::lock_marker, ThemeSpace::marker, ThemeSpace::marker_outline, MEM_callocN(), UserDef::memcachelimit, UserDef::menuthreshold1, UserDef::menuthreshold2, ThemeSpace::meta, UserDef::mixbufsize, module, bAddon::module, ThemeSpace::movie, UserDef::ndof_flag, NDOF_LOCK_HORIZON, UserDef::ndof_sensitivity, NDOF_SHOULD_PAN, NDOF_SHOULD_ROTATE, NDOF_SHOULD_ZOOM, bTheme::next, wmKeyMap::next, ThemeSpace::noodle_curving, ThemeSpace::normal, NULL, UserDef::obcenter_dia, uiWidgetColors::outline, ThemeSpace::outline_width, UserDef::pad_rot_angle, ThemeUI::panel, ThemeSpace::path_after, ThemeSpace::path_before, ThemeSpace::plugin, UserDef::plugtexdir, UserDef::recent_files, UserDef::rvibright, UserDef::rvisize, UserDef::savetime, ThemeSpace::scene, UserDef::scrcastfps, UserDef::scrcastwait, ThemeSpace::sel_marker, SETCOL, SETCOLF, ThemeSpace::shade1, ThemeWireColor::solid, UserDef::sounddir, ThemeSpace::speaker, ThemeSpace::strip, ThemeSpace::strip_select, Main::subversionfile, ThemeSpace::syntaxb, ThemeSpace::syntaxc, ThemeSpace::syntaxl, ThemeSpace::syntaxn, ThemeSpace::syntaxv, bTheme::tact, bTheme::tarm, UserDef::tb_leftmouse, UserDef::tb_rightmouse, bTheme::tclip, UserDef::tempdir, UserDef::texcollectrate, bTheme::text, UserDef::textimeout, UserDef::textudir, UserDef::themes, bTheme::tima, bTheme::tinfo, bTheme::tipo, bTheme::tlogic, bTheme::tnla, bTheme::tnode, ColorBand::tot, ThemeSpace::transition, bTheme::tseq, bTheme::ttime, bTheme::tui, bTheme::tuserpref, bTheme::tv3d, UserDef::tw_handlesize, UserDef::tw_hotspot, UserDef::tw_size, UserDef::tweak_threshold, U, ui_theme_init_boneColorSets(), ui_theme_init_new(), ui_widget_color_init(), UserDef::uiflag, UserDef::undosteps, USER_ADD_EDITMODE, USER_ADD_VIEWALIGNED, USER_CUSTOM_RANGE, USER_DISABLE_VBO, USER_DRAW_AUTOMATIC, USER_DRAW_TRIPLE, USER_DUP_ARM, USER_GLOBALUNDO, UserDef::user_keymaps, USER_LMOUSESELECT, USER_PLAINMENUS, USER_SHOW_ROTVIEWICON, USER_TWOBUTTONMOUSE, UserDef::v2d_min_gridsize, vDM_ColorBand_store(), Main::versionfile, ThemeSpace::vertex, ThemeSpace::vertex_normal, ThemeSpace::vertex_select, ThemeSpace::vertex_size, ThemeUI::wcol_num, ThemeUI::wcol_progress, wcol_progress, UserDef::wheellinescroll, UserDef::widget_unit, and UserDef::wmdrawmethod.

Referenced by UI_init_userdef().

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().

uiBlock* ui_block_func_COL ( struct bContext C,
uiPopupBlockHandle handle,
void *  arg_but 
)
void ui_block_func_ICONROW ( struct bContext C,
uiLayout layout,
void *  arg_but 
)

Referenced by ui_blockopen_begin().

void ui_block_func_ICONTEXTROW ( struct bContext C,
uiLayout layout,
void *  arg_but 
)

Referenced by ui_blockopen_begin().

float* ui_block_hsv_get ( struct uiBlock block)
void ui_block_to_window ( const struct ARegion ar,
uiBlock block,
int *  x,
int *  y 
)
void ui_block_to_window_fl ( const struct ARegion ar,
uiBlock block,
float *  x,
float *  y 
)
void ui_block_to_window_rct ( const struct ARegion ar,
uiBlock block,
rctf graph,
rcti winr 
)
void ui_block_translate ( uiBlock block,
int  x,
int  y 
)
void ui_bounds_block ( uiBlock block)
void ui_but_add_search ( uiBut but,
PointerRNA ptr,
PropertyRNA prop,
PointerRNA searchptr,
PropertyRNA searchprop 
)
void ui_but_anim_add_driver ( struct bContext C)

Definition at line 215 of file interface_anim.c.

References NULL, WM_OP_INVOKE_DEFAULT, and WM_operator_name_call().

Referenced by ui_do_button().

void ui_but_anim_add_keyingset ( struct bContext C)

Definition at line 239 of file interface_anim.c.

References NULL, WM_OP_INVOKE_DEFAULT, and WM_operator_name_call().

Referenced by ui_do_button().

void ui_but_anim_autokey ( struct bContext C,
uiBut but,
struct Scene scene,
float  cfra 
)
void ui_but_anim_copy_driver ( struct bContext C)

Definition at line 227 of file interface_anim.c.

References NULL, WM_OP_INVOKE_DEFAULT, and WM_operator_name_call().

void ui_but_anim_delete_keyframe ( struct bContext C)

Definition at line 209 of file interface_anim.c.

References NULL, WM_OP_INVOKE_DEFAULT, and WM_operator_name_call().

Referenced by ui_do_button().

int ui_but_anim_expression_create ( uiBut but,
const char *  str 
)
int ui_but_anim_expression_get ( uiBut but,
char *  str,
size_t  maxlen 
)
int ui_but_anim_expression_set ( uiBut but,
const char *  str 
)
void ui_but_anim_flag ( uiBut but,
float  cfra 
)
void ui_but_anim_insert_keyframe ( struct bContext C)

Definition at line 203 of file interface_anim.c.

References NULL, WM_OP_INVOKE_DEFAULT, and WM_operator_name_call().

Referenced by ui_do_button().

void ui_but_anim_paste_driver ( struct bContext C)

Definition at line 233 of file interface_anim.c.

References NULL, WM_OP_INVOKE_DEFAULT, and WM_operator_name_call().

void ui_but_anim_remove_driver ( struct bContext C)

Definition at line 221 of file interface_anim.c.

References NULL, WM_OP_INVOKE_DEFAULT, and WM_operator_name_call().

Referenced by ui_do_button().

void ui_but_anim_remove_keyingset ( struct bContext C)

Definition at line 245 of file interface_anim.c.

References NULL, WM_OP_INVOKE_DEFAULT, and WM_operator_name_call().

Referenced by ui_do_button().

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().

void ui_but_search_test ( uiBut but)
void ui_button_activate_do ( struct bContext C,
struct ARegion ar,
uiBut but 
)
void ui_button_active_free ( const struct bContext C,
uiBut but 
)
int ui_button_is_active ( struct ARegion ar)

Definition at line 4948 of file interface_handlers.c.

References NULL, and ui_but_find_activated().

Referenced by ui_handler_panel_region().

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().

void ui_convert_to_unit_alt_name ( uiBut but,
char *  str,
size_t  maxlen 
)
void ui_delete_linkline ( uiLinkLine line,
uiBut but 
)
void ui_draw_aligned_panel ( struct uiStyle style,
uiBlock block,
rcti rect 
)
void ui_draw_anti_roundbox ( int  mode,
float  minx,
float  miny,
float  maxx,
float  maxy,
float  rad 
)

Definition at line 208 of file interface_widgets.c.

References MakeCursor::color, jit, uiDrawBox(), and WIDGET_AA_JITTER.

Referenced by uiRoundBox().

void ui_draw_anti_tria ( float  x1,
float  y1,
float  x2,
float  y2,
float  x3,
float  y3 
)
void ui_draw_but ( const struct bContext C,
ARegion ar,
struct uiStyle style,
uiBut but,
rcti rect 
)

Referenced by uiDrawBlock().

void ui_draw_but_COLORBAND ( uiBut but,
struct uiWidgetColors wcol,
rcti rect 
)
void ui_draw_but_CURVE ( ARegion ar,
uiBut but,
struct uiWidgetColors wcol,
rcti rect 
)
void ui_draw_but_HISTOGRAM ( ARegion ar,
uiBut but,
struct uiWidgetColors wcol,
rcti rect 
)
void ui_draw_but_IMAGE ( ARegion ar,
uiBut but,
struct uiWidgetColors wcol,
rcti rect 
)
void ui_draw_but_NORMAL ( uiBut but,
struct uiWidgetColors wcol,
rcti rect 
)
void ui_draw_but_TRACKPREVIEW ( ARegion ar,
uiBut but,
struct uiWidgetColors wcol,
rcti rect 
)
void ui_draw_but_VECTORSCOPE ( ARegion ar,
uiBut but,
struct uiWidgetColors wcol,
rcti rect 
)
void ui_draw_but_WAVEFORM ( ARegion ar,
uiBut but,
struct uiWidgetColors wcol,
rcti rect 
)
void ui_draw_gradient ( rcti rect,
const float  hsv[3],
int  type,
float  alpha 
)
void ui_draw_link_bezier ( rcti rect)

Definition at line 2190 of file interface_widgets.c.

References LINK_RESOL, and ui_link_bezier_points().

Referenced by ui_draw_linkline(), and widget_link().

void ui_draw_menu_back ( struct uiStyle style,
uiBlock block,
rcti rect 
)
void ui_draw_menu_item ( struct uiFontStyle fstyle,
rcti rect,
const char *  name,
int  iconid,
int  state 
)
void ui_draw_preview_item ( struct uiFontStyle fstyle,
rcti rect,
const char *  name,
int  iconid,
int  state 
)
void ui_draw_search_back ( struct uiStyle style,
uiBlock block,
rcti rect 
)
void ui_dropshadow ( rctf rct,
float  radius,
float  aspect,
int  select 
)
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().

void ui_get_but_string ( uiBut but,
char *  str,
size_t  maxlen 
)
int ui_get_but_string_max_length ( uiBut but)
double ui_get_but_val ( uiBut but)
void ui_get_but_vectorf ( uiBut but,
float  vec[3] 
)
int ui_handler_panel_region ( struct bContext C,
struct wmEvent event 
)
void ui_hsvcircle_vals_from_pos ( float *  valrad,
float *  valdist,
rcti rect,
float  mx,
float  my 
)
int ui_id_icon_get ( struct bContext C,
struct ID id,
int  preview 
)
int ui_is_but_float ( uiBut but)
int ui_is_but_rna_valid ( uiBut but)
int ui_is_but_unit ( uiBut but)
int ui_is_but_utf8 ( uiBut but)
void ui_layout_add_but ( uiLayout layout,
uiBut but 
)
int ui_link_bezier_points ( rcti rect,
float  coord_array[][2],
int  resol 
)
uiPopupBlockHandle* ui_popup_block_create ( struct bContext C,
struct ARegion butregion,
uiBut but,
uiBlockCreateFunc  create_func,
uiBlockHandleCreateFunc  handle_create_func,
void *  arg 
)
void ui_popup_block_free ( struct bContext C,
uiPopupBlockHandle handle 
)
void ui_popup_block_scrolltest ( struct uiBlock block)
uiPopupBlockHandle* ui_popup_menu_create ( struct bContext C,
struct ARegion butregion,
uiBut but,
uiMenuCreateFunc  create_func,
void *  arg,
char *  str 
)
uiBut* ui_popup_menu_memory ( struct uiBlock block,
struct uiBut but 
)
void ui_resources_free ( void  )

Definition at line 72 of file resources.c.

References UI_icons_free().

Referenced by UI_exit().

void ui_resources_init ( void  )

Definition at line 67 of file resources.c.

References UI_icons_init().

Referenced by UI_init().

void ui_searchbox_apply ( uiBut but,
struct ARegion ar 
)
void ui_searchbox_autocomplete ( struct bContext C,
struct ARegion ar,
uiBut but,
char *  str 
)
ARegion* ui_searchbox_create ( struct bContext C,
struct ARegion butregion,
uiBut but 
)
void ui_searchbox_event ( struct bContext C,
struct ARegion ar,
uiBut but,
struct wmEvent event 
)
void ui_searchbox_free ( struct bContext C,
struct ARegion ar 
)

Definition at line 1145 of file interface_regions.c.

References CTX_wm_screen(), and ui_remove_temporary_region().

Referenced by ui_textedit_end().

int ui_searchbox_inside ( struct ARegion ar,
int  x,
int  y 
)
void ui_searchbox_update ( struct bContext C,
struct ARegion ar,
uiBut but,
int  reset 
)
void ui_set_but_default ( struct bContext C,
short  all 
)
void ui_set_but_hsv ( uiBut but)
void ui_set_but_soft_range ( uiBut but,
double  value 
)
int ui_set_but_string ( struct 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] 
)
void ui_set_name_menu ( uiBut but,
int  value 
)
int ui_step_name_menu ( uiBut but,
int  step 
)
void ui_theme_init_default ( void  )

Definition at line 566 of file resources.c.

References ThemeSpace::act_marker, ThemeSpace::act_spline, ThemeSpace::active, ThemeSpace::audio, ThemeSpace::back, BLI_addtail(), ThemeSpace::bone_pose, ThemeSpace::bone_solid, ThemeSpace::bundle_solid, ThemeSpace::button, ThemeSpace::button_text, ThemeSpace::button_text_hi, ThemeSpace::button_title, ThemeSpace::camera_path, ThemeSpace::cframe, ThemeSpace::console_cursor, ThemeSpace::console_error, ThemeSpace::console_info, ThemeSpace::console_input, ThemeSpace::console_output, ThemeSpace::dis_marker, ThemeSpace::ds_channel, ThemeSpace::ds_subchannel, ThemeSpace::edge, ThemeSpace::edge_crease, ThemeSpace::edge_facesel, ThemeSpace::edge_seam, ThemeSpace::edge_select, ThemeSpace::edge_sharp, ThemeSpace::editmesh_active, ThemeSpace::effect, ThemeSpace::extra_edge_len, ThemeSpace::extra_face_angle, ThemeSpace::extra_face_area, ThemeSpace::face, ThemeSpace::face_dot, ThemeSpace::face_select, ThemeSpace::facedot_size, ListBase::first, ThemeSpace::grid, ThemeSpace::group, ThemeSpace::group_active, ThemeSpace::handle_align, ThemeSpace::handle_auto, ThemeSpace::handle_auto_clamped, ThemeSpace::handle_free, ThemeSpace::handle_sel_align, ThemeSpace::handle_sel_auto, ThemeSpace::handle_sel_auto_clamped, ThemeSpace::handle_sel_free, ThemeSpace::handle_sel_vect, ThemeSpace::handle_vect, ThemeSpace::handle_vertex, ThemeSpace::handle_vertex_select, ThemeSpace::handle_vertex_size, ThemeSpace::header, ThemeSpace::header_text, ThemeSpace::header_text_hi, ThemeSpace::hilite, ThemeUI::iconfile, ThemeSpace::image, ThemeSpace::lamp, ThemeSpace::lastsel_point, ThemeSpace::list, ThemeSpace::lock_marker, ThemeSpace::marker, ThemeSpace::marker_outline, MEM_callocN(), ThemeSpace::meta, ThemeSpace::movie, bTheme::name, bTheme::next, ThemeSpace::noodle_curving, ThemeSpace::normal, NULL, ThemeSpace::nurb_sel_uline, ThemeSpace::nurb_sel_vline, ThemeSpace::nurb_uline, ThemeSpace::nurb_vline, ThemeSpace::outline_width, ThemeSpace::panel, ThemeSpace::path_after, ThemeSpace::path_before, ThemeSpace::plugin, ThemeSpace::preview_back, ThemeSpace::scene, ThemeSpace::sel_marker, ThemeSpace::select, SETCOL, SETCOLF, ThemeSpace::shade1, ThemeSpace::shade2, ThemeSpace::speaker, ThemeSpace::strip, ThemeSpace::strip_select, ThemeSpace::syntaxb, ThemeSpace::syntaxc, ThemeSpace::syntaxl, ThemeSpace::syntaxn, ThemeSpace::syntaxv, bTheme::tact, bTheme::tbuts, bTheme::tclip, bTheme::tconsole, ThemeSpace::text, bTheme::text, ThemeSpace::text_hi, bTheme::tfile, UserDef::themes, bTheme::tima, bTheme::tinfo, bTheme::tipo, ThemeSpace::title, bTheme::tlogic, bTheme::tnla, bTheme::tnode, bTheme::toops, ThemeSpace::transform, ThemeSpace::transition, bTheme::tseq, bTheme::ttime, bTheme::tui, bTheme::tuserpref, bTheme::tv3d, U, UI_SetTheme(), ui_theme_init_boneColorSets(), ui_theme_init_new(), ui_widget_color_init(), ThemeSpace::vertex, ThemeSpace::vertex_normal, ThemeSpace::vertex_select, ThemeSpace::vertex_size, and ThemeSpace::wire.

Referenced by reset_default_theme_exec().

struct ARegion* ui_tooltip_create ( struct bContext C,
struct ARegion butregion,
uiBut but 
) [read]

Definition at line 352 of file interface_regions.c.

References uiFontStyle::align, uiBlock::aspect, assert, uiTooltipData::bbox, BLF_height_max(), BLF_width(), BLI_snprintf(), BLI_strncpy(), uiBut::block, uiTooltipData::color, CTX_wm_operator_poll_msg_get(), CTX_wm_operator_poll_msg_set(), CTX_wm_screen(), CTX_wm_window(), View2D::cur, data, PointerRNA::data, EnumPropertyItem::description, ARegionType::draw, ED_region_init(), ED_region_tag_redraw(), ELEM, ELEM3, uiBut::flag, UserDef::flag, uiBlock::flag, ARegionType::free, addon::engine::free(), uiTooltipData::fstyle, uiBut::hardmax, i, PointerRNA::id, wmOperatorType::idname, MenuType::idname, IDPOIN, ID::lib, uiTooltipData::lineh, uiTooltipData::lines, MAX2, MAX_TOOLTIP_LINES, MEM_callocN(), MEM_freeN(), MENU, MENU_SHADOW_BOTTOM, MENU_SHADOW_SIDE, MENU_TOP, mt, Library::name, EnumPropertyItem::name, NULL, Panel::ofsx, Panel::ofsy, uiBut::opcontext, uiBut::opptr, uiBut::optype, uiBlock::panel, PROP_ENUM, PROP_FLOAT, PROP_UNIT_ROTATION, PULLDOWN, ARegion::regiondata, RNA_property_array_check(), RNA_property_description(), RNA_property_enum_items_gettexted(), RNA_property_float_get(), RNA_property_float_get_index(), RNA_property_identifier(), RNA_property_type(), RNA_struct_identifier(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, ROW, SEARCH_MENU, uiTooltipData::spaceh, str, TEX, uiBut::tip, TIP_, TIP_BORDER_X, TIP_BORDER_Y, TIP_MARGIN_Y, uiTooltipData::toth, uiTooltipData::totline, TRUE, PointerRNA::type, ARegion::type, uiBut::type, U, ui_add_temporary_region(), UI_BLOCK_LOOP, ui_but_anim_expression_get(), UI_BUT_DISABLED, UI_BUT_DRIVEN, UI_BUT_NO_TOOLTIP, ui_get_but_string(), ui_get_but_val(), UI_GetStyle(), UI_STYLE_TEXT_CENTER, ui_tooltip_region_draw_cb(), ui_tooltip_region_free_cb(), UI_view2d_to_region_no_clip(), uiButGetMenuType(), uiButGetOperatorPtrRNA(), uiButGetUnitType(), uiFontStyle::uifont_id, uiStyleFontSet(), USER_TOOLTIPS_PYTHON, ARegion::v2d, simple_enum_gen::w, uiStyle::widget, ARegion::winrct, WM_key_event_operator_string(), WM_operator_poll_context(), WM_operator_pystring(), wm_window_get_size(), uiBut::x1, uiBut::x2, rcti::xmax, rctf::xmax, rcti::xmin, rctf::xmin, uiBut::y1, rcti::ymax, and rcti::ymin.

Referenced by ui_handle_button_event().

void ui_tooltip_free ( struct bContext C,
struct ARegion ar 
)

Definition at line 621 of file interface_regions.c.

References CTX_wm_screen(), and ui_remove_temporary_region().

Referenced by button_timers_tooltip_remove().

void ui_widget_color_init ( struct ThemeUI tui)
void ui_window_to_block ( const struct ARegion ar,
uiBlock block,
int *  x,
int *  y 
)
void ui_window_to_block_fl ( const struct 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().

void uiStyleInit ( void  )

Variable Documentation

unsigned char checker_stipple_sml[]