179 msg_sub_value_region_tag_redraw.
owner = region;
180 msg_sub_value_region_tag_redraw.user_data = region;
184 mbus, &workspace->
id, workspace,
WorkSpace, tools, &msg_sub_value_region_tag_redraw);
193 uiItemO(layout,
IFACE_(
"Clear Recent Files List..."), ICON_TRASH,
"WM_OT_clear_recent_files");
219 int undo_step_count = 0;
220 int undo_step_count_all = 0;
222 undo_step_count_all += 1;
226 undo_step_count += 1;
232 const int col_size = 20 + (undo_step_count / 12);
237 int i = undo_step_count_all - 1;
243 if (!(undo_step_count % col_size)) {
251 is_active ? ICON_LAYER_ACTIVE : ICON_NONE,
252 "ED_OT_undo_history",
255 undo_step_count += 1;
278 std::unique_ptr<SpaceType> st = std::make_unique<SpaceType>();
wmWindowManager * CTX_wm_manager(const bContext *C)
void BKE_spacetype_register(std::unique_ptr< SpaceType > st)
void BLI_addhead(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
#define LISTBASE_FOREACH_BACKWARD(type, var, list)
void BLI_addtail(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
#define STRNCPY(dst, src)
#define BLO_write_struct(writer, struct_name, data_ptr)
#define CTX_IFACE_(context, msgid)
#define BLT_I18NCONTEXT_OPERATOR_DEFAULT
#define BLT_I18NCONTEXT_DEFAULT_BPYRNA
#define RGN_ALIGN_ENUM_FROM_MASK(align)
void ED_region_header_init(ARegion *region)
void ED_region_header_draw(const bContext *C, ARegion *region)
void ED_region_tag_redraw(ARegion *region)
void ED_region_do_msg_notify_tag_redraw(bContext *C, wmMsgSubscribeKey *msg_key, wmMsgSubscribeValue *msg_val)
void ED_region_header_layout(const bContext *C, ARegion *region)
Read Guarded memory(de)allocation.
void uiLayoutSetEnabled(uiLayout *layout, bool enabled)
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)
uiLayout * uiLayoutRow(uiLayout *layout, bool align)
void uiItemS(uiLayout *layout)
void uiItemO(uiLayout *layout, const char *name, int icon, const char *opname)
int uiTemplateRecentFiles(uiLayout *layout, int rows)
uiLayout * uiLayoutColumn(uiLayout *layout, bool align)
uiLayout * uiLayoutSplit(uiLayout *layout, float percentage, bool align)
void uiLayoutSetOperatorContext(uiLayout *layout, wmOperatorCallContext opcontext)
void UI_view2d_region_reinit(View2D *v2d, short type, int winx, int winy)
void *(* MEM_callocN)(size_t len, const char *str)
void *(* MEM_dupallocN)(const void *vmemh)
void ED_spacetype_topbar()
static void topbar_init(wmWindowManager *, ScrArea *)
static void recent_files_menu_register()
static SpaceLink * topbar_create(const ScrArea *, const Scene *)
static void topbar_free(SpaceLink *)
static void topbar_keymap(wmKeyConfig *)
static SpaceLink * topbar_duplicate(SpaceLink *sl)
static void topbar_header_listener(const wmRegionListenerParams *params)
static void topbar_space_blend_write(BlendWriter *writer, SpaceLink *sl)
static void undo_history_menu_register()
static void recent_files_menu_draw(const bContext *, Menu *menu)
static void topbar_header_region_init(wmWindowManager *, ARegion *region)
static void undo_history_draw_menu(const bContext *C, Menu *menu)
static void topbar_main_region_init(wmWindowManager *wm, ARegion *region)
static void topbar_header_region_message_subscribe(const wmRegionMessageSubscribeParams *params)
static void topbar_operatortypes()
static void topbar_main_region_listener(const wmRegionListenerParams *params)
void(* message_subscribe)(const wmRegionMessageSubscribeParams *params)
void(* listener)(const wmRegionListenerParams *params)
void(* draw)(const bContext *C, ARegion *region)
void(* layout)(const bContext *C, ARegion *region)
void(* init)(wmWindowManager *wm, ARegion *region)
struct wmKeyConfig * defaultconf
struct UndoStack * undo_stack
wmEventHandler_Keymap * WM_event_add_keymap_handler(ListBase *handlers, wmKeyMap *keymap)
wmKeyMap * WM_keymap_ensure(wmKeyConfig *keyconf, const char *idname, int spaceid, int regionid)
#define WM_msg_subscribe_rna_prop(mbus, id_, data_, type_, prop_, value)