Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_layout.c
| Show First 20 Lines • Show All 777 Lines • ▼ Show 20 Lines | static void ui_keymap_but_cb(bContext *UNUSED(C), void *but_v, void *UNUSED(key_v)) | ||||
| RNA_boolean_set(&but->rnapoin, "oskey", (but->modifier_key & KM_OSKEY) != 0); | RNA_boolean_set(&but->rnapoin, "oskey", (but->modifier_key & KM_OSKEY) != 0); | ||||
| } | } | ||||
| /** | /** | ||||
| * Create label + button for RNA property | * Create label + button for RNA property | ||||
| * | * | ||||
| * \param w_hint: For varying width layout, this becomes the label width. | * \param w_hint: For varying width layout, this becomes the label width. | ||||
| * Otherwise it's used to fit both items into it. | * Otherwise it's used to fit both items into it. | ||||
| **/ | */ | ||||
| static uiBut *ui_item_with_label( | static uiBut *ui_item_with_label( | ||||
| uiLayout *layout, uiBlock *block, const char *name, int icon, | uiLayout *layout, uiBlock *block, const char *name, int icon, | ||||
| PointerRNA *ptr, PropertyRNA *prop, int index, | PointerRNA *ptr, PropertyRNA *prop, int index, | ||||
| int x, int y, int w_hint, int h, int flag) | int x, int y, int w_hint, int h, int flag) | ||||
| { | { | ||||
| uiLayout *sub; | uiLayout *sub; | ||||
| uiBut *but = NULL; | uiBut *but = NULL; | ||||
| PropertyType type; | PropertyType type; | ||||
| ▲ Show 20 Lines • Show All 3,800 Lines • Show Last 20 Lines | |||||