|
Blender V4.5
|
#include <ED_screen.hh>
Public Member Functions | |
| WorkspaceStatus (bContext *C) | |
Public Functions | |
| void | item (std::string text, int icon1, int icon2=0) |
| void | item_bool (std::string text, bool inverted, int icon1, int icon2=0) |
| void | range (std::string text, int icon1, int icon2) |
| void | opmodal (std::string text, const wmOperatorType *ot, int propvalue, bool inverted=false) |
Definition at line 469 of file ED_screen.hh.
| WorkspaceStatus::WorkspaceStatus | ( | bContext * | C | ) |
Definition at line 933 of file area.cc.
References BKE_workspace_status_clear(), C, CTX_wm_manager(), CTX_wm_screen(), CTX_wm_window(), CTX_wm_workspace(), ED_area_tag_redraw(), and WM_window_status_area_find().
| void WorkspaceStatus::item | ( | std::string | text, |
| int | icon1, | ||
| int | icon2 = 0 ) |
Add a static status entry and up to two icons.
Example: [LMB][Enter] Confirm
Definition at line 979 of file area.cc.
References ed_workspace_status_icon_item(), and ed_workspace_status_text_item().
Referenced by add_marker_at_click_invoke(), annotation_draw_status_indicators(), blender::ed::transform::apply_shear(), area_join_modal(), area_move_apply_do(), area_move_invoke(), area_move_modal(), area_swap_modal(), button_activate_state(), change_frame_modal(), common_draw_status_header(), decimate_draw_status(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_update_header(), ease_draw_status_header(), ED_slider_status_get(), ED_workspace_status_text(), edbm_inset_update_header(), eyedropper_modal(), fly_draw_status(), blender::ed::sculpt_paint::grease_pencil_fill_status_indicators(), blender::ed::greasepencil::grease_pencil_primitive_status_indicators(), blender::ed::transform::initResize(), blender::ed::transform::initRotation(), blender::ed::transform::initTrackball(), knife_update_header(), loopcut_init(), mesh_bisect_invoke(), pose_slide_draw_status(), poselib_blend_modal(), redraw_timer_exec(), scale_from_neighbor_draw_status_header(), blender::ed::asset::screenshot_preview_modal(), blender::ed::sculpt_paint::filter::sculpt_mesh_update_status_bar(), shear_draw_status_header(), blender::ed::vse::slip_draw_status(), stitch_update_header(), ui_block_open_begin(), UI_popup_block_ex(), UI_popup_block_invoke_ex(), ui_popup_menu_create_from_menutype(), ui_popup_menu_create_impl(), ui_textedit_begin(), blender::ed::object::voxel_size_edit_update_header(), and walk_draw_status().
| void WorkspaceStatus::item_bool | ( | std::string | text, |
| bool | inverted, | ||
| int | icon1, | ||
| int | icon2 = 0 ) |
Add a dynamic status entry with up to two icons that change appearance. Example: [CTRL] Tweak
Definition at line 995 of file area.cc.
References ed_workspace_status_icon_item(), and ed_workspace_status_text_item().
Referenced by blender::ed::transform::apply_shear(), blender::ed::transform::applyEdgeSlide(), area_join_modal(), area_move_apply_do(), area_move_invoke(), area_move_modal(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_update_header(), ED_slider_status_get(), edbm_inset_update_header(), blender::ed::sculpt_paint::grease_pencil_fill_status_indicators(), pose_slide_draw_status(), poselib_blend_modal(), stitch_update_header(), and blender::ed::object::voxel_size_edit_update_header().
| void WorkspaceStatus::opmodal | ( | std::string | text, |
| const wmOperatorType * | ot, | ||
| int | propvalue, | ||
| bool | inverted = false ) |
Add a dynamic status entry for a given property in an operator's keymap. Example: [V] X-Ray
Definition at line 1005 of file area.cc.
References wmKeyMapItem::alt, wmKeyMapItem::ctrl, ed_workspace_status_icon_item(), ed_workspace_status_item(), ed_workspace_status_text_item(), ELEM, wmKeyMapItem::hyper, KM_ANY, KM_MOD_HELD, KM_NOTHING, wmKeyMapItem::oskey, ot, wmKeyMapItem::shift, wmKeyMapItem::type, UI_icon_from_event_type(), wmKeyMapItem::val, WM_keymap_active(), and WM_modalkeymap_find_propvalue().
Referenced by blender::ed::transform::applyEdgeSlide(), edbm_bevel_update_status_text(), eyedropper_modal(), fly_draw_status(), blender::ed::greasepencil::grease_pencil_primitive_status_indicators(), knife_update_header(), point_normals_update_statusbar(), blender::ed::vse::slip_draw_status(), and walk_draw_status().
| void WorkspaceStatus::range | ( | std::string | text, |
| int | icon1, | ||
| int | icon2 ) |
Add a static status entry showing two icons separated by a dash. Example: [A]-[Z] Search
Definition at line 986 of file area.cc.
References ed_workspace_status_item(), ed_workspace_status_space(), and ed_workspace_status_text_item().
Referenced by ui_popup_menu_create_from_menutype().