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

interface_layout.c File Reference

#include <limits.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "MEM_guardedalloc.h"
#include "DNA_screen_types.h"
#include "DNA_armature_types.h"
#include "DNA_userdef_types.h"
#include "BLI_listbase.h"
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "BLF_translation.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_idprop.h"
#include "BKE_screen.h"
#include "RNA_access.h"
#include "UI_interface.h"
#include "WM_api.h"
#include "WM_types.h"
#include "interface_intern.h"
#include "BLI_dynstr.h"

Go to the source code of this file.

Classes

struct  uiLayoutRoot
struct  uiItem
struct  uiButtonItem
struct  uiLayout
struct  uiLayoutItemFlow
struct  uiLayoutItemBx
struct  uiLayoutItemSplit
struct  uiLayoutItemRoot
struct  CollItemSearch
struct  MenuItemLevel

Defines

#define RNA_NO_INDEX   -1
#define RNA_ENUM_VALUE   -2
#define EM_SEPR_X   6
#define EM_SEPR_Y   6
#define UI_ITEM_VARY_X   1
#define UI_ITEM_VARY_Y   2

Typedefs

typedef struct uiLayoutRoot uiLayoutRoot
typedef enum uiItemType uiItemType
typedef struct uiItem uiItem
typedef struct uiButtonItem uiButtonItem
typedef struct uiLayoutItemFlow uiLayoutItemFlow
typedef struct uiLayoutItemBx uiLayoutItemBx
typedef struct uiLayoutItemSplit uiLayoutItemSplit
typedef struct uiLayoutItemRoot uiLayoutItemRoot
typedef struct CollItemSearch CollItemSearch
typedef struct MenuItemLevel MenuItemLevel

Enumerations

enum  uiItemType {
  ITEM_BUTTON, ITEM_LAYOUT_ROW, ITEM_LAYOUT_COLUMN, ITEM_LAYOUT_COLUMN_FLOW,
  ITEM_LAYOUT_ROW_FLOW, ITEM_LAYOUT_BOX, ITEM_LAYOUT_ABSOLUTE, ITEM_LAYOUT_SPLIT,
  ITEM_LAYOUT_OVERLAP, ITEM_LAYOUT_ROOT
}

Functions

static const char * ui_item_name_add_colon (const char *name, char namestr[UI_MAX_NAME_STR])
static int ui_item_fit (int item, int pos, int all, int available, int last, int alignment, int *offset)
static int ui_layout_vary_direction (uiLayout *layout)
static int ui_text_icon_width (uiLayout *layout, const char *name, int icon, int compact)
static void ui_item_size (uiItem *item, int *r_w, int *r_h)
static void ui_item_offset (uiItem *item, int *r_x, int *r_y)
static void ui_item_position (uiItem *item, int x, int y, int w, int h)
static int ui_layout_local_dir (uiLayout *layout)
static uiLayoutui_item_local_sublayout (uiLayout *test, uiLayout *layout, int align)
static void ui_layer_but_cb (bContext *C, void *arg_but, void *arg_index)
static void ui_item_array (uiLayout *layout, uiBlock *block, const char *name, int icon, PointerRNA *ptr, PropertyRNA *prop, int len, int x, int y, int w, int UNUSED(h), int expand, int slider, int toggle, int icon_only)
static void ui_item_enum_expand (uiLayout *layout, uiBlock *block, PointerRNA *ptr, PropertyRNA *prop, const char *uiname, int h, int icon_only)
static void ui_keymap_but_cb (bContext *UNUSED(C), void *but_v, void *UNUSED(key_v))
static uiButui_item_with_label (uiLayout *layout, uiBlock *block, const char *name, int icon, PointerRNA *ptr, PropertyRNA *prop, int index, int x, int y, int w, int h, int flag)
void uiFileBrowseContextProperty (const bContext *C, PointerRNA *ptr, PropertyRNA **prop)
static void ui_item_disabled (uiLayout *layout, const char *name)
PointerRNA uiItemFullO (uiLayout *layout, const char *opname, const char *name, int icon, IDProperty *properties, int context, int flag)
static const char * ui_menu_enumpropname (uiLayout *layout, const char *opname, const char *propname, int retval)
void uiItemEnumO (uiLayout *layout, const char *opname, const char *name, int icon, const char *propname, int value)
void uiItemsFullEnumO (uiLayout *layout, const char *opname, const char *propname, IDProperty *properties, int context, int flag)
void uiItemsEnumO (uiLayout *layout, const char *opname, const char *propname)
void uiItemEnumO_value (uiLayout *layout, const char *name, int icon, const char *opname, const char *propname, int value)
void uiItemEnumO_string (uiLayout *layout, const char *name, int icon, const char *opname, const char *propname, const char *value_str)
void uiItemBooleanO (uiLayout *layout, const char *name, int icon, const char *opname, const char *propname, int value)
void uiItemIntO (uiLayout *layout, const char *name, int icon, const char *opname, const char *propname, int value)
void uiItemFloatO (uiLayout *layout, const char *name, int icon, const char *opname, const char *propname, float value)
void uiItemStringO (uiLayout *layout, const char *name, int icon, const char *opname, const char *propname, const char *value)
void uiItemO (uiLayout *layout, const char *name, int icon, const char *opname)
static void ui_item_rna_size (uiLayout *layout, const char *name, int icon, PointerRNA *ptr, PropertyRNA *prop, int index, int icon_only, int *r_w, int *r_h)
void uiItemFullR (uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, int index, int value, int flag, const char *name, int icon)
void uiItemR (uiLayout *layout, PointerRNA *ptr, const char *propname, int flag, const char *name, int icon)
void uiItemEnumR (uiLayout *layout, const char *name, int icon, struct PointerRNA *ptr, const char *propname, int value)
void uiItemEnumR_string (uiLayout *layout, struct PointerRNA *ptr, const char *propname, const char *value, const char *name, int icon)
void uiItemsEnumR (uiLayout *layout, struct PointerRNA *ptr, const char *propname)
static int sort_search_items_list (void *a, void *b)
static void rna_search_cb (const struct bContext *C, void *arg_but, const char *str, uiSearchItems *items)
static void search_id_collection (StructRNA *ptype, PointerRNA *ptr, PropertyRNA **prop)
void ui_but_add_search (uiBut *but, PointerRNA *ptr, PropertyRNA *prop, PointerRNA *searchptr, PropertyRNA *searchprop)
void uiItemPointerR (uiLayout *layout, struct PointerRNA *ptr, const char *propname, struct PointerRNA *searchptr, const char *searchpropname, const char *name, int icon)
static void ui_item_menutype_func (bContext *C, uiLayout *layout, void *arg_mt)
static void ui_item_menu (uiLayout *layout, const char *name, int icon, uiMenuCreateFunc func, void *arg, void *argN, const char *tip)
void uiItemM (uiLayout *layout, bContext *UNUSED(C), const char *menuname, const char *name, int icon)
static uiButuiItemL_ (uiLayout *layout, const char *name, int icon)
void uiItemL (uiLayout *layout, const char *name, int icon)
void uiItemLDrag (uiLayout *layout, PointerRNA *ptr, const char *name, int icon)
void uiItemV (uiLayout *layout, const char *name, int icon, int argval)
void uiItemS (uiLayout *layout)
void uiItemMenuF (uiLayout *layout, const char *name, int icon, uiMenuCreateFunc func, void *arg)
static void menu_item_enum_opname_menu (bContext *UNUSED(C), uiLayout *layout, void *arg)
void uiItemMenuEnumO (uiLayout *layout, const char *opname, const char *propname, const char *name, int icon)
static void menu_item_enum_rna_menu (bContext *UNUSED(C), uiLayout *layout, void *arg)
void uiItemMenuEnumR (uiLayout *layout, struct PointerRNA *ptr, const char *propname, const char *name, int icon)
static void ui_litem_estimate_row (uiLayout *litem)
static int ui_litem_min_width (int itemw)
static void ui_litem_layout_row (uiLayout *litem)
static void ui_litem_estimate_column (uiLayout *litem)
static void ui_litem_layout_column (uiLayout *litem)
static void ui_litem_estimate_root (uiLayout *UNUSED(litem))
static void ui_litem_layout_root (uiLayout *litem)
static void ui_litem_estimate_box (uiLayout *litem)
static void ui_litem_layout_box (uiLayout *litem)
static void ui_litem_estimate_column_flow (uiLayout *litem)
static void ui_litem_layout_column_flow (uiLayout *litem)
static void ui_litem_estimate_absolute (uiLayout *litem)
static void ui_litem_layout_absolute (uiLayout *litem)
static void ui_litem_estimate_split (uiLayout *litem)
static void ui_litem_layout_split (uiLayout *litem)
static void ui_litem_estimate_overlap (uiLayout *litem)
static void ui_litem_layout_overlap (uiLayout *litem)
uiLayoutuiLayoutRow (uiLayout *layout, int align)
uiLayoutuiLayoutColumn (uiLayout *layout, int align)
uiLayoutuiLayoutColumnFlow (uiLayout *layout, int number, int align)
static uiLayoutItemBxui_layout_box (uiLayout *layout, int type)
uiLayoutuiLayoutBox (uiLayout *layout)
uiLayoutuiLayoutListBox (uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, PointerRNA *actptr, PropertyRNA *actprop)
uiLayoutuiLayoutAbsolute (uiLayout *layout, int align)
uiBlockuiLayoutAbsoluteBlock (uiLayout *layout)
uiLayoutuiLayoutOverlap (uiLayout *layout)
uiLayoutuiLayoutSplit (uiLayout *layout, float percentage, int align)
void uiLayoutSetActive (uiLayout *layout, int active)
void uiLayoutSetEnabled (uiLayout *layout, int enabled)
void uiLayoutSetRedAlert (uiLayout *layout, int redalert)
void uiLayoutSetKeepAspect (uiLayout *layout, int keepaspect)
void uiLayoutSetAlignment (uiLayout *layout, int alignment)
void uiLayoutSetScaleX (uiLayout *layout, float scale)
void uiLayoutSetScaleY (uiLayout *layout, float scale)
int uiLayoutGetActive (uiLayout *layout)
int uiLayoutGetEnabled (uiLayout *layout)
int uiLayoutGetRedAlert (uiLayout *layout)
int uiLayoutGetKeepAspect (uiLayout *layout)
int uiLayoutGetAlignment (uiLayout *layout)
int uiLayoutGetWidth (uiLayout *layout)
float uiLayoutGetScaleX (uiLayout *layout)
float uiLayoutGetScaleY (uiLayout *layout)
static void ui_item_scale (uiLayout *litem, float scale[2])
static void ui_item_estimate (uiItem *item)
static void ui_item_align (uiLayout *litem, short nr)
static void ui_item_flag (uiLayout *litem, int flag)
static void ui_item_layout (uiItem *item)
static void ui_layout_end (uiBlock *block, uiLayout *layout, int *x, int *y)
static void ui_layout_free (uiLayout *layout)
uiLayoutuiBlockLayout (uiBlock *block, int dir, int type, int x, int y, int size, int em, uiStyle *style)
uiBlockuiLayoutGetBlock (uiLayout *layout)
int uiLayoutGetOperatorContext (uiLayout *layout)
void uiBlockSetCurLayout (uiBlock *block, uiLayout *layout)
void ui_layout_add_but (uiLayout *layout, uiBut *but)
void uiLayoutSetOperatorContext (uiLayout *layout, int opcontext)
void uiLayoutSetFunc (uiLayout *layout, uiMenuHandleFunc handlefunc, void *argv)
void uiBlockLayoutResolve (uiBlock *block, int *x, int *y)
void uiLayoutSetContextPointer (uiLayout *layout, const char *name, PointerRNA *ptr)
static void ui_intro_button (DynStr *ds, uiButtonItem *bitem)
static void ui_intro_items (DynStr *ds, ListBase *lb)
static void ui_intro_uiLayout (DynStr *ds, uiLayout *layout)
const char * uiLayoutIntrospect (uiLayout *layout)
static void ui_layout_operator_buts__reset_cb (bContext *UNUSED(C), void *op_pt, void *UNUSED(arg_dummy2))
void uiLayoutOperatorButs (const bContext *C, uiLayout *layout, wmOperator *op, int(*check_prop)(struct PointerRNA *, struct PropertyRNA *), const char label_align, const short flag)
MenuTypeuiButGetMenuType (uiBut *but)

Variables

static char * str = NULL

Detailed Description

Definition in file interface_layout.c.


Define Documentation

#define EM_SEPR_X   6

Definition at line 66 of file interface_layout.c.

Referenced by uiItemS().

#define EM_SEPR_Y   6

Definition at line 67 of file interface_layout.c.

Referenced by uiItemS().

#define RNA_ENUM_VALUE   -2

Definition at line 64 of file interface_layout.c.

Referenced by uiItemEnumR(), uiItemEnumR_string(), and uiItemFullR().

#define RNA_NO_INDEX   -1

Definition at line 63 of file interface_layout.c.

Referenced by ui_item_rna_size(), uiItemFullR(), and uiItemR().

#define UI_ITEM_VARY_X   1
#define UI_ITEM_VARY_Y   2

Definition at line 208 of file interface_layout.c.

Referenced by ui_layout_vary_direction().


Typedef Documentation

typedef struct MenuItemLevel MenuItemLevel
typedef struct uiButtonItem uiButtonItem
typedef struct uiItem uiItem
typedef enum uiItemType uiItemType
typedef struct uiLayoutRoot uiLayoutRoot

Enumeration Type Documentation

enum uiItemType
Enumerator:
ITEM_BUTTON 
ITEM_LAYOUT_ROW 
ITEM_LAYOUT_COLUMN 
ITEM_LAYOUT_COLUMN_FLOW 
ITEM_LAYOUT_ROW_FLOW 
ITEM_LAYOUT_BOX 
ITEM_LAYOUT_ABSOLUTE 
ITEM_LAYOUT_SPLIT 
ITEM_LAYOUT_OVERLAP 
ITEM_LAYOUT_ROOT 

Definition at line 89 of file interface_layout.c.


Function Documentation

static void menu_item_enum_opname_menu ( bContext UNUSEDC,
uiLayout layout,
void *  arg 
) [static]
static void menu_item_enum_rna_menu ( bContext UNUSEDC,
uiLayout layout,
void *  arg 
) [static]
static void rna_search_cb ( const struct bContext C,
void *  arg_but,
const char *  str,
uiSearchItems items 
) [static]
static void search_id_collection ( StructRNA ptype,
PointerRNA ptr,
PropertyRNA **  prop 
) [static]
static int sort_search_items_list ( void *  a,
void *  b 
) [static]

Definition at line 1177 of file interface_layout.c.

References BLI_strcasecmp(), and CollItemSearch::name.

Referenced by rna_search_cb().

void ui_but_add_search ( uiBut but,
PointerRNA ptr,
PropertyRNA prop,
PointerRNA searchptr,
PropertyRNA searchprop 
)
static void ui_intro_button ( DynStr ds,
uiButtonItem bitem 
) [static]
static void ui_intro_items ( DynStr ds,
ListBase lb 
) [static]
static void ui_intro_uiLayout ( DynStr ds,
uiLayout layout 
) [static]

Definition at line 2724 of file interface_layout.c.

References uiLayout::items, and ui_intro_items().

Referenced by uiLayoutIntrospect().

static void ui_item_align ( uiLayout litem,
short  nr 
) [static]
static void ui_item_array ( uiLayout layout,
uiBlock block,
const char *  name,
int  icon,
PointerRNA ptr,
PropertyRNA prop,
int  len,
int  x,
int  y,
int  w,
int   UNUSEDh,
int  expand,
int  slider,
int  toggle,
int  icon_only 
) [static]
static void ui_item_disabled ( uiLayout layout,
const char *  name 
) [static]
static void ui_item_enum_expand ( uiLayout layout,
uiBlock block,
PointerRNA ptr,
PropertyRNA prop,
const char *  uiname,
int  h,
int  icon_only 
) [static]
static void ui_item_estimate ( uiItem item) [static]
static int ui_item_fit ( int  item,
int  pos,
int  all,
int  available,
int  last,
int  alignment,
int *  offset 
) [static]

Definition at line 177 of file interface_layout.c.

References UI_LAYOUT_ALIGN_EXPAND.

Referenced by ui_litem_layout_column_flow(), and ui_litem_layout_row().

static void ui_item_flag ( uiLayout litem,
int  flag 
) [static]
static void ui_item_layout ( uiItem item) [static]
static uiLayout* ui_item_local_sublayout ( uiLayout test,
uiLayout layout,
int  align 
) [static]
static void ui_item_menu ( uiLayout layout,
const char *  name,
int  icon,
uiMenuCreateFunc  func,
void *  arg,
void *  argN,
const char *  tip 
) [static]
static void ui_item_menutype_func ( bContext C,
uiLayout layout,
void *  arg_mt 
) [static]

Definition at line 1363 of file interface_layout.c.

References MenuType::draw, Menu::layout, mt, NULL, and Menu::type.

Referenced by uiButGetMenuType(), and uiItemM().

static const char* ui_item_name_add_colon ( const char *  name,
char  namestr[UI_MAX_NAME_STR] 
) [static]

Definition at line 163 of file interface_layout.c.

References BLI_strncpy(), len(), and strlen().

Referenced by uiItemFullR().

static void ui_item_offset ( uiItem item,
int *  r_x,
int *  r_y 
) [static]
static void ui_item_position ( uiItem item,
int  x,
int  y,
int  w,
int  h 
) [static]
static void ui_item_rna_size ( uiLayout layout,
const char *  name,
int  icon,
PointerRNA ptr,
PropertyRNA prop,
int  index,
int  icon_only,
int *  r_w,
int *  r_h 
) [static]
static void ui_item_scale ( uiLayout litem,
float  scale[2] 
) [static]
static void ui_item_size ( uiItem item,
int *  r_w,
int *  r_h 
) [static]
static uiBut* ui_item_with_label ( uiLayout layout,
uiBlock block,
const char *  name,
int  icon,
PointerRNA ptr,
PropertyRNA prop,
int  index,
int  x,
int  y,
int  w,
int  h,
int  flag 
) [static]
static void ui_keymap_but_cb ( bContext UNUSEDC,
void *  but_v,
void *  UNUSEDkey_v 
) [static]
static void ui_layer_but_cb ( bContext C,
void *  arg_but,
void *  arg_index 
) [static]
void ui_layout_add_but ( uiLayout layout,
uiBut but 
)
static uiLayoutItemBx* ui_layout_box ( uiLayout layout,
int  type 
) [static]
static void ui_layout_end ( uiBlock block,
uiLayout layout,
int *  x,
int *  y 
) [static]
static void ui_layout_free ( uiLayout layout) [static]
static int ui_layout_local_dir ( uiLayout layout) [static]
static void ui_layout_operator_buts__reset_cb ( bContext UNUSEDC,
void *  op_pt,
void *  UNUSEDarg_dummy2 
) [static]

Definition at line 2745 of file interface_layout.c.

References WM_operator_properties_reset().

Referenced by uiLayoutOperatorButs().

static int ui_layout_vary_direction ( uiLayout layout) [static]
static void ui_litem_estimate_absolute ( uiLayout litem) [static]
static void ui_litem_estimate_box ( uiLayout litem) [static]
static void ui_litem_estimate_column ( uiLayout litem) [static]
static void ui_litem_estimate_column_flow ( uiLayout litem) [static]
static void ui_litem_estimate_overlap ( uiLayout litem) [static]
static void ui_litem_estimate_root ( uiLayout UNUSEDlitem) [static]

Definition at line 1776 of file interface_layout.c.

Referenced by ui_item_estimate().

static void ui_litem_estimate_row ( uiLayout litem) [static]
static void ui_litem_estimate_split ( uiLayout litem) [static]

Definition at line 2030 of file interface_layout.c.

References ui_litem_estimate_row().

Referenced by ui_item_estimate().

static void ui_litem_layout_absolute ( uiLayout litem) [static]
static void ui_litem_layout_box ( uiLayout litem) [static]
static void ui_litem_layout_column ( uiLayout litem) [static]
static void ui_litem_layout_column_flow ( uiLayout litem) [static]
static void ui_litem_layout_overlap ( uiLayout litem) [static]
static void ui_litem_layout_root ( uiLayout litem) [static]
static void ui_litem_layout_row ( uiLayout litem) [static]
static void ui_litem_layout_split ( uiLayout litem) [static]
static int ui_litem_min_width ( int  itemw) [static]

Definition at line 1621 of file interface_layout.c.

References MIN2, and UI_UNIT_X.

Referenced by ui_litem_layout_row().

static const char* ui_menu_enumpropname ( uiLayout layout,
const char *  opname,
const char *  propname,
int  retval 
) [static]
static int ui_text_icon_width ( uiLayout layout,
const char *  name,
int  icon,
int  compact 
) [static]
uiLayout* uiBlockLayout ( uiBlock block,
int  dir,
int  type,
int  x,
int  y,
int  size,
int  em,
uiStyle style 
)
void uiBlockLayoutResolve ( uiBlock block,
int *  x,
int *  y 
)
void uiBlockSetCurLayout ( uiBlock block,
uiLayout layout 
)
MenuType* uiButGetMenuType ( uiBut but) [read]
void uiFileBrowseContextProperty ( const bContext C,
PointerRNA ptr,
PropertyRNA **  prop 
)
void uiItemBooleanO ( uiLayout layout,
const char *  name,
int  icon,
const char *  opname,
const char *  propname,
int  value 
)
void uiItemEnumO ( uiLayout layout,
const char *  opname,
const char *  name,
int  icon,
const char *  propname,
int  value 
)
void uiItemEnumO_string ( uiLayout layout,
const char *  name,
int  icon,
const char *  opname,
const char *  propname,
const char *  value_str 
)
void uiItemEnumO_value ( uiLayout layout,
const char *  name,
int  icon,
const char *  opname,
const char *  propname,
int  value 
)
void uiItemEnumR ( uiLayout layout,
const char *  name,
int  icon,
struct PointerRNA ptr,
const char *  propname,
int  value 
)
void uiItemEnumR_string ( uiLayout layout,
struct PointerRNA ptr,
const char *  propname,
const char *  value,
const char *  name,
int  icon 
)
void uiItemFloatO ( uiLayout layout,
const char *  name,
int  icon,
const char *  opname,
const char *  propname,
float  value 
)
PointerRNA uiItemFullO ( uiLayout layout,
const char *  opname,
const char *  name,
int  icon,
IDProperty properties,
int  context,
int  flag 
)
void uiItemFullR ( uiLayout layout,
PointerRNA ptr,
PropertyRNA prop,
int  index,
int  value,
int  flag,
const char *  name,
int  icon 
)
void uiItemIntO ( uiLayout layout,
const char *  name,
int  icon,
const char *  opname,
const char *  propname,
int  value 
)
void uiItemL ( uiLayout layout,
const char *  name,
int  icon 
)

Definition at line 1462 of file interface_layout.c.

References uiItemL_().

Referenced by ANIM_uiTemplate_fmodifier_draw(), buttons_context_draw(), clip_panel_operator_redo_operator(), draw_actuator_armature(), draw_actuator_constraint(), draw_actuator_edit_object(), draw_actuator_header(), draw_actuator_motion(), draw_actuator_random(), draw_actuator_shape_action(), draw_actuator_sound(), draw_constraint(), draw_controller_header(), draw_gpencil_panel(), draw_modifier(), draw_modifier__cycles(), draw_modifier__envelope(), draw_sensor_armature(), draw_sensor_header(), draw_sensor_keyboard(), file_panel_bookmarks(), gp_drawui_layer(), graph_panel_drivers(), graph_panel_key_properties(), graph_panel_properties(), list_item_row(), logic_buttons_new(), nla_panel_actclip(), nla_panel_properties(), node_composit_buts_blur(), node_composit_buts_channel_matte(), node_composit_buts_color_spill(), node_composit_buts_dblur(), node_composit_buts_defocus(), node_composit_buts_double_edge_mask(), node_composit_buts_image(), node_composit_buts_vecblur(), node_shader_buts_mapping(), node_sockets_panel(), recent_files_menu_draw(), template_keymap_item_properties(), template_texture_user_menu(), ui_block_func_MENUSTR(), ui_node_draw_input(), ui_node_menu_column(), ui_template_node_link_menu(), uiblock_layer_pass_arrow_buttons(), uiDefAutoButsRNA(), uiItemsEnumR(), uiItemsFullEnumO(), uiLayoutOperatorButs(), uiTemplateAnyID(), uiTemplateImage(), uiTemplateImageSettings(), uiTemplateList(), uiTemplateTextureUser(), v3d_editarmature_buts(), v3d_editmetaball_buts(), v3d_posearmature_buts(), v3d_transform_butsR(), view3d_panel_operator_redo_operator(), wm_block_create_redo(), and wm_block_create_splash().

static uiBut* uiItemL_ ( uiLayout layout,
const char *  name,
int  icon 
) [static]
void uiItemLDrag ( uiLayout layout,
PointerRNA ptr,
const char *  name,
int  icon 
)
void uiItemM ( uiLayout layout,
bContext UNUSEDC,
const char *  menuname,
const char *  name,
int  icon 
)
void uiItemMenuEnumO ( uiLayout layout,
const char *  opname,
const char *  propname,
const char *  name,
int  icon 
)
void uiItemMenuEnumR ( uiLayout layout,
struct PointerRNA ptr,
const char *  propname,
const char *  name,
int  icon 
)
void uiItemMenuF ( uiLayout layout,
const char *  name,
int  icon,
uiMenuCreateFunc  func,
void *  arg 
)

Definition at line 1512 of file interface_layout.c.

References NULL, and ui_item_menu().

Referenced by node_menu_add_foreach_cb(), and poselib_add_menu_invoke().

void uiItemO ( uiLayout layout,
const char *  name,
int  icon,
const char *  opname 
)
void uiItemPointerR ( uiLayout layout,
struct PointerRNA ptr,
const char *  propname,
struct PointerRNA searchptr,
const char *  searchpropname,
const char *  name,
int  icon 
)
void uiItemR ( uiLayout layout,
PointerRNA ptr,
const char *  propname,
int  flag,
const char *  name,
int  icon 
)

Definition at line 1058 of file interface_layout.c.

References RNA_NO_INDEX, RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, ui_item_disabled(), and uiItemFullR().

Referenced by active_node_panel(), ANIM_uiTemplate_fmodifier_draw(), colorband_buttons_large(), colorband_buttons_small(), curvemap_buttons_layout(), draw_actuator_action(), draw_actuator_armature(), draw_actuator_camera(), draw_actuator_constraint(), draw_actuator_edit_object(), draw_actuator_filter_2d(), draw_actuator_game(), draw_actuator_header(), draw_actuator_message(), draw_actuator_motion(), draw_actuator_parent(), draw_actuator_property(), draw_actuator_random(), draw_actuator_scene(), draw_actuator_shape_action(), draw_actuator_sound(), draw_actuator_state(), draw_actuator_steering(), draw_actuator_visibility(), draw_constraint(), draw_controller_expression(), draw_controller_header(), draw_controller_python(), draw_gpencil_panel(), draw_modifier(), draw_modifier__cycles(), draw_modifier__envelope(), draw_modifier__fn_generator(), draw_modifier__limits(), draw_modifier__noise(), draw_modifier__stepped(), draw_sensor_armature(), draw_sensor_collision(), draw_sensor_delay(), draw_sensor_header(), draw_sensor_internal_header(), draw_sensor_joystick(), draw_sensor_keyboard(), draw_sensor_message(), draw_sensor_mouse(), draw_sensor_near(), draw_sensor_property(), draw_sensor_radar(), draw_sensor_random(), draw_sensor_ray(), draw_sensor_touch(), gp_drawui_layer(), graph_panel_drivers(), graph_panel_driverVar__locDiff(), graph_panel_driverVar__transChan(), graph_panel_key_properties(), graph_panel_properties(), graph_panel_view(), list_item_row(), logic_buttons_new(), menu_add_shortcut(), menu_change_shortcut(), nla_panel_actclip(), nla_panel_animdata(), nla_panel_evaluation(), nla_panel_properties(), nla_panel_track(), node_buts_math(), node_buts_mix_rgb(), node_buts_rgb(), node_buts_texture(), node_buts_time(), node_buts_value(), node_common_buts_whileloop(), node_composit_buts_alphaover(), node_composit_buts_bilateralblur(), node_composit_buts_blur(), node_composit_buts_channel_matte(), node_composit_buts_chroma_matte(), node_composit_buts_color_matte(), node_composit_buts_color_spill(), node_composit_buts_colorbalance(), node_composit_buts_colorbalance_but(), node_composit_buts_crop(), node_composit_buts_dblur(), node_composit_buts_defocus(), node_composit_buts_diff_matte(), node_composit_buts_dilateerode(), node_composit_buts_distance_matte(), node_composit_buts_double_edge_mask(), node_composit_buts_file_output(), node_composit_buts_filter(), node_composit_buts_flip(), node_composit_buts_glare(), node_composit_buts_hue_sat(), node_composit_buts_id_mask(), node_composit_buts_image(), node_composit_buts_invert(), node_composit_buts_lensdist(), node_composit_buts_luma_matte(), node_composit_buts_map_uv(), node_composit_buts_map_value(), node_composit_buts_moviedistortion(), node_composit_buts_premulkey(), node_composit_buts_renderlayers(), node_composit_buts_rotate(), node_composit_buts_scale(), node_composit_buts_splitviewer(), node_composit_buts_stabilize2d(), node_composit_buts_tonemap(), node_composit_buts_transform(), node_composit_buts_vecblur(), node_composit_buts_view_levels(), node_composit_buts_ycc(), node_composit_buts_zcombine(), node_shader_buts_attribute(), node_shader_buts_geometry(), node_shader_buts_glossy(), node_shader_buts_mapping(), node_shader_buts_material(), node_shader_buts_tex_gradient(), node_shader_buts_tex_image(), node_shader_buts_tex_magic(), node_shader_buts_tex_musgrave(), node_shader_buts_tex_sky(), node_shader_buts_tex_voronoi(), node_shader_buts_tex_wave(), node_shader_buts_vect_math(), node_texture_buts_bricks(), node_texture_buts_output(), node_texture_buts_proc(), socket_component_menu(), template_keymap_item_properties(), ui_node_draw_input(), uiTemplateHeader3D(), uiTemplateImage(), uiTemplateImageSettings(), uiTemplateMovieClip(), uiTemplatePathBuilder(), uiTemplatePreview(), v3d_editarmature_buts(), v3d_editmetaball_buts(), and v3d_transform_butsR().

void uiItemS ( uiLayout layout)
void uiItemsEnumO ( uiLayout layout,
const char *  opname,
const char *  propname 
)
void uiItemsEnumR ( uiLayout layout,
struct PointerRNA ptr,
const char *  propname 
)
void uiItemsFullEnumO ( uiLayout layout,
const char *  opname,
const char *  propname,
IDProperty properties,
int  context,
int  flag 
)
void uiItemStringO ( uiLayout layout,
const char *  name,
int  icon,
const char *  opname,
const char *  propname,
const char *  value 
)
void uiItemV ( uiLayout layout,
const char *  name,
int  icon,
int  argval 
)
uiLayout* uiLayoutAbsolute ( uiLayout layout,
int  align 
)
uiBlock* uiLayoutAbsoluteBlock ( uiLayout layout)
uiLayout* uiLayoutBox ( uiLayout layout)
uiLayout* uiLayoutColumn ( uiLayout layout,
int  align 
)

Definition at line 2132 of file interface_layout.c.

References uiLayout::active, uiLayout::align, BLI_addtail(), uiLayoutRoot::block, uiStyle::buttonspacey, uiLayout::context, uiLayout::enabled, uiLayout::item, ITEM_LAYOUT_COLUMN, uiLayout::items, MEM_callocN(), uiLayout::root, uiLayout::space, uiLayoutRoot::style, uiItem::type, uiBlockSetCurLayout(), and uiLayout::w.

Referenced by ANIM_uiTemplate_fmodifier_draw(), curvemap_buttons_layout(), draw_actuator_action(), draw_actuator_constraint(), draw_actuator_motion(), draw_actuator_sound(), draw_actuator_steering(), draw_constraint(), draw_gpencil_panel(), draw_modifier(), draw_modifier__cycles(), draw_modifier__envelope(), draw_modifier__fn_generator(), draw_modifier__limits(), draw_modifier__noise(), draw_modifier__stepped(), draw_sensor_joystick(), draw_sensor_keyboard(), file_panel_category(), gp_drawui_layer(), graph_panel_drivers(), graph_panel_driverVar__locDiff(), graph_panel_driverVar__rotDiff(), graph_panel_driverVar__singleProp(), graph_panel_driverVar__transChan(), graph_panel_key_properties(), graph_panel_modifiers(), graph_panel_properties(), graph_panel_view(), logic_buttons_new(), nla_panel_actclip(), nla_panel_evaluation(), nla_panel_modifiers(), nla_panel_properties(), node_buts_rgb(), node_composit_buts_alphaover(), node_composit_buts_bilateralblur(), node_composit_buts_blur(), node_composit_buts_channel_matte(), node_composit_buts_chroma_matte(), node_composit_buts_color_matte(), node_composit_buts_color_spill(), node_composit_buts_colorbalance(), node_composit_buts_crop(), node_composit_buts_dblur(), node_composit_buts_defocus(), node_composit_buts_diff_matte(), node_composit_buts_distance_matte(), node_composit_buts_double_edge_mask(), node_composit_buts_hue_sat(), node_composit_buts_image(), node_composit_buts_invert(), node_composit_buts_lensdist(), node_composit_buts_luma_matte(), node_composit_buts_map_value(), node_composit_buts_renderlayers(), node_composit_buts_splitviewer(), node_composit_buts_tonemap(), node_composit_buts_vecblur(), node_composit_buts_zcombine(), node_shader_buts_geometry(), node_shader_buts_material(), node_texture_buts_bricks(), node_texture_buts_proc(), socket_component_menu(), ui_block_func_MENUSTR(), ui_item_local_sublayout(), ui_node_draw_input(), ui_node_draw_node(), ui_node_menu_column(), ui_template_node_link_menu(), uiDefAutoButsRNA(), uiItemsEnumR(), uiItemsFullEnumO(), uiLayoutOperatorButs(), uiTemplateColorWheel(), uiTemplateImage(), uiTemplateImageSettings(), uiTemplateLayers(), uiTemplateList(), uiTemplateMarker(), uiTemplatePreview(), undo_history_invoke(), v3d_editarmature_buts(), v3d_editmetaball_buts(), v3d_posearmature_buts(), v3d_transform_butsR(), view3d_panel_object(), view3d_panel_tool_shelf(), view3d_panel_vgroup(), wm_block_create_splash(), and wm_block_dialog_create().

uiLayout* uiLayoutColumnFlow ( uiLayout layout,
int  number,
int  align 
)
int uiLayoutGetActive ( uiLayout layout)

Definition at line 2313 of file interface_layout.c.

References uiLayout::active.

int uiLayoutGetAlignment ( uiLayout layout)

Definition at line 2333 of file interface_layout.c.

References uiLayout::alignment.

uiBlock* uiLayoutGetBlock ( uiLayout layout)

Definition at line 2586 of file interface_layout.c.

References uiLayoutRoot::block, and uiLayout::root.

Referenced by active_node_panel(), ANIM_uiTemplate_fmodifier_draw(), buttons_context_draw(), clip_panel_operator_redo(), curvemap_buttons_layout(), draw_constraint(), draw_controller_header(), draw_modifier(), draw_modifier__envelope(), draw_modifier__generator(), file_panel_category(), file_panel_operator(), gp_drawui_layer(), graph_panel_drivers(), graph_panel_key_properties(), graph_panel_modifiers(), graph_panel_properties(), list_item_row(), nla_panel_actclip(), nla_panel_animdata(), nla_panel_evaluation(), nla_panel_modifiers(), nla_panel_properties(), nla_panel_track(), template_ID(), template_texture_user_menu(), ui_block_func_ICONROW(), ui_block_func_ICONTEXTROW(), ui_block_func_MENUSTR(), ui_but_menu(), ui_node_draw_input(), ui_node_menu_column(), ui_template_node_link_menu(), uiblock_layer_pass_arrow_buttons(), uiblock_layer_pass_buttons(), uiItemPointerR(), uiLayoutAbsoluteBlock(), uiLayoutOperatorButs(), uiTemplateColorWheel(), uiTemplateConstraint(), uiTemplateEditModeSelection(), uiTemplateHeader3D(), uiTemplateImage(), uiTemplateKeymapItemProperties(), uiTemplateLayers(), uiTemplateList(), uiTemplateMarker(), uiTemplateModifier(), uiTemplateMovieClip(), uiTemplateNodeLink(), uiTemplateOperatorSearch(), uiTemplatePreview(), uiTemplateReportsBanner(), uiTemplateRunningJobs(), uiTemplateTextureShow(), uiTemplateTextureUser(), view3d_panel_object(), view3d_panel_operator_redo(), view3d_panel_tool_shelf(), and wm_block_dialog_create().

int uiLayoutGetEnabled ( uiLayout layout)

Definition at line 2318 of file interface_layout.c.

References uiLayout::enabled.

int uiLayoutGetKeepAspect ( uiLayout layout)

Definition at line 2328 of file interface_layout.c.

References uiLayout::keepaspect.

int uiLayoutGetOperatorContext ( uiLayout layout)

Definition at line 2591 of file interface_layout.c.

References uiLayoutRoot::opcontext, and uiLayout::root.

int uiLayoutGetRedAlert ( uiLayout layout)

Definition at line 2323 of file interface_layout.c.

References uiLayout::redalert.

float uiLayoutGetScaleX ( uiLayout layout)

Definition at line 2343 of file interface_layout.c.

References uiLayout::scale.

float uiLayoutGetScaleY ( uiLayout layout)

Definition at line 2348 of file interface_layout.c.

References uiLayout::scale.

int uiLayoutGetWidth ( uiLayout layout)

Definition at line 2338 of file interface_layout.c.

References uiLayout::w.

Referenced by curvemap_buttons_layout(), ED_region_header(), and ui_but_menu().

const char* uiLayoutIntrospect ( uiLayout layout)
uiLayout* uiLayoutListBox ( uiLayout layout,
PointerRNA ptr,
PropertyRNA prop,
PointerRNA actptr,
PropertyRNA actprop 
)
void uiLayoutOperatorButs ( const bContext C,
uiLayout layout,
wmOperator op,
int(*)(struct PointerRNA *, struct PropertyRNA *)  check_prop,
const char  label_align,
const short  flag 
)
uiLayout* uiLayoutOverlap ( uiLayout layout)
uiLayout* uiLayoutRow ( uiLayout layout,
int  align 
)

Definition at line 2112 of file interface_layout.c.

References uiLayout::active, uiLayout::align, BLI_addtail(), uiLayoutRoot::block, uiStyle::buttonspacex, uiLayout::context, uiLayout::enabled, uiLayout::item, ITEM_LAYOUT_ROW, uiLayout::items, MEM_callocN(), uiLayout::root, uiLayout::space, uiLayoutRoot::style, uiItem::type, uiBlockSetCurLayout(), and uiLayout::w.

Referenced by ANIM_uiTemplate_fmodifier_draw(), buttons_context_draw(), colorband_buttons_large(), curvemap_buttons_layout(), draw_actuator_action(), draw_actuator_camera(), draw_actuator_constraint(), draw_actuator_edit_object(), draw_actuator_filter_2d(), draw_actuator_header(), draw_actuator_message(), draw_actuator_motion(), draw_actuator_parent(), draw_actuator_property(), draw_actuator_random(), draw_actuator_shape_action(), draw_actuator_sound(), draw_actuator_steering(), draw_actuator_visibility(), draw_constraint(), draw_controller_header(), draw_gpencil_panel(), draw_modifier(), draw_modifier__envelope(), draw_modifier__generator(), draw_sensor_armature(), draw_sensor_collision(), draw_sensor_delay(), draw_sensor_header(), draw_sensor_internal_header(), draw_sensor_joystick(), draw_sensor_keyboard(), draw_sensor_near(), draw_sensor_property(), draw_sensor_radar(), draw_sensor_ray(), file_panel_bookmarks(), file_panel_category(), gp_drawui_layer(), graph_panel_drivers(), graph_panel_driverVar__singleProp(), graph_panel_modifiers(), graph_panel_properties(), list_item_row(), logic_buttons_new(), nla_panel_actclip(), nla_panel_animdata(), nla_panel_evaluation(), nla_panel_modifiers(), nla_panel_properties(), nla_panel_track(), node_buts_mix_rgb(), node_buts_time(), node_composit_buts_blur(), node_composit_buts_channel_matte(), node_composit_buts_color_spill(), node_composit_buts_colorbalance(), node_composit_buts_file_output(), node_composit_buts_renderlayers(), node_composit_buts_splitviewer(), node_shader_buts_mapping(), node_texture_buts_proc(), template_ID(), ui_item_local_sublayout(), ui_item_with_label(), ui_node_draw_input(), ui_template_id(), uiblock_layer_pass_arrow_buttons(), uiblock_layer_pass_buttons(), uiLayoutOperatorButs(), uiTemplateAnyID(), uiTemplateColorWheel(), uiTemplateEditModeSelection(), uiTemplateHeader3D(), uiTemplateImage(), uiTemplateImageSettings(), uiTemplateLayers(), uiTemplateList(), uiTemplateMovieClip(), uiTemplatePathBuilder(), uiTemplatePreview(), and uiTemplateRunningJobs().

void uiLayoutSetActive ( uiLayout layout,
int  active 
)
void uiLayoutSetAlignment ( uiLayout layout,
int  alignment 
)
void uiLayoutSetContextPointer ( uiLayout layout,
const char *  name,
PointerRNA ptr 
)
void uiLayoutSetEnabled ( uiLayout layout,
int  enabled 
)
void uiLayoutSetFunc ( uiLayout layout,
uiMenuHandleFunc  handlefunc,
void *  argv 
)

Definition at line 2622 of file interface_layout.c.

References uiLayoutRoot::argv, uiLayoutRoot::handlefunc, and uiLayout::root.

Referenced by node_add_menu().

void uiLayoutSetKeepAspect ( uiLayout layout,
int  keepaspect 
)

Definition at line 2293 of file interface_layout.c.

References uiLayout::keepaspect.

Referenced by uiTemplatePreview().

void uiLayoutSetOperatorContext ( uiLayout layout,
int  opcontext 
)
void uiLayoutSetRedAlert ( uiLayout layout,
int  redalert 
)

Definition at line 2288 of file interface_layout.c.

References uiLayout::redalert.

Referenced by draw_constraint().

void uiLayoutSetScaleX ( uiLayout layout,
float  scale 
)

Definition at line 2303 of file interface_layout.c.

References uiLayout::scale.

Referenced by uiTemplatePreview().

void uiLayoutSetScaleY ( uiLayout layout,
float  scale 
)

Definition at line 2308 of file interface_layout.c.

References uiLayout::scale.

uiLayout* uiLayoutSplit ( uiLayout layout,
float  percentage,
int  align 
)

Variable Documentation

char* str = NULL [static]

Definition at line 2729 of file interface_layout.c.

Referenced by ui_item_array(), and uiLayoutIntrospect().