|
Blender V5.0
|
#include <algorithm>#include <cctype>#include <cfloat>#include <cmath>#include <cstdlib>#include <cstring>#include <variant>#include "MEM_guardedalloc.h"#include "DNA_brush_types.h"#include "DNA_curveprofile_types.h"#include "DNA_scene_types.h"#include "DNA_screen_types.h"#include "BLI_array.hh"#include "BLI_array_utils.h"#include "BLI_linklist.h"#include "BLI_listbase.h"#include "BLI_math_geom.h"#include "BLI_rect.h"#include "BLI_sort_utils.h"#include "BLI_string.h"#include "BLI_string_cursor_utf8.h"#include "BLI_string_utf8.h"#include "BLI_time.h"#include "BLI_utildefines.h"#include "BKE_animsys.h"#include "BKE_blender_undo.hh"#include "BKE_brush.hh"#include "BKE_colorband.hh"#include "BKE_colortools.hh"#include "BKE_context.hh"#include "BKE_curveprofile.h"#include "BKE_movieclip.h"#include "BKE_paint.hh"#include "BKE_paint_types.hh"#include "BKE_report.hh"#include "BKE_scene.hh"#include "BKE_screen.hh"#include "BKE_tracking.h"#include "BKE_unit.hh"#include "BLT_translation.hh"#include "GHOST_C-api.h"#include "IMB_colormanagement.hh"#include "ED_screen.hh"#include "ED_undo.hh"#include "UI_abstract_view.hh"#include "UI_interface.hh"#include "UI_interface_c.hh"#include "UI_string_search.hh"#include "BLF_api.hh"#include "interface_intern.hh"#include "RNA_access.hh"#include "RNA_prototypes.hh"#include "CLG_log.h"#include "WM_api.hh"#include "WM_types.hh"#include "wm_event_system.hh"Go to the source code of this file.
Classes | |
| struct | uiBlockInteraction_Handle |
| struct | uiSelectContextElem |
| struct | uiSelectContextStore |
| struct | uiButMultiState |
| struct | uiHandleButtonMulti |
| struct | uiTextEdit |
| struct | uiHandleButtonData |
| struct | uiAfterFunc |
| struct | uiDragToggleHandle |
Macros | |
| #define | CASE_NUM_TO_DIR(n, d) |
Feature Defines | |
These defines allow developers to locally toggle functionality which may be useful for testing (especially conflicts in dragging). Ideally the code would be refactored to support this functionality in a less fragile way. Until then keep these defines. | |
| #define | USE_CONT_MOUSE_CORRECT |
| #define | USE_DRAG_TOGGLE |
| #define | USE_DRAG_MULTINUM |
| #define | USE_ALLSELECT |
| #define | USE_KEYNAV_LIMIT |
| #define | USE_DRAG_POPUP |
Local Defines | |
| #define | UI_MAX_PASSWORD_STR 128 |
| #define | UI_PROP_SCALE_LOG_MIN 0.5e-8f |
| #define | UI_PROP_SCALE_LOG_SNAP_OFFSET 0.03f |
| #define | UI_DRAG_MAP_SOFT_RANGE_PIXEL_MAX 1000 |
Variables | |
| static CLG_LogRef | LOG = {"ui.handler"} |
Button Snap Values | |
| enum | eSnapType { SNAP_OFF = 0 , SNAP_ON , SNAP_ON_SMALL } |
| static enum eSnapType | ui_event_to_snap (const wmEvent *event) |
| static bool | ui_event_is_snap (const wmEvent *event) |
| static void | ui_color_snap_hue (const enum eSnapType snap, float *r_hue) |
| #define BUTTON_AUTO_OPEN_THRESH 0.2 |
Definition at line 208 of file interface_handlers.cc.
Referenced by button_activate_init(), and button_activate_state().
| #define BUTTON_FLASH_DELAY 0.020 |
Definition at line 205 of file interface_handlers.cc.
Referenced by button_activate_state().
| #define BUTTON_KEYNAV_PX_LIMIT 8 |
Pixels to move the cursor to get out of keyboard navigation.
Definition at line 211 of file interface_handlers.cc.
Referenced by ui_mouse_motion_keynav_test().
| #define BUTTON_MOUSE_TOWARDS_THRESH 1.0 |
Definition at line 209 of file interface_handlers.cc.
Referenced by ui_mouse_motion_towards_check().
| #define CASE_NUM_TO_DIR | ( | n, | |
| d ) |
Referenced by ui_pie_handler().
| #define DRAG_MULTINUM_THRESHOLD_DRAG_X (UI_UNIT_Y / 4) |
how far to drag before we check for gesture direction (in pixels), NOTE: half the height of a button is about right...
Definition at line 312 of file interface_handlers.cc.
Referenced by ui_do_button().
| #define DRAG_MULTINUM_THRESHOLD_DRAG_Y (UI_UNIT_Y / 4) |
How far to drag horizontally before we stop checking which buttons the gesture spans (in pixels), locking down the buttons so we can drag freely without worrying about vertical movement.
Definition at line 319 of file interface_handlers.cc.
Referenced by ui_do_button().
| #define DRAG_MULTINUM_THRESHOLD_VERTICAL (0.75f) |
How strict to be when detecting a vertical gesture: [0.5 == sloppy], [0.9 == strict], (unsigned dot-product).
Definition at line 329 of file interface_handlers.cc.
Referenced by ui_do_button().
| #define IS_ALLSELECT_EVENT | ( | event | ) |
Ideally we would only respond to events which are expected to be used for multi button editing (additionally checking if this is a mouse[wheel] or return-key event to avoid the ALT conflict with button array pasting, see #108096, but unfortunately wheel events are not part of win->eventstate with modifiers held down. Instead, the conflict is avoided by specifically filtering out CTRL ALT V in ui_apply_but().
Definition at line 300 of file interface_handlers.cc.
Referenced by ui_apply_but(), ui_block_open_begin(), and ui_textedit_begin().
| #define MENU_SCROLL_INTERVAL 0.1 |
Definition at line 206 of file interface_handlers.cc.
Referenced by ui_handle_menu_event().
| #define MENU_TOWARDS_MARGIN 20 |
Margin around the menu, use to check if we're moving towards this rectangle (in pixels).
Definition at line 214 of file interface_handlers.cc.
Referenced by ui_mouse_motion_towards_check().
| #define MENU_TOWARDS_WIGGLE_ROOM 64 |
Tolerance for closing menus (in pixels).
Definition at line 216 of file interface_handlers.cc.
Referenced by ui_mouse_motion_towards_check().
| #define PIE_MENU_INTERVAL 0.01 |
Definition at line 207 of file interface_handlers.cc.
Referenced by ui_pie_handler().
| #define UI_BUT_IS_SELECT_CONTEXT UI_BUT_NODE_ACTIVE |
just show a tinted color so users know its activated
Definition at line 303 of file interface_handlers.cc.
Referenced by ui_selectcontext_begin(), and ui_selectcontext_end().
| #define UI_DRAG_MAP_SOFT_RANGE_PIXEL_MAX 1000 |
When USER_CONTINUOUS_MOUSE is disabled or tablet input is used, Use this as a maximum soft range for mapping cursor motion to the value. Otherwise min/max of FLT_MAX, #INT_MAX cause small adjustments to jump to large numbers.
This is needed for values such as location & dimensions which don't have a meaningful min/max, Instead of mapping cursor motion to the min/max, map the motion to the click-step.
This value is multiplied by the click step to calculate a range to clamp the soft-range by. See: #68130
Definition at line 158 of file interface_handlers.cc.
Referenced by ui_numedit_begin().
| #define UI_MAX_PASSWORD_STR 128 |
The buffer side used for password strings, where the password is stored internally, but not displayed.
Definition at line 127 of file interface_handlers.cc.
Referenced by ui_but_text_password_hide(), and ui_textedit_set_cursor_pos().
| #define UI_PROP_SCALE_LOG_MIN 0.5e-8f |
This is a lower limit on the soft minimum of the range. Usually the derived lower limit from the visible precision is higher, so this number is the backup minimum.
Logarithmic scale does not work with a minimum value of zero, but we want to support it anyway. It is set to 0.5e... for correct rounding since when the tweaked value is lower than the log minimum (lower limit), it will snap to 0.
Definition at line 139 of file interface_handlers.cc.
Referenced by ui_numedit_begin(), and ui_numedit_but_NUM().
| #define UI_PROP_SCALE_LOG_SNAP_OFFSET 0.03f |
This constant defines an offset for the precision change in snap rounding, when going to higher values. It is set to 0.5 - log10(3) = 0.03 to make the switch at 0.3 values.
Definition at line 145 of file interface_handlers.cc.
Referenced by ui_do_but_NUM(), ui_do_but_SLI(), and ui_numedit_apply_snapf().
| #define USE_ALLSELECT |
Allow dragging/editing all other selected items at once.
Definition at line 106 of file interface_handlers.cc.
| #define USE_ALLSELECT_LAYER_HACK |
Definition at line 264 of file interface_handlers.cc.
| #define USE_CONT_MOUSE_CORRECT |
Place the mouse at the scaled down location when un-grabbing.
Definition at line 98 of file interface_handlers.cc.
| #define USE_DRAG_MULTINUM |
Support dragging multiple number buttons at once.
Definition at line 103 of file interface_handlers.cc.
| #define USE_DRAG_POPUP |
Support dragging popups by their header.
Definition at line 115 of file interface_handlers.cc.
| #define USE_DRAG_TOGGLE |
Support dragging toggle buttons.
Definition at line 100 of file interface_handlers.cc.
| #define USE_KEYNAV_LIMIT |
Check to avoid very small mouse-moves from jumping away from keyboard navigation, while larger mouse motion will override keyboard input, see: #34936.
Definition at line 112 of file interface_handlers.cc.
| anonymous enum |
| Enumerator | |
|---|---|
| UI_TEXTEDIT_PASTE | |
| UI_TEXTEDIT_COPY | |
| UI_TEXTEDIT_CUT | |
Definition at line 3390 of file interface_handlers.cc.
| enum eSnapType |
| Enumerator | |
|---|---|
| SNAP_OFF | |
| SNAP_ON | |
| SNAP_ON_SMALL | |
Definition at line 812 of file interface_handlers.cc.
| enum uiButtonActivateType |
| Enumerator | |
|---|---|
| BUTTON_ACTIVATE_OVER | |
| BUTTON_ACTIVATE | |
| BUTTON_ACTIVATE_APPLY | |
| BUTTON_ACTIVATE_TEXT_EDITING | |
| BUTTON_ACTIVATE_OPEN | |
Definition at line 218 of file interface_handlers.cc.
| enum uiHandleButtonState |
Definition at line 226 of file interface_handlers.cc.
| enum uiMenuScrollType |
| Enumerator | |
|---|---|
| MENU_SCROLL_UP | |
| MENU_SCROLL_DOWN | |
| MENU_SCROLL_TOP | |
| MENU_SCROLL_BOTTOM | |
Definition at line 240 of file interface_handlers.cc.
|
static |
Definition at line 9013 of file interface_handlers.cc.
References uiBut::active, BLI_assert, uiBut::block, uiPopupBlockHandle::butretval, button_activate_state(), BUTTON_STATE_EXIT, uiBlock::buttons, C, CTX_wm_window(), uiBlock::custom_interaction_callbacks, data, ED_region_tag_redraw_no_rebuild(), ED_region_tag_refresh_ui(), uiSelectContextStore::elems, uiBlock::flag, uiBut::flag, Grip, uiBlock::handle, LISTBASE_FOREACH, MEM_freeN(), uiPopupBlockHandle::menuretval, uiSelectContextElem::ptr, uiBut::rnapoin, uiBut::semi_modal_state, uiBlock::tooltipdisabled, uiBut::type, U, ui_apply_but(), ui_apply_but_autokey(), ui_apply_but_undo(), ui_block_interaction_end(), UI_BLOCK_KEEP_OPEN, UI_BLOCK_POPUP_MEMORY, ui_blocks_set_tooltips(), UI_BUT_DRAG_MULTI, ui_but_handle_data_free(), UI_BUT_LAST_ACTIVE, ui_but_update(), ui_but_update_preferences_dirty(), UI_HOVER, ui_multibut_free(), ui_popup_menu_memory_set(), UI_RETURN_CANCEL, UI_RETURN_OK, UI_SELECT, ui_selectcontext_end(), WM_cursor_modal_restore(), and WM_event_add_mousemove().
Referenced by ui_but_active_free(), ui_but_execute_end(), ui_but_list_row_text_activate(), ui_but_pie_button_activate(), ui_but_pie_menu_apply(), ui_do_but_TOG(), ui_handle_button_activate(), ui_handle_button_event(), ui_handle_button_return_submenu(), and ui_handle_menu_event().
|
static |
Definition at line 8914 of file interface_handlers.cc.
References uiBut::active, uiBlock::auto_open, uiBlock::auto_open_last, BLI_assert, BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_time_now_seconds(), uiBut::block, BUTTON_ACTIVATE, BUTTON_ACTIVATE_APPLY, BUTTON_ACTIVATE_OPEN, BUTTON_ACTIVATE_OVER, button_activate_state(), BUTTON_ACTIVATE_TEXT_EDITING, BUTTON_AUTO_OPEN_THRESH, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_INIT, BUTTON_STATE_MENU_OPEN, BUTTON_STATE_TEXT_EDITING, BUTTON_STATE_WAIT_FLASH, C, copy_v2_fl(), CTX_wm_area(), CTX_wm_manager(), CTX_wm_window(), Curve, CurveProfile, data, ELEM, uiBut::flag, FLT_MAX, Grip, Num, wmTooltipState::pass, uiBut::rect, ARegion::runtime, SearchMenu, uiBut::semi_modal_state, bScreen::tool_tip, uiBut::type, ui_but_first(), UI_but_has_quick_tooltip(), ui_but_tooltip_init(), UI_BUT_UPDATE_DELAY, ui_handle_button_activate(), UI_HOVER, ui_numedit_set_active(), ui_region_find_active_but(), WM_cursor_modal_set(), WM_CURSOR_X_MOVE, WM_CURSOR_Y_MOVE, WM_tooltip_immediate_init(), WM_tooltip_time_closed(), and WM_window_get_active_screen().
Referenced by ui_but_activate_event(), ui_but_activate_over(), ui_but_list_row_text_activate(), ui_but_pie_button_activate(), ui_but_pie_menu_apply(), ui_do_but_TOG(), ui_handle_button_activate(), ui_handle_button_event(), and ui_handle_button_over().
|
static |
Definition at line 8708 of file interface_handlers.cc.
References uiBut::active, uiBlock::auto_open, BLI_rcti_rctf_copy(), Block, uiBut::block, bounds(), BUTTON_AUTO_OPEN_THRESH, BUTTON_FLASH_DELAY, button_modal_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_MENU_OPEN, BUTTON_STATE_NUM_EDITING, BUTTON_STATE_TEXT_EDITING, BUTTON_STATE_TEXT_SELECTING, BUTTON_STATE_WAIT_DRAG, BUTTON_STATE_WAIT_FLASH, BUTTON_STATE_WAIT_RELEASE, button_tooltip_timer_reset(), C, CTX_wm_window(), data, ED_region_tag_redraw_no_rebuild(), ED_workspace_status_text(), ELEM, uiBlock::flag, uiBut::flag, FLT_MAX, uiBlock::handle, uiBut::hold_func, HsvCircle, HsvCube, IFACE_, Menu, Popover, uiPopupBlockHandle::popup, Pulldown, uiBut::rect, RPT_INFO, state, status, TIMER, uiBut::type, U, ui_block_interaction_begin_ensure(), UI_BLOCK_LOOP, ui_block_open_begin(), ui_block_open_end(), ui_block_to_window_fl(), ui_block_to_window_rctf(), UI_BUT_DRIVEN, ui_but_is_cursor_warp(), ui_but_is_float(), ui_but_menu_draw_as_popover(), UI_but_paneltype_get(), UI_but_tooltip_timer_remove(), ui_but_update(), ui_handler_region_menu(), ui_numedit_begin(), ui_numedit_end(), UI_SELECT, ui_textedit_begin(), ui_textedit_end(), USER_MENUOPENAUTO, WM_cursor_grab_disable(), WM_cursor_grab_enable(), WM_CURSOR_WRAP_XY, WM_event_add_ui_handler(), WM_event_remove_ui_handler(), WM_event_timer_add(), WM_event_timer_remove(), WM_global_report(), and WM_stereo3d_enabled().
Referenced by button_activate_exit(), button_activate_init(), ui_but_active_string_clear_and_exit(), ui_but_drag_init(), ui_but_extra_operator_icon_apply(), ui_but_paste_colorband(), ui_but_paste_curvemapping(), ui_but_paste_CurveProfile(), ui_but_paste_numeric_value(), ui_but_set_float_array(), ui_but_set_string_interactive(), ui_do_but_ANY_drag_toggle(), ui_do_but_BLOCK(), ui_do_but_BUT(), ui_do_but_COLOR(), ui_do_but_COLORBAND(), ui_do_but_CURVE(), ui_do_but_CURVEPROFILE(), ui_do_but_EXIT(), ui_do_but_GRIP(), ui_do_but_HISTOGRAM(), ui_do_but_HOTKEYEVT(), ui_do_but_HSVCIRCLE(), ui_do_but_HSVCUBE(), ui_do_but_KEYEVT(), ui_do_but_NUM(), ui_do_but_SCROLL(), ui_do_but_SLI(), ui_do_but_TAB(), ui_do_but_TEX(), ui_do_but_textedit(), ui_do_but_textedit_select(), ui_do_but_TOG(), ui_do_but_TRACKPREVIEW(), ui_do_but_UNITVEC(), ui_do_but_VIEW_ITEM(), ui_do_but_WAVEFORM(), ui_handle_button_event(), ui_handle_button_return_submenu(), and ui_handler_region_menu().
|
static |
Definition at line 8697 of file interface_handlers.cc.
References BUTTON_STATE_MENU_OPEN, BUTTON_STATE_NUM_EDITING, BUTTON_STATE_TEXT_EDITING, BUTTON_STATE_TEXT_SELECTING, BUTTON_STATE_WAIT_KEY_EVENT, BUTTON_STATE_WAIT_RELEASE, ELEM, and state.
Referenced by button_activate_state(), ui_handle_menu_event(), ui_handle_region_semi_modal_buttons(), and ui_pie_handler().
Definition at line 8666 of file interface_handlers.cc.
References uiBut::active, uiBut::block, C, CTX_wm_manager(), data, wmTooltipState::pass, wmTooltipState::region, wmWindowManager::runtime, bScreen::tool_tip, uiBlock::tooltipdisabled, U, UI_but_has_quick_tooltip(), ui_but_tooltip_init(), UI_TOOLTIP_DELAY, UI_TOOLTIP_DELAY_QUICK, USER_TOOLTIPS, WM_tooltip_timer_clear(), WM_tooltip_timer_init_ex(), and WM_window_get_active_screen().
Referenced by button_activate_state(), ui_do_but_extra_operator_icon(), and ui_handle_button_event().
Definition at line 6799 of file interface_handlers.cc.
References max, max_fff(), mul_v3_fl(), and v.
Referenced by ui_numedit_but_HSVCUBE().
|
static |
Definition at line 2568 of file interface_handlers.cc.
References BLI_snprintf_utf8_rlen(), i, and output.
Referenced by ui_but_copy_color(), and ui_but_copy_numeric_array().
|
static |
| close_popup | In most cases activating the view item should close the popup it is in (unless #AbstractView::keep_open() was called when building the view), if any. But this should only be done when activating the view item directly, things like clicking nested buttons or calling the context menu should keep the popup open for further interaction. |
Definition at line 5121 of file interface_handlers.cc.
References blender::ui::AbstractViewItem::activate(), C, uiBut::context, CTX_store_set(), ED_region_tag_redraw_no_rebuild(), ED_region_tag_refresh_ui(), UI_popup_menu_close_from_but(), UI_view_item_popup_keep_open(), and uiButViewItem::view_item.
Referenced by ui_do_but_VIEW_ITEM(), and ui_handle_view_item_event().
|
static |
Calls fn for all buttons that are either already semi-modal active or should be made to be because the UI_BUT2_FORCE_SEMI_MODAL_ACTIVE flag is set. During the fn call, the button will appear to be the active button, i.e. ui_region_find_active_but() will return this button.
Definition at line 9622 of file interface_handlers.cc.
References C, LISTBASE_FOREACH, ARegion::runtime, UI_BUT2_FORCE_SEMI_MODAL_ACTIVE, and with_but_active_as_semi_modal().
Referenced by ui_handle_region_semi_modal_buttons().
|
static |
Definition at line 2544 of file interface_handlers.cc.
References RNA_property_array_length(), uiBut::rnapoin, and uiBut::rnaprop.
Referenced by ui_but_copy_color(), ui_but_copy_numeric_array(), ui_but_paste_color(), and ui_but_paste_numeric_array().
|
static |
Definition at line 2590 of file interface_handlers.cc.
References BLI_assert, and v.
Referenced by ui_but_paste_color(), ui_but_paste_normalized_vector(), and ui_but_paste_numeric_array().
|
static |
Helper for ui_do_but_CURVEPROFILE. Used to tell whether to select a control point's handles.
Definition at line 7911 of file interface_handlers.cc.
References ELEM, CurveProfilePoint::flag, CurveProfilePoint::h1, CurveProfilePoint::h2, HD_ALIGN, HD_FREE, PROF_H1_SELECT, PROF_H2_SELECT, and PROF_SELECT.
Referenced by ui_do_but_CURVEPROFILE().
|
static |
Definition at line 895 of file interface_handlers.cc.
References C, wmOperatorType::check, and wmOperator::type.
Referenced by ui_apply_but_funcs_after().
Check if a uiAfterFunc is needed for this button.
Definition at line 905 of file interface_handlers.cc.
References uiBut::apply_func, uiBut::func, uiBut::funcN, uiBlock::handle, uiBlock::handle_func, uiBut::optype, uiPopupBlockHandle::popup_op, uiBut::rename_full_func, uiBut::rename_func, and uiBut::rnaprop.
Referenced by ui_apply_but_func(), and ui_apply_but_TEX().
|
static |
Definition at line 845 of file interface_handlers.cc.
References BLI_addtail(), BLI_assert, uiAfterFunc::next, uiAfterFunc::prev, UIAfterFuncs, and uiAfterFunc::undostr.
Referenced by ui_apply_but_func(), ui_apply_but_undo(), ui_handle_afterfunc_add_operator_ex(), and ui_handle_menu_letter_press_search().
|
static |
Definition at line 801 of file interface_handlers.cc.
References uiAfterFunc::rnapoin, uiAfterFunc::rnaprop, and ui_rna_update_preferences_dirty().
Referenced by ui_apply_but_funcs_after().
|
static |
Definition at line 2290 of file interface_handlers.cc.
References Block, But, ButMenu, ButToggle, C, Checkbox, CheckboxN, Color, ColorBand, copy_v3_v3(), CTX_wm_window(), Curve, CurveProfile, uiBlock::custom_interaction_callbacks, data, Decorator, uiButColorBand::edit_coba, uiButCurveMapping::edit_cumap, uiButCurveProfile::edit_profile, uiBut::editstr, uiBut::editval, uiBut::editvec, wmWindow::eventstate, EVT_VKEY, uiBut::flag, Grip, Histogram, HotkeyEvent, HsvCircle, HsvCube, IconToggle, IconToggleN, Image, uiHandleButtonMulti::INIT_ENABLE, IS_ALLSELECT_EVENT, KeyEvent, KM_CTRL, KM_OSKEY, KM_PRESS, KM_SHIFT, ListRow, MEM_freeN(), Menu, Num, NumSlider, PreviewTile, Pulldown, Row, Scroll, SearchMenu, Tab, Text, Toggle, ToggleN, TrackPreview, uiBut::type, ui_apply_but_BLOCK(), ui_apply_but_BUT(), ui_apply_but_BUTM(), ui_apply_but_COLORBAND(), ui_apply_but_CURVE(), ui_apply_but_CURVEPROFILE(), ui_apply_but_HISTOGRAM(), ui_apply_but_IMAGE(), ui_apply_but_NUM(), ui_apply_but_ROW(), ui_apply_but_TAB(), ui_apply_but_TEX(), ui_apply_but_TOG(), ui_apply_but_TRACKPREVIEW(), ui_apply_but_VEC(), ui_apply_but_VIEW_ITEM(), ui_apply_but_WAVEFORM(), ui_block_interaction_update(), UI_BUT_DRAG_MULTI, ui_multibut_restore(), ui_multibut_states_apply(), ui_selectcontext_apply(), ui_selectcontext_begin(), Unitvec, ViewItem, Waveform, and zero_v3().
Referenced by button_activate_exit(), ui_but_execute_end(), ui_but_extra_operator_icon_apply(), ui_do_but_ANY_drag_toggle(), ui_do_but_BLOCK(), ui_do_but_COLOR(), ui_do_but_HSVCIRCLE(), ui_do_but_HSVCUBE(), ui_do_but_textedit(), ui_do_but_TOG(), ui_handle_button_return_submenu(), ui_numedit_apply(), and ui_textedit_begin().
Definition at line 1086 of file interface_handlers.cc.
References BKE_report(), BKE_scene_frame_get(), C, CTX_data_scene(), CTX_wm_reports(), NC_SPACE, ND_SPACE_INFO_REPORT, PROP_PASSWORD, RNA_property_subtype(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, RPT_PROPERTY, str, ui_but_anim_autokey(), WM_event_add_notifier(), and WM_prop_pystring_assign().
Referenced by button_activate_exit(), ui_but_drag_init(), and ui_but_execute_end().
|
static |
Definition at line 1231 of file interface_handlers.cc.
References C, data, Menu, uiBut::retval, uiBut::type, ui_apply_but_func(), ui_but_update_edited(), and ui_but_value_set().
Referenced by ui_apply_but().
|
static |
Definition at line 1214 of file interface_handlers.cc.
References C, data, uiBut::retval, and ui_apply_but_func().
Referenced by ui_apply_but().
|
static |
Definition at line 1222 of file interface_handlers.cc.
References C, data, uiBut::hardmin, uiBut::retval, ui_apply_but_func(), and ui_but_value_set().
Referenced by ui_apply_but().
|
static |
Definition at line 1404 of file interface_handlers.cc.
References C, data, uiBut::retval, and ui_apply_but_func().
Referenced by ui_apply_but().
|
static |
Definition at line 1411 of file interface_handlers.cc.
References C, data, uiBut::retval, and ui_apply_but_func().
Referenced by ui_apply_but().
|
static |
Definition at line 1418 of file interface_handlers.cc.
References C, data, uiBut::retval, and ui_apply_but_func().
Referenced by ui_apply_but().
These functions are postponed and only executed after all other handling is done, i.e. menus are closed, in order to avoid conflicts with these functions removing the buttons we are working with.
Definition at line 917 of file interface_handlers.cc.
References uiBut::active, uiAfterFunc::apply_func, uiBut::apply_func, uiButSearch::arg, uiButSearch::arg_free_fn, uiBut::block, C, uiAfterFunc::context, uiBut::context, uiAfterFunc::custom_interaction_callbacks, uiBlock::custom_interaction_callbacks, uiAfterFunc::custom_interaction_handle, data, uiAfterFunc::drawstr, ELEM, uiAfterFunc::func, uiBut::func, uiAfterFunc::func_arg1, uiBut::func_arg1, uiAfterFunc::func_arg2, uiBut::func_arg2, uiAfterFunc::func_argN, uiBut::func_argN, uiBut::func_argN_copy_fn, uiAfterFunc::func_argN_free_fn, uiBut::func_argN_free_fn, uiAfterFunc::funcN, uiBut::funcN, uiBlock::handle, uiAfterFunc::handle_func, uiBlock::handle_func, uiAfterFunc::handle_func_arg, uiBlock::handle_func_arg, uiAfterFunc::opcontext, uiBut::opcontext, uiBut::operator_never_call, uiAfterFunc::opptr, uiBut::opptr, uiAfterFunc::optype, uiBut::optype, uiAfterFunc::popup_op, uiPopupBlockHandle::popup_op, uiAfterFunc::prev, uiAfterFunc::rename_arg1, uiBut::rename_arg1, uiAfterFunc::rename_full_func, uiBut::rename_full_func, uiAfterFunc::rename_full_new, uiBut::rename_full_new, uiAfterFunc::rename_func, uiBut::rename_func, uiAfterFunc::rename_orig, uiBut::rename_orig, uiAfterFunc::retval, uiBut::retval, uiAfterFunc::rnapoin, uiBut::rnapoin, uiAfterFunc::rnaprop, uiBut::rnaprop, uiAfterFunc::search_arg, uiAfterFunc::search_arg_free_fn, SearchMenu, uiBut::type, ui_afterfunc_check(), ui_afterfunc_new(), ui_but_drawstr_without_sep_char(), and uiBlockInteraction_Handle::user_count.
Referenced by ui_apply_but_BLOCK(), ui_apply_but_BUT(), ui_apply_but_BUTM(), ui_apply_but_COLORBAND(), ui_apply_but_CURVE(), ui_apply_but_CURVEPROFILE(), ui_apply_but_HISTOGRAM(), ui_apply_but_IMAGE(), ui_apply_but_NUM(), ui_apply_but_ROW(), ui_apply_but_TAB(), ui_apply_but_TEX(), ui_apply_but_TOG(), ui_apply_but_TRACKPREVIEW(), ui_apply_but_VEC(), ui_apply_but_WAVEFORM(), ui_do_but_HSVCIRCLE(), and ui_do_but_HSVCUBE().
|
static |
Definition at line 1111 of file interface_handlers.cc.
References uiAfterFunc::apply_func, BLI_assert, BLI_listbase_clear(), BLI_remlink(), C, uiAfterFunc::context, CTX_store_set(), CTX_wm_manager(), uiAfterFunc::custom_interaction_callbacks, uiAfterFunc::custom_interaction_handle, PointerRNA::data, uiAfterFunc::drawstr, ED_undo_push(), uiAfterFunc::func, uiAfterFunc::func_arg1, uiAfterFunc::func_arg2, uiAfterFunc::func_argN, uiAfterFunc::func_argN_free_fn, uiAfterFunc::funcN, uiAfterFunc::handle_func, uiAfterFunc::handle_func_arg, LISTBASE_FOREACH_MUTABLE, MEM_freeN(), uiAfterFunc::opcontext, uiAfterFunc::opptr, uiAfterFunc::optype, popup_check(), uiAfterFunc::popup_op, uiAfterFunc::rename_arg1, uiAfterFunc::rename_full_func, uiAfterFunc::rename_full_new, uiAfterFunc::rename_func, uiAfterFunc::rename_orig, uiAfterFunc::retval, RNA_property_update(), uiAfterFunc::rnapoin, uiAfterFunc::rnaprop, uiAfterFunc::search_arg, uiAfterFunc::search_arg_free_fn, ui_afterfunc_update_preferences_dirty(), ui_block_interaction_end(), ui_block_interaction_update(), UIAfterFuncs, uiAfterFunc::undostr, uiBlockInteraction_Handle::user_count, WM_operator_name_call_ptr_with_depends_on_cursor(), WM_operator_properties_free(), and WM_operator_stack_clear().
Referenced by ui_drag_toggle_set_xy_xy(), ui_handler_region_menu(), ui_popup_handler(), ui_popup_handler_remove(), ui_region_handler(), and ui_region_handler_remove().
|
static |
Definition at line 2269 of file interface_handlers.cc.
References C, data, uiBut::retval, and ui_apply_but_func().
Referenced by ui_apply_but().
|
static |
Definition at line 2262 of file interface_handlers.cc.
References C, data, uiBut::retval, and ui_apply_but_func().
Referenced by ui_apply_but().
|
static |
Definition at line 1355 of file interface_handlers.cc.
References C, data, uiBut::retval, ui_apply_but_func(), ui_but_string_eval_number(), ui_but_string_set(), ui_but_update_edited(), ui_but_value_get(), and ui_but_value_set().
Referenced by ui_apply_but().
|
static |
Definition at line 1265 of file interface_handlers.cc.
References uiBlock::buttons, C, data, ELEM, uiBut::hardmax, ListRow, uiBut::poin, uiBut::retval, Row, ui_apply_but_func(), ui_but_update_edited(), and ui_but_value_set().
Referenced by ui_apply_but(), and ui_apply_but_VIEW_ITEM().
|
static |
Definition at line 1340 of file interface_handlers.cc.
References C, data, uiBut::hardmax, uiBut::retval, ui_apply_but_func(), ui_but_string_set(), ui_but_update_edited(), and ui_but_value_set().
Referenced by ui_apply_but().
|
static |
Definition at line 1296 of file interface_handlers.cc.
References blender::ui::string_search::add_recent_search(), BLI_strdup(), uiBut::block, C, data, uiBut::flag, uiBut::func_arg2, uiButSearch::item_active, uiButSearch::item_active_str, uiBut::rename_orig, uiBut::retval, SearchMenu, uiBut::type, U, ui_afterfunc_check(), ui_apply_but_func(), ui_but_string_set(), UI_BUT_TEXTEDIT_UPDATE, ui_but_update_edited(), and USER_FLAG_RECENT_SEARCHES_DISABLE.
Referenced by ui_apply_but(), and ui_but_active_string_clear_and_exit().
|
static |
Definition at line 1243 of file interface_handlers.cc.
References uiBut::bit, uiBut::bitnr, C, data, ELEM, IconToggle, IconToggleN, uiBut::retval, uiBut::type, ui_apply_but_func(), UI_BITBUT_VALUE_TOGGLED, ui_but_update_edited(), ui_but_value_get(), and ui_but_value_set().
Referenced by ui_apply_but().
|
static |
Definition at line 2283 of file interface_handlers.cc.
References C, data, uiBut::retval, and ui_apply_but_func().
Referenced by ui_apply_but().
|
static |
Definition at line 1010 of file interface_handlers.cc.
References BKE_paintmode_get_active_from_context(), uiBut::block, CTX_wm_region(), uiBut::drawstr, ED_undo_is_legacy_compatible_for_property(), ELEM, uiBlock::evil_C, uiBut::flag, Menu, min_zz(), PointerRNA::owner_id, ARegion::regiontype, RGN_TYPE_HUD, uiBut::rnapoin, uiBut::rnaprop, Sculpt, SIZE_MAX, str, uiBut::tip, uiBut::type, ui_afterfunc_new(), ui_but_drawstr_len_without_sep_char(), ui_but_tip_len_only_first_line(), UI_BUT_UNDO, and uiAfterFunc::undostr.
Referenced by button_activate_exit(), UI_context_active_but_prop_handle(), ui_handle_list_event(), and ui_handler_region_drag_toggle().
|
static |
Definition at line 1394 of file interface_handlers.cc.
References C, data, uiBut::retval, ui_apply_but_func(), ui_but_update_edited(), and ui_but_v3_set().
Referenced by ui_apply_but().
|
static |
Definition at line 1283 of file interface_handlers.cc.
References C, data, and ui_apply_but_ROW().
Referenced by ui_apply_but().
|
static |
Definition at line 2276 of file interface_handlers.cc.
References C, data, uiBut::retval, and ui_apply_but_func().
Referenced by ui_apply_but().
Definition at line 10660 of file interface_handlers.cc.
References copy_v2_v2(), PieMenuData::flags, len, normalize_v2_v2(), PieMenuData::pie_center_init, PieMenuData::pie_center_spawned, uiBlock::pie_data, PieMenuData::pie_dir, sub_v2_v2v2(), U, UI_PIE_INITIAL_DIRECTION, UI_PIE_INVALID_DIR, and UI_SCALE_FAC.
Referenced by ui_pie_handler(), and ui_popup_block_refresh().
|
static |
Definition at line 12518 of file interface_handlers.cc.
References uiBlockInteraction_CallbackData::arg1, uiBlockInteraction_CallbackData::begin_fn, BLI_array_deduplicate_ordered, BLI_assert, BLI_sortutil_cmp_int(), uiBlock::buttons, C, uiBlock::custom_interaction_callbacks, uiBlockInteraction_Params::is_click, MEM_callocN(), MEM_malloc_arrayN(), MEM_reallocN, uiBlockInteraction_Handle::params, UI_BUT_DRAG_MULTI, uiBlockInteraction_Params::unique_retval_ids, uiBlockInteraction_Params::unique_retval_ids_len, and uiBlockInteraction_Handle::user_data.
Referenced by ui_block_interaction_begin_ensure().
|
static |
Instead, it must be called immediately before the drag action begins.
Definition at line 12586 of file interface_handlers.cc.
References uiBlockInteraction_CallbackData::begin_fn, C, uiBlock::custom_interaction_callbacks, data, ui_block_interaction_begin(), and uiBlockInteraction_Handle::user_count.
Referenced by button_activate_state(), ui_numedit_but_NUM(), and ui_numedit_but_SLI().
|
static |
Definition at line 12557 of file interface_handlers.cc.
References uiBlockInteraction_CallbackData::arg1, BLI_assert, C, uiBlockInteraction_CallbackData::end_fn, MEM_freeN(), uiBlockInteraction_Handle::params, uiBlockInteraction_Params::unique_retval_ids, and uiBlockInteraction_Handle::user_data.
Referenced by button_activate_exit(), and ui_apply_but_funcs_after().
| void UI_block_interaction_set | ( | uiBlock * | block, |
| uiBlockInteraction_CallbackData * | callbacks ) |
Definition at line 12513 of file interface_handlers.cc.
References uiBlock::custom_interaction_callbacks.
Referenced by v3d_editvertex_buts().
|
static |
Definition at line 12567 of file interface_handlers.cc.
References uiBlockInteraction_CallbackData::arg1, BLI_assert, C, uiBlockInteraction_Handle::params, uiBlockInteraction_CallbackData::update_fn, and uiBlockInteraction_Handle::user_data.
Referenced by ui_apply_but(), and ui_apply_but_funcs_after().
|
static |
Definition at line 4413 of file interface_handlers.cc.
References BLI_assert, Block, uiBut::block, uiBut::block_create_func, C, Color, copy_v3_v3(), data, uiBut::editvec, uiBut::func_argN, uiBlock::handle, IS_ALLSELECT_EVENT, Menu, uiBut::menu_create_func, uiBut::poin, Popover, uiPopupBlockHandle::popup, Pulldown, status, STRNCPY_UTF8, uiBut::type, ui_block_func_COLOR(), ui_but_menu_draw_as_popover(), UI_but_menutype_get(), ui_but_v3_get(), ui_popover_panel_create(), ui_popup_block_create(), ui_popup_menu_create(), WM_event_add_mousemove(), and WM_paneltype_find().
Referenced by button_activate_state().
|
static |
Definition at line 4528 of file interface_handlers.cc.
References uiBlock::auto_open_last, BLI_time_now_seconds(), uiBut::block, C, data, ED_workspace_status_text(), uiBut::editval, uiBut::editvec, and ui_popup_block_free().
Referenced by button_activate_state().
|
static |
Definition at line 11502 of file interface_handlers.cc.
References uiBlock::buttons, ELEM, uiBlock::flag, KM_PRESS, Sepr, SeprLine, UI_BLOCK_NUMSELECT, and wmEvent::val.
Referenced by ui_pie_handler().
|
static |
Definition at line 8606 of file interface_handlers.cc.
References LISTBASE_FOREACH, and ARegion::runtime.
Referenced by button_activate_exit(), ui_handle_button_event(), ui_handler_region_menu(), ui_popup_handler(), and ui_region_handler().
Exported to interface.cc: UI_but_active_only()
Definition at line 9487 of file interface_handlers.cc.
References uiBut::block, button_activate_init(), BUTTON_ACTIVATE_OVER, C, CTX_wm_window(), EVT_BUT_OPEN, KM_PRESS, ui_do_button(), and wm_event_init_from_window().
Referenced by UI_but_active_only_ex(), and with_but_active_as_semi_modal().
Simulate moving the mouse over a button (or navigating to it with arrow keys).
exported so menus can start with a highlighted button, even if the mouse isn't over it
Definition at line 9504 of file interface_handlers.cc.
References button_activate_init(), BUTTON_ACTIVATE_OVER, and C.
Referenced by ui_block_func_POPUP().
| bool UI_but_active_drop_color | ( | bContext * | C | ) |
Definition at line 12492 of file interface_handlers.cc.
References C, Color, CTX_wm_region(), uiBut::type, and ui_region_find_active_but().
Referenced by blender::ed::space_node::node_color_drop_poll(), and UI_drop_color_poll().
| bool UI_but_active_drop_name | ( | const bContext * | C | ) |
Returns true if highlighted button allows drop of names. called in region context.
Definition at line 12487 of file interface_handlers.cc.
References C, and UI_but_active_drop_name_button().
Referenced by blender::ed::space_node::node_collection_drop_poll(), blender::ed::space_node::node_material_drop_poll(), blender::ed::space_node::node_object_drop_poll(), and ui_drop_name_poll().
Definition at line 12473 of file interface_handlers.cc.
References C, CTX_wm_region(), ELEM, SearchMenu, Text, uiBut::type, and ui_region_find_active_but().
Referenced by drop_name_invoke(), drop_name_poll(), and UI_but_active_drop_name().
Definition at line 9154 of file interface_handlers.cc.
References uiBut::active, button_activate_exit(), C, and data.
Referenced by UI_but_active_only_ex(), ui_but_free(), UI_region_free_active_but_all(), and UI_screen_free_active_but_highlight().
Clear & exit the active button's string..
Definition at line 3068 of file interface_handlers.cc.
References uiBut::active, button_activate_state(), BUTTON_STATE_EXIT, C, uiTextEdit::edit_string, MEM_calloc_arrayN(), uiHandleButtonData::text_edit, and ui_apply_but_TEX().
Referenced by button_string_clear_exec().
| void ui_but_clipboard_free | ( | ) |
Definition at line 2968 of file interface_handlers.cc.
References BKE_curvemapping_free_data(), BKE_curveprofile_free_data(), but_copypaste_curve, and but_copypaste_profile.
Referenced by UI_exit().
Returns true if any data was copied.
Definition at line 2806 of file interface_handlers.cc.
References But, C, Color, ColorBand, copy_array(), Curve, CurveProfile, PointerRNA::data, Menu, Num, NumSlider, uiBut::optype, uiBut::poin, Popover, Pulldown, uiBut::rnapoin, SearchMenu, Text, uiBut::type, ui_but_contains_password(), ui_but_copy_color(), ui_but_copy_colorband(), ui_but_copy_curvemapping(), ui_but_copy_CurveProfile(), ui_but_copy_menu(), ui_but_copy_numeric_array(), ui_but_copy_numeric_value(), ui_but_copy_operator(), ui_but_copy_popover(), ui_but_copy_text(), ui_but_has_array_value(), Unitvec, and WM_clipboard_text_set().
Referenced by ui_do_button().
|
static |
Definition at line 2670 of file interface_handlers.cc.
References float_array_to_string(), get_but_property_array_length(), output, PROP_COLOR_GAMMA, RNA_property_float_get_index(), RNA_property_subtype(), uiBut::rnapoin, uiBut::rnaprop, srgb_to_linearrgb_v3_v3(), and ui_but_v3_get().
Referenced by ui_but_copy().
|
static |
Definition at line 2723 of file interface_handlers.cc.
References but_copypaste_coba, and uiBut::poin.
Referenced by ui_but_copy().
|
static |
Definition at line 2739 of file interface_handlers.cc.
References BKE_curvemapping_copy_data(), BKE_curvemapping_free_data(), but_copypaste_curve, but_copypaste_curve_alive, and uiBut::poin.
Referenced by ui_but_copy().
|
static |
Definition at line 2758 of file interface_handlers.cc.
References BKE_curveprofile_copy_data(), BKE_curveprofile_free_data(), but_copypaste_profile, but_copypaste_profile_alive, and uiBut::poin.
Referenced by ui_but_copy().
|
static |
Definition at line 2785 of file interface_handlers.cc.
References BLI_snprintf_utf8(), MenuType::idname, output, and UI_but_menutype_get().
Referenced by ui_but_copy().
|
static |
Definition at line 2582 of file interface_handlers.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::data(), float_array_to_string(), get_but_property_array_length(), output, RNA_property_float_get_array(), uiBut::rnapoin, and uiBut::rnaprop.
Referenced by ui_but_copy().
|
static |
Definition at line 2627 of file interface_handlers.cc.
References BLI_str_rstrip_float_zero(), output, ui_but_string_get_ex(), and UI_PRECISION_FLOAT_MAX.
Referenced by ui_but_copy().
Definition at line 2777 of file interface_handlers.cc.
References BLI_strncpy_utf8(), C, uiBut::optype, output, str, UI_but_operator_ptr_ensure(), and WM_operator_pystring_ex().
Referenced by ui_but_copy().
|
static |
Definition at line 2795 of file interface_handlers.cc.
References BLI_snprintf_utf8(), PanelType::idname, output, and UI_but_paneltype_get().
Referenced by ui_but_copy().
|
static |
Definition at line 2711 of file interface_handlers.cc.
References output, and ui_but_string_get().
Referenced by ui_but_copy().
|
static |
Definition at line 2136 of file interface_handlers.cc.
References abs, BLI_rctf_cent_x(), BLI_rctf_cent_y(), uiBut::block, uiDragToggleHandle::but_cent_start, button_activate_state(), BUTTON_STATE_EXIT, C, Char, Color, uiDragColorHandle::color, copy_v2_v2_int(), copy_v4_v4(), CTX_wm_region(), CTX_wm_region_set(), CTX_wm_window(), data, ELEM, Float, uiDragColorHandle::gamma_corrected, uiDragColorHandle::has_alpha, uiDragToggleHandle::is_xy_lock_init, MEM_callocN(), MEM_freeN(), min_ii(), uiBut::poin, uiBut::pointype, PROP_COLOR, PROP_COLOR_GAMMA, uiDragToggleHandle::pushed_state, uiBut::rect, RGN_ALIGN_BOTTOM, RGN_ALIGN_ENUM_FROM_MASK, RGN_ALIGN_LEFT, RGN_ALIGN_RIGHT, RGN_ALIGN_TOP, RGN_TYPE_ASSET_SHELF_HEADER, RGN_TYPE_FOOTER, RGN_TYPE_HEADER, RGN_TYPE_NAV_BAR, RGN_TYPE_TOOL_HEADER, RNA_property_subtype(), uiBut::rnaprop, uiBut::type, ui_apply_but_autokey(), ui_block_to_window_scale(), ui_but_color_has_alpha(), ui_but_drag_start(), ui_but_v4_get(), ui_drag_toggle_but_is_supported(), ui_drag_toggle_but_pushed_state(), ui_handler_region_drag_toggle(), ui_handler_region_drag_toggle_remove(), UI_UNIT_Y, UI_view_item_drag_start(), uiButViewItem::view_item, ViewItem, WM_DRAG_COLOR, WM_DRAG_FREE_DATA, WM_event_add_ui_handler(), WM_event_drag_threshold(), WM_event_start_drag(), WM_gestures_remove(), WM_HANDLER_BLOCKING, wmEvent::xy, uiDragToggleHandle::xy_init, uiDragToggleHandle::xy_last, and uiDragToggleHandle::xy_lock.
Referenced by ui_do_but_BLOCK(), ui_do_but_COLOR(), and ui_do_but_EXIT().
|
static |
Ignore mouse movements within some horizontal pixel threshold before starting to drag
Definition at line 707 of file interface_handlers.cc.
References abs, data, and ui_multibut_drag_wait().
Referenced by ui_numedit_but_NUM(), and ui_numedit_but_SLI().
Definition at line 9509 of file interface_handlers.cc.
References uiBut::active, BLI_assert, BLI_findindex(), uiBut::block, data, and ARegion::runtime.
Referenced by UI_but_execute(), and ui_multibut_states_apply().
Definition at line 9523 of file interface_handlers.cc.
References uiBut::active, uiBut::block, button_activate_exit(), C, uiBut::flag, ui_apply_but(), ui_apply_but_autokey(), and UI_BUT_DRAG_MULTI.
Referenced by UI_but_execute(), and ui_multibut_states_apply().
|
static |
Definition at line 4386 of file interface_handlers.cc.
References uiBut::active, uiHandleButtonData::apply_through_extra_icon, uiBut::block, button_activate_state(), BUTTON_STATE_EXIT, C, CTX_wm_window(), uiHandleButtonData::interactive, wmOperatorCallParams::opcontext, wmOperatorCallParams::opptr, wmOperatorCallParams::optype, uiButExtraOpIcon::optype_params, ui_apply_but(), ui_but_extra_operator_icons_free(), WM_event_add_mousemove(), and WM_operator_name_call_ptr_with_depends_on_cursor().
Referenced by ui_do_but_extra_operator_icon().
|
static |
Definition at line 4588 of file interface_handlers.cc.
References BLI_listbase_is_empty(), BLI_rctf_isect_pt(), BLI_rctf_size_y(), uiBut::block, uiBut::extra_op_icons, ListBase::last, LISTBASE_FOREACH_BACKWARD, uiBut::rect, ui_window_to_block(), x, rctf::xmax, and y.
Referenced by ui_but_tooltip_init(), ui_do_but_extra_operator_icon(), ui_do_but_extra_operator_icons_mousemove(), ui_do_but_TEX(), and ui_do_but_VIEW_ITEM().
Definition at line 9440 of file interface_handlers.cc.
References wmEvent::customdata, LISTBASE_FOREACH, and ARegion::runtime.
Referenced by ui_handle_button_over().
Finds the pressed button in an aligned row (typically an expanded enum).
| direction | Use when there may be multiple buttons pressed. |
Definition at line 641 of file interface_handlers.cc.
References BLI_assert, uiBut::block, uiBlock::but_index(), uiBlock::buttons, ELEM, i, ui_but_find_select_in_enum__cmp(), and UI_SELECT.
Referenced by ui_do_but_TOG().
Definition at line 634 of file interface_handlers.cc.
References uiBut::alignnr, uiBut::poin, uiBut::rnapoin, uiBut::rnaprop, PointerRNA::type, and uiBut::type.
Referenced by ui_but_find_select_in_enum(), and ui_do_but_TOG().
|
static |
Definition at line 2526 of file interface_handlers.cc.
References length(), MEM_callocN(), and WM_clipboard_text_get_firstline().
Referenced by ui_but_paste().
| void ui_but_handle_data_free | ( | uiHandleButtonData ** | data | ) |
Definition at line 585 of file interface_handlers.cc.
References data.
Referenced by button_activate_exit(), and ui_but_free().
|
static |
Definition at line 1878 of file interface_handlers.cc.
References uiBut::block, ui_block_is_menu(), and ui_drag_toggle_but_is_supported().
Referenced by ui_do_but_ANY_drag_toggle(), ui_do_but_BLOCK(), and ui_do_but_EXIT().
| bool ui_but_is_editing | ( | const uiBut * | but | ) |
Definition at line 597 of file interface_handlers.cc.
References uiBut::active, BUTTON_STATE_NUM_EDITING, BUTTON_STATE_TEXT_EDITING, data, and ELEM.
Referenced by ui_but_update_ex().
| bool UI_but_is_userdef | ( | const uiBut * | but | ) |
Definition at line 782 of file interface_handlers.cc.
References uiBut::rnapoin, uiBut::rnaprop, and ui_rna_is_userdef().
Referenced by UI_context_active_but_prop_get_filebrowser().
|
static |
Hack for uiList ButType::ListRow buttons to "give" events to overlaying ButType::Text buttons (Ctrl-Click rename feature & co).
Definition at line 4560 of file interface_handlers.cc.
References button_activate_exit(), button_activate_init(), C, data, uiBut::flag, Text, uiBut::type, UI_BUT_DISABLED, ui_but_find_mouse_over_ex(), and wmEvent::xy.
Referenced by ui_do_but_LISTROW(), and ui_do_button().
| int ui_but_menu_direction | ( | uiBut * | but | ) |
Definition at line 4545 of file interface_handlers.cc.
References uiBut::active, and data.
Referenced by widget_roundbox_set().
|
static |
Definition at line 2903 of file interface_handlers.cc.
References BLI_assert, C, Color, ColorBand, Curve, CurveProfile, data, PointerRNA::data, uiBut::flag, MEM_freeN(), Num, NumSlider, uiBut::poin, uiBut::rnapoin, SearchMenu, Text, uiBut::type, UI_BUT_DISABLED, ui_but_get_pasted_text_from_clipboard(), ui_but_has_array_value(), UI_but_is_utf8(), ui_but_paste_color(), ui_but_paste_colorband(), ui_but_paste_curvemapping(), ui_but_paste_CurveProfile(), ui_but_paste_normalized_vector(), ui_but_paste_numeric_array(), ui_but_paste_numeric_value(), ui_but_paste_text(), and Unitvec.
Referenced by ui_do_button().
Definition at line 2691 of file interface_handlers.cc.
References ARRAY_SIZE, C, get_but_property_array_length(), linearrgb_to_srgb_v3_v3(), parse_float_array(), PROP_COLOR_GAMMA, RNA_property_subtype(), uiBut::rnaprop, RPT_ERROR, ui_but_set_float_array(), and WM_global_report().
Referenced by ui_but_paste().
|
static |
Definition at line 2730 of file interface_handlers.cc.
References but_copypaste_coba, button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_NUM_EDITING, C, data, and uiBut::poin.
Referenced by ui_but_paste().
Definition at line 2748 of file interface_handlers.cc.
References BKE_curvemapping_copy_data(), BKE_curvemapping_free_data(), but_copypaste_curve, but_copypaste_curve_alive, button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_NUM_EDITING, C, and uiBut::poin.
Referenced by ui_but_paste().
Definition at line 2767 of file interface_handlers.cc.
References BKE_curveprofile_copy_data(), BKE_curveprofile_free_data(), but_copypaste_profile, but_copypaste_profile_alive, button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_NUM_EDITING, C, and uiBut::poin.
Referenced by ui_but_paste().
|
static |
Definition at line 2652 of file interface_handlers.cc.
References C, data, normalize_v3(), parse_float_array(), RPT_ERROR, ui_but_set_float_array(), and WM_global_report().
Referenced by ui_but_paste().
|
static |
Definition at line 2606 of file interface_handlers.cc.
References C, blender::Array< T, InlineBufferCapacity, Allocator >::data(), data, get_but_property_array_length(), parse_float_array(), RPT_ERROR, ui_but_set_float_array(), and WM_global_report().
Referenced by ui_but_paste().
|
static |
Definition at line 2635 of file interface_handlers.cc.
References button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_NUM_EDITING, C, data, RPT_ERROR, ui_but_string_eval_number(), ui_but_string_set(), and WM_global_report().
Referenced by ui_but_paste().
|
static |
Definition at line 2716 of file interface_handlers.cc.
References uiBut::active, BLI_assert, C, data, ui_but_set_string_interactive(), and UNUSED_VARS_NDEBUG.
Referenced by ui_but_paste().
|
static |
Definition at line 11515 of file interface_handlers.cc.
References uiBut::active, button_activate_exit(), button_activate_init(), BUTTON_ACTIVATE_OVER, C, uiPopupBlockHandle::region, ui_but_pie_menu_apply(), ui_region_find_active_but(), and WM_UI_HANDLER_BREAK.
Referenced by ui_pie_handler().
|
static |
Definition at line 11465 of file interface_handlers.cc.
References uiBut::active, button_activate_exit(), button_activate_init(), BUTTON_ACTIVATE_OPEN, C, ED_region_tag_redraw(), Menu, uiPopupBlockHandle::menuretval, uiPopupBlockHandle::region, uiBut::type, ui_but_pie_menu_supported_apply(), ui_region_find_active_but(), UI_RETURN_CANCEL, UI_RETURN_OK, and WM_UI_HANDLER_BREAK.
Referenced by ui_but_pie_button_activate(), and ui_pie_handler().
|
static |
Definition at line 11460 of file interface_handlers.cc.
References ELEM, Num, NumSlider, and uiBut::type.
Referenced by ui_but_pie_menu_apply().
Definition at line 9166 of file interface_handlers.cc.
References C, uiHandleButtonData::region, uiBut::semi_modal_state, and with_but_active_as_semi_modal().
Referenced by ui_but_free().
|
static |
Definition at line 2549 of file interface_handlers.cc.
References BLI_assert, button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_NUM_EDITING, C, copy_v3_v3(), data, RNA_property_float_set_array_at_most(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, uiBut::type, and Unitvec.
Referenced by ui_but_paste_color(), ui_but_paste_normalized_vector(), and ui_but_paste_numeric_array().
Use handling code to set a string for the button. Handles the case where the string is set for a search button while the search menu is open, so the results are updated accordingly. This is basically the same as pasting the string into the button.
Definition at line 3052 of file interface_handlers.cc.
References uiBut::active, BLI_assert, button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_TEXT_EDITING, C, uiBut::changed, uiBut::flag, uiHandleButtonData::searchbox, SearchMenu, uiHandleButtonData::text_edit, uiBut::type, UI_BUT_DISABLED, ui_searchbox_update(), and ui_textedit_string_set().
Referenced by drop_name_invoke(), ui_but_paste_text(), and ui_do_but_text_value_cycle().
| void ui_but_text_password_hide | ( | char | password_str[UI_MAX_PASSWORD_STR], |
| uiBut * | but, | ||
| const bool | restore ) |
Definition at line 3007 of file interface_handlers.cc.
References BLI_strlen_utf8(), BLI_strncpy(), uiBut::drawstr, uiBut::editstr, len, uiBut::pos, PROP_PASSWORD, RNA_property_subtype(), uiBut::rnaprop, uiBut::selend, uiBut::selsta, UI_MAX_PASSWORD_STR, ui_text_position_from_hidden(), and ui_text_position_to_hidden().
Referenced by ui_textedit_set_cursor_pos(), and widget_draw_text_icon().
|
static |
Definition at line 8644 of file interface_handlers.cc.
References uiBut::active, C, CTX_wm_window(), wmWindow::eventstate, uiHandleButtonData::region, ui_but_extra_operator_icon_mouse_over_get(), UI_region_active_but_get(), UI_tooltip_create_from_button_or_extra_icon(), UI_TOOLTIP_DELAY, and UI_TOOLTIP_DELAY_QUICK.
Referenced by button_activate_init(), and button_tooltip_timer_reset().
Recreate tool-tip (use to update dynamic tips)
Definition at line 8618 of file interface_handlers.cc.
References uiBut::active, C, data, wmTooltipState::region, bScreen::tool_tip, WM_tooltip_refresh(), and WM_window_get_active_screen().
Referenced by UI_block_update_from_old().
Removes tool-tip timer from active but (meaning tool-tip is disabled until it's re-enabled again).
Definition at line 8629 of file interface_handlers.cc.
References uiBut::active, C, data, WM_event_timer_remove(), and WM_tooltip_clear().
Referenced by button_activate_state(), blender::ed::outliner::outliner_operation_invoke(), ui_handle_button_event(), ui_handle_menu_event(), ui_popup_block_create(), and ui_region_handler().
|
static |
Definition at line 796 of file interface_handlers.cc.
References uiBut::rnapoin, uiBut::rnaprop, and ui_rna_update_preferences_dirty().
Referenced by button_activate_exit(), and ui_drag_toggle_set_xy_xy().
In some cases we may want to update the view (View2D) in-between layout definition and drawing. E.g. to make sure a button is visible while editing.
Definition at line 9418 of file interface_handlers.cc.
References uiBut::active, uiBut::block, C, uiBut::changed, data, uiHandleButtonData::region, ui_block_active_but_get(), and UI_but_ensure_in_view().
Referenced by UI_blocklist_update_view_for_buttons().
|
static |
Definition at line 9644 of file interface_handlers.cc.
References ELEM, PROP_FLOAT, PROP_INT, RNA_property_array_check(), RNA_property_float_get_default(), RNA_property_float_get_default_index(), RNA_property_int_get_default(), RNA_property_int_get_default_index(), RNA_property_type(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, and ui_but_is_rna_valid().
Referenced by ui_handle_button_event().
Definition at line 12052 of file interface_handlers.cc.
References uiBut::active, BLI_rcti_size_x(), data, ELEM, uiBut::flag, uiBut::icon, left, Menu, uiBut::menu_no_hover_open, wmEvent::mval, Popover, Pulldown, uiBut::rect, uiBut::str, uiBut::type, UI_BUT_DISABLED, UI_DIR_DOWN, UI_DIR_UP, UI_SCALE_FAC, rctf::xmax, and rctf::xmin.
Referenced by ui_handler_region_menu().
|
static |
Definition at line 6834 of file interface_handlers.cc.
References uiButHSVCube::gradient_type, hsl_to_rgb_v(), hsv_to_rgb_v(), and UI_GRAD_L_ALT.
Referenced by ui_do_but_HSVCUBE(), and ui_numedit_but_HSVCUBE().
Definition at line 830 of file interface_handlers.cc.
References BLI_assert, roundf, snap(), SNAP_OFF, and SNAP_ON_SMALL.
Referenced by ui_numedit_but_HSVCIRCLE(), and ui_numedit_but_HSVCUBE().
Definition at line 9324 of file interface_handlers.cc.
References C, and wm_event_handler_ui_cancel_ex().
Referenced by blender::ui::bonedropper_invoke(), datadropper_invoke(), depthdropper_invoke(), driverdropper_invoke(), blender::ui::eyedropper_colorband_invoke(), and eyedropper_invoke().
Definition at line 9238 of file interface_handlers.cc.
References C, CTX_wm_region(), and ui_context_button_active().
Referenced by copy_python_command_button_exec(), copy_python_command_button_poll(), blender::ui::eyedropper_colorband_init(), blender::ui::eyedropper_colorband_poll(), blender::ed::outliner::outliner_operation_invoke(), UI_but_online_manual_id_from_active(), ui_button_press_invoke(), UI_context_active_but_get_tab_ID(), UI_context_active_but_prop_get_templateID(), and ui_popup_block_create().
Version of #UI_context_active_get() that uses the result of CTX_wm_region_popup() if set. Does not traverse into parent menus, which may be wanted in some cases.
Definition at line 9243 of file interface_handlers.cc.
References C, CTX_wm_region(), CTX_wm_region_popup(), and ui_context_button_active().
Referenced by button_string_clear_exec(), and UI_context_active_but_prop_handle().
| uiBut * UI_context_active_but_prop_get | ( | const bContext * | C, |
| PointerRNA * | r_ptr, | ||
| PropertyRNA ** | r_prop, | ||
| int * | r_index ) |
Version of UI_context_active_but_get that also returns RNA property info. Helper function for insert keyframe, reset to default, etc operators.
Definition at line 9285 of file interface_handlers.cc.
References C, CTX_wm_region(), CTX_wm_region_popup(), and UI_region_active_but_prop_get().
Referenced by achannel_setting_slider_nla_curve_cb(), add_driver_button_invoke(), add_driver_button_none(), add_driver_button_poll(), add_keyingset_button_exec(), assign_default_button_exec(), assign_default_button_poll(), blender::ui::bonedropper_init(), blender::ui::bonedropper_poll(), clear_key_button_exec(), copy_as_driver_button_exec(), copy_as_driver_button_poll(), copy_data_path_button_exec(), copy_data_path_button_poll(), copy_driver_button_exec(), copy_driver_to_selected_button(), copy_to_selected_button(), datadropper_init(), datadropper_poll(), delete_key_button_exec(), depthdropper_init(), depthdropper_poll(), depthdropper_test(), driver_mapping_type_itemf(), driverdropper_init(), drivers_editor_show_exec(), edit_driver_button_exec(), eyedropper_init(), insert_key_button_exec(), jump_to_target_button(), override_add_button_exec(), override_add_button_poll(), override_remove_button_exec(), override_remove_button_poll(), paste_driver_button_exec(), remove_driver_button_exec(), remove_keyingset_button_exec(), reset_default_button_exec(), reset_default_button_poll(), screen_ctx_property(), unset_property_button_exec(), and view_curve_in_graph_editor_exec().
| void UI_context_active_but_prop_handle | ( | bContext * | C, |
| const bool | handle_undo ) |
Definition at line 9295 of file interface_handlers.cc.
References uiBut::block, C, uiBut::func, uiBut::func_arg1, uiBut::func_arg2, uiBlock::handle_func, uiBlock::handle_func_arg, uiBut::retval, ui_apply_but_undo(), ui_but_update(), and UI_context_active_but_get_respect_popup().
Referenced by operator_button_property_finish(), and operator_button_property_finish_with_undo().
| wmOperator * UI_context_active_operator_get | ( | const bContext * | C | ) |
Definition at line 9329 of file interface_handlers.cc.
References C, CTX_wm_region(), CTX_wm_screen(), LISTBASE_FOREACH, bScreen::regionbase, and ARegion::runtime.
Referenced by screen_ctx_active_operator().
|
static |
Definition at line 9179 of file interface_handlers.cc.
References uiBut::active, data, LISTBASE_FOREACH, ARegion::runtime, UI_BUT_ACTIVE_OVERRIDE, and UI_BUT_LAST_ACTIVE.
Referenced by UI_context_active_but_get(), UI_context_active_but_get_respect_popup(), and UI_region_active_but_get().
| void UI_context_update_anim_flag | ( | const bContext * | C | ) |
Helper function for insert keyframe, reset to default, etc operators.
Definition at line 9370 of file interface_handlers.cc.
References uiBut::active, BKE_animsys_eval_context_construct(), BKE_scene_frame_get(), C, CTX_data_depsgraph_pointer(), CTX_data_main(), CTX_data_scene(), CTX_wm_region(), data, depsgraph, ED_region_tag_redraw(), LISTBASE_FOREACH, ARegion::runtime, ui_but_anim_decorate_update_from_flag(), ui_but_anim_flag(), UI_but_is_decorator, UI_BUT_LAST_ACTIVE, and ui_but_override_flag().
Referenced by add_driver_button_invoke(), add_driver_button_none(), clear_key_button_exec(), copy_driver_button_exec(), delete_key_button_exec(), driverdropper_sample(), insert_key_button_exec(), paste_driver_button_exec(), and remove_driver_button_exec().
|
static |
Definition at line 4676 of file interface_handlers.cc.
References uiBut::block, button_activate_state(), BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_WAIT_DRAG, C, data, KM_PRESS, LEFTMOUSE, wmEvent::type, ui_apply_but(), ui_but_is_drag_toggle(), ui_do_but_EXIT(), wmEvent::val, and WM_UI_HANDLER_BREAK.
Referenced by ui_do_but_BUT(), ui_do_but_TAB(), and ui_do_but_TOG().
|
static |
Definition at line 6409 of file interface_handlers.cc.
References uiBut::block, BUTTON_ACTIVATE_OVER, button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_MENU_OPEN, BUTTON_STATE_WAIT_DRAG, C, data, ELEM, EVT_PADENTER, EVT_RETKEY, KM_CTRL, KM_PRESS, KM_RELEASE, LEFTMOUSE, wmEvent::modifier, MOUSEPAN, wmEvent::type, ui_apply_but(), ui_but_contains_point_px_icon(), ui_but_drag_init(), ui_but_drag_is_draggable(), ui_but_is_drag_toggle(), ui_but_menu_step(), ui_but_supports_cycling(), ui_pan_to_scroll(), wmEvent::val, WHEELDOWNMOUSE, WHEELUPMOUSE, WM_event_add_mousemove(), WM_UI_HANDLER_BREAK, and WM_UI_HANDLER_CONTINUE.
Referenced by ui_do_button().
|
static |
Definition at line 4700 of file interface_handlers.cc.
References uiBut::block, button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_WAIT_FLASH, BUTTON_STATE_WAIT_RELEASE, C, data, ELEM, EVT_PADENTER, EVT_RETKEY, uiBut::flag, uiBlock::handle, KM_PRESS, KM_RELEASE, LEFTMOUSE, wmEvent::type, ui_do_but_ANY_drag_toggle(), UI_HOVER, UI_SELECT, wmEvent::val, WM_UI_HANDLER_BREAK, and WM_UI_HANDLER_CONTINUE.
Referenced by ui_do_button().
|
static |
Definition at line 6593 of file interface_handlers.cc.
References ARRAY_SIZE, BKE_brush_color_set(), BKE_brush_tag_unsaved_changes(), BKE_paint_brush(), BKE_paint_get_active_from_context(), BKE_palette_color_remove(), BLI_assert, uiBut::block, BRUSH_USE_GRADIENT, button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_MENU_OPEN, BUTTON_STATE_WAIT_DRAG, C, clamp_f(), col, Color, ColorBand::cur, uiBut::custom_data, ColorBand::data, data, PointerRNA::data, ELEM, EVT_DELKEY, EVT_PADENTER, EVT_RETKEY, Brush::flag, Brush::gradient, ColorPicker::hsv_perceptual, hsv_to_rgb_v(), Brush::id, IMB_colormanagement_srgb_to_scene_linear_v3(), uiButColor::is_pallete_color, KM_CTRL, KM_PRESS, KM_RELEASE, LEFTMOUSE, wmEvent::modifier, MOUSEPAN, PointerRNA::owner_id, PointerRNA_NULL, PROP_COLOR, PROP_COLOR_GAMMA, CBData::r, rgb_to_hsv_compat_v(), RNA_id_pointer_create(), RNA_property_float_get_array_at_most(), RNA_property_subtype(), RNA_property_update(), RNA_struct_find_property(), uiBut::rnapoin, uiBut::rnaprop, uiBut::type, wmEvent::type, ui_apply_but(), ui_but_contains_point_px_icon(), ui_but_drag_init(), ui_but_drag_is_draggable(), ui_but_v3_get(), ui_but_v3_set(), ui_palette_set_active(), wmEvent::val, WHEELDOWNMOUSE, WHEELUPMOUSE, WM_UI_HANDLER_BREAK, and WM_UI_HANDLER_CONTINUE.
Referenced by ui_do_button().
|
static |
Definition at line 7441 of file interface_handlers.cc.
References abs, uiBlock::aspect, BKE_colorband_element_add(), BKE_colorband_update_sort(), BLI_rctf_size_x(), button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_NUM_EDITING, C, ColorBand::cur, ColorBand::data, data, ELEM, EVT_ESCKEY, float, KM_CTRL, KM_PRESS, KM_RELEASE, LEFTMOUSE, wmEvent::modifier, MOUSEMOVE, uiBut::poin, CBData::pos, pos, uiBut::rect, RIGHTMOUSE, wmEvent::type, ui_numedit_apply(), ui_numedit_but_COLORBAND(), UI_SCALE_FAC, ui_window_to_block(), wmEvent::val, WM_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, and rctf::xmin.
Referenced by ui_do_button().
|
static |
Definition at line 7633 of file interface_handlers.cc.
References BKE_curvemap_insert(), BKE_curvemapping_changed(), BKE_paint_invalidate_cursor_overlay(), BLI_rctf_transform_pt_v(), button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_NUM_EDITING, C, CurveMapping::cm, CM_TABLE, copy_v2_v2(), CTX_data_scene(), CTX_data_view_layer(), CUMA_SELECT, CurveMapping::cur, CurveMapping::curr, CurveMap::curve, data, dist_squared_to_line_segment_v2(), CurveMapPoint::flag, float, i, KM_CTRL, KM_PRESS, KM_RELEASE, KM_SHIFT, LEFTMOUSE, len_squared_v2v2(), wmEvent::modifier, MOUSEMOVE, uiBut::poin, uiBut::rect, square_f(), CurveMap::table, CurveMap::totpoint, wmEvent::type, ui_numedit_apply(), ui_numedit_but_CURVE(), UI_SCALE_FAC, ui_window_to_block(), wmEvent::val, WM_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, CurveMapPoint::x, x, and wmEvent::xy.
Referenced by ui_do_button().
|
static |
Interaction for curve profile widget.
Definition at line 7922 of file interface_handlers.cc.
References BKE_curveprofile_insert(), BKE_curveprofile_remove_by_flag(), BKE_curveprofile_table_size(), BKE_curveprofile_update(), BLI_assert, BLI_rctf_transform_pt_v(), button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_NUM_EDITING, C, copy_v2_v2(), data, dist_squared_to_line_segment_v2(), ELEM, EVT_GKEY, EVT_XKEY, CurveProfilePoint::flag, float, CurveProfilePoint::h1, CurveProfilePoint::h1_loc, CurveProfilePoint::h2, CurveProfilePoint::h2_loc, HD_ALIGN, HD_FREE, i, KM_CTRL, KM_PRESS, KM_RELEASE, KM_SHIFT, LEFTMOUSE, len_squared_v2v2(), wmEvent::modifier, MOUSEMOVE, CurveProfile::path, CurveProfile::path_len, uiBut::poin, point_draw_handles(), PROF_H1_SELECT, PROF_H2_SELECT, PROF_SELECT, PROF_UPDATE_CLIP, PROF_UPDATE_NONE, PROF_UPDATE_REMOVE_DOUBLES, uiBut::rect, square_f(), CurveProfile::table, wmEvent::type, ui_numedit_apply(), ui_numedit_but_CURVEPROFILE(), UI_SCALE_FAC, ui_window_to_block(), wmEvent::val, CurveProfile::view_rect, WM_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, and CurveProfilePoint::x.
Referenced by ui_do_button().
|
static |
Definition at line 5196 of file interface_handlers.cc.
References button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_WAIT_DRAG, C, data, ELEM, EVT_PADENTER, EVT_RETKEY, KM_PRESS, KM_RELEASE, LEFTMOUSE, ret, wmEvent::type, ui_but_contains_point_px_icon(), ui_but_drag_init(), ui_but_drag_is_draggable(), ui_but_is_drag_toggle(), ui_view_item_find_mouse_over(), wmEvent::val, WM_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, and wmEvent::xy.
Referenced by ui_do_but_ANY_drag_toggle(), ui_do_but_LISTROW(), ui_do_but_VIEW_ITEM(), and ui_do_button().
|
static |
Definition at line 4623 of file interface_handlers.cc.
References button_tooltip_timer_reset(), C, data, ED_region_tag_redraw(), KM_RELEASE, ui_but_extra_operator_icon_apply(), ui_but_extra_operator_icon_mouse_over_get(), and wmEvent::val.
Referenced by ui_do_but_SEARCH_UNLINK(), ui_do_but_textedit(), ui_do_but_TOG(), and ui_do_button().
|
static |
Definition at line 4649 of file interface_handlers.cc.
References data, ED_region_tag_redraw_no_rebuild(), uiBut::extra_op_icons, uiButExtraOpIcon::highlighted, LISTBASE_FOREACH, and ui_but_extra_operator_icon_mouse_over_get().
Referenced by ui_do_but_textedit(), and ui_handle_button_event().
|
static |
Definition at line 6333 of file interface_handlers.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_NUM_EDITING, C, data, EVT_ESCKEY, KM_PRESS, KM_RELEASE, LEFTMOUSE, MOUSEMOVE, uiBut::rect, wmEvent::type, ui_numedit_apply(), ui_window_to_block(), wmEvent::val, WM_UI_HANDLER_BREAK, and WM_UI_HANDLER_CONTINUE.
Referenced by ui_do_button().
|
static |
Definition at line 8108 of file interface_handlers.cc.
References button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_NUM_EDITING, C, data, EVT_BACKSPACEKEY, EVT_ESCKEY, KM_PRESS, KM_RELEASE, LEFTMOUSE, MOUSEMOVE, uiBut::poin, wmEvent::type, ui_numedit_apply(), ui_numedit_but_HISTOGRAM(), ui_window_to_block(), wmEvent::val, WM_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, and Histogram::ymax.
Referenced by ui_do_button().
|
static |
Definition at line 4742 of file interface_handlers.cc.
References uiBut::active, BLI_assert, button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_WAIT_KEY_EVENT, C, data, uiBut::drawstr, ED_region_tag_redraw(), ELEM, EVT_BUT_OPEN, EVT_CAPSLOCKKEY, EVT_ESCKEY, EVT_PADENTER, EVT_RETKEY, EVT_UNKNOWNKEY, HotkeyEvent, ISHOTKEY, ISMOUSE_MOTION, KM_PRESS, LEFTMOUSE, uiButHotkeyEvent::modifier_key, uiHandleButtonData::region, RPT_WARNING, uiBut::type, wmEvent::type, ui_but_contains_point_px(), ui_but_update(), ui_but_value_set(), wmEvent::val, WM_global_report(), WM_key_event_string(), WM_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, and wmEvent::xy.
Referenced by ui_do_button().
|
static |
Definition at line 7310 of file interface_handlers.cc.
References uiBut::block, button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_NUM_EDITING, C, clamp_f(), uiBut::custom_data, data, ELEM, EVT_BACKSPACEKEY, EVT_ESCKEY, ColorPicker::hsv_perceptual, hsv_to_rgb_v(), KM_PRESS, KM_RELEASE, KM_SHIFT, LEFTMOUSE, len, MEM_calloc_arrayN(), MEM_freeN(), wmEvent::modifier, MOUSEMOVE, NDOF_MOTION, RIGHTMOUSE, RNA_property_array_length(), RNA_property_float_get_default_array(), RNA_property_update(), uiBut::rnapoin, uiBut::rnaprop, snap(), wmEvent::type, ui_apply_but(), ui_apply_but_func(), ui_but_hsv_set(), ui_but_v3_get(), ui_but_v3_set(), ui_color_picker_hsv_to_rgb(), ui_color_picker_rgb_to_hsv_compat(), ui_event_is_snap(), ui_event_to_snap(), ui_numedit_apply(), ui_numedit_but_HSVCIRCLE(), ui_window_to_block(), wmEvent::val, WHEELDOWNMOUSE, WHEELUPMOUSE, WM_UI_HANDLER_BREAK, and WM_UI_HANDLER_CONTINUE.
Referenced by ui_do_button().
|
static |
Definition at line 7035 of file interface_handlers.cc.
References uiBut::block, button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_NUM_EDITING, C, uiBut::custom_data, data, ELEM, EVT_BACKSPACEKEY, EVT_ESCKEY, uiButHSVCube::gradient_type, ColorPicker::hsv_perceptual, KM_PRESS, KM_RELEASE, KM_SHIFT, LEFTMOUSE, len, wmEvent::modifier, MOUSEMOVE, NDOF_MOTION, RIGHTMOUSE, RNA_property_array_length(), RNA_property_float_get_default_array(), RNA_property_update(), uiBut::rnapoin, uiBut::rnaprop, snap(), wmEvent::type, ui_apply_but(), ui_apply_but_func(), ui_but_v3_get(), ui_but_v3_set(), ui_color_picker_to_rgb_HSVCUBE_v(), ui_event_is_snap(), ui_event_to_snap(), UI_GRAD_L_ALT, UI_GRAD_V_ALT, ui_numedit_apply(), ui_numedit_but_HSVCUBE(), ui_rgb_to_color_picker_HSVCUBE_compat_v(), ui_rgb_to_color_picker_HSVCUBE_v(), ui_window_to_block(), wmEvent::val, WM_UI_HANDLER_BREAK, and WM_UI_HANDLER_CONTINUE.
Referenced by ui_do_button().
|
static |
Definition at line 4815 of file interface_handlers.cc.
References button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_WAIT_KEY_EVENT, C, data, ELEM, EVT_PADENTER, EVT_RETKEY, ISMOUSE_MOTION, KM_PRESS, LEFTMOUSE, wmEvent::type, ui_but_value_set(), wmEvent::val, WM_key_event_string(), WM_UI_HANDLER_BREAK, and WM_UI_HANDLER_CONTINUE.
Referenced by ui_do_button().
|
static |
Definition at line 6384 of file interface_handlers.cc.
References BUTTON_ACTIVATE_TEXT_EDITING, BUTTON_STATE_HIGHLIGHT, C, data, ELEM, EVT_PADENTER, EVT_RETKEY, KM_CTRL, KM_DBL_CLICK, KM_PRESS, LEFTMOUSE, wmEvent::modifier, wmEvent::type, ui_but_list_row_text_activate(), ui_do_but_EXIT(), wmEvent::val, and WM_UI_HANDLER_BREAK.
Referenced by ui_do_button().
|
static |
Definition at line 5670 of file interface_handlers.cc.
References abs, BLI_assert, button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_NUM_EDITING, BUTTON_STATE_TEXT_EDITING, BUTTON_STATE_TEXT_SELECTING, C, copy_v2_v2_int(), data, uiBut::drawflag, ELEM, EVT_BUT_OPEN, EVT_ESCKEY, EVT_MINUSKEY, EVT_PADENTER, EVT_RETKEY, FLT_MAX, uiHandleButtonMulti::INIT_ENABLE, uiHandleButtonMulti::INIT_SETUP, KM_CTRL, KM_PRESS, KM_RELEASE, KM_SHIFT, LEFTMOUSE, max_ff(), max_ii(), min_ff(), min_ii(), wmEvent::modifier, MOUSEMOVE, MOUSEPAN, Num, powf, uiButNumber::precision, PROP_SCALE_LOG, uiBut::rect, RIGHTMOUSE, round_fl_to_int_clamp(), roundf, snap(), uiBut::softmax, uiBut::softmin, uiButNumber::step_size, uiBut::type, wmEvent::type, UI_BUT_HOVER_LEFT, UI_BUT_HOVER_RIGHT, ui_but_is_cursor_warp(), ui_but_is_float(), ui_but_scale_type(), ui_do_but_textedit(), ui_do_but_textedit_select(), ui_event_is_snap(), ui_event_to_snap(), ui_multibut_states_apply(), ui_numedit_apply(), ui_numedit_but_NUM(), ui_numedit_set_active(), ui_pan_to_scroll(), UI_PRECISION_FLOAT_SCALE, UI_PROP_SCALE_LOG_SNAP_OFFSET, ui_window_to_block(), UNLIKELY, wmEvent::val, WHEELDOWNMOUSE, WHEELUPMOUSE, WM_event_drag_threshold(), WM_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, rctf::xmax, rctf::xmin, and wmEvent::xy.
Referenced by ui_do_button().
|
static |
Definition at line 6268 of file interface_handlers.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), uiBut::block, button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_NUM_EDITING, C, data, ED_region_tag_refresh_ui(), EVT_ESCKEY, KM_PRESS, KM_RELEASE, LEFTMOUSE, MOUSEMOVE, uiBut::rect, wmEvent::type, ui_block_is_popup_any(), ui_numedit_apply(), ui_numedit_but_SLI(), ui_window_to_block(), wmEvent::val, WM_event_drag_threshold(), WM_UI_HANDLER_BREAK, and WM_UI_HANDLER_CONTINUE.
Referenced by ui_do_button().
|
static |
Definition at line 5006 of file interface_handlers.cc.
References C, data, ELEM, EVT_BUT_OPEN, EVT_PADENTER, EVT_RETKEY, KM_RELEASE, LEFTMOUSE, wmEvent::type, ui_do_but_extra_operator_icon(), ui_do_but_TEX(), wmEvent::val, and WM_UI_HANDLER_BREAK.
Referenced by ui_do_button().
|
static |
Definition at line 6038 of file interface_handlers.cc.
References abs, BLI_rctf_cent_x(), BLI_rctf_size_x(), button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_NUM_EDITING, BUTTON_STATE_TEXT_EDITING, BUTTON_STATE_TEXT_SELECTING, C, CLAMP, copy_v2_fl(), copy_v2_v2_int(), data, ELEM, EVT_ESCKEY, EVT_MINUSKEY, EVT_PADENTER, EVT_RETKEY, float, FLT_MAX, uiHandleButtonMulti::INIT_ENABLE, uiHandleButtonMulti::INIT_SETUP, KM_ALT, KM_CTRL, KM_PRESS, KM_RELEASE, KM_SHIFT, LEFTMOUSE, wmEvent::modifier, MOUSEMOVE, MOUSEPAN, powf, PROP_SCALE_LOG, uiBut::rect, RIGHTMOUSE, roundf, uiBut::softmax, uiBut::softmin, uiBut::type, wmEvent::type, ui_but_is_float(), ui_but_scale_type(), ui_do_but_textedit(), ui_do_but_textedit_select(), ui_event_is_snap(), ui_multibut_states_apply(), ui_numedit_apply(), ui_numedit_but_SLI(), ui_pan_to_scroll(), UI_PROP_SCALE_LOG_SNAP_OFFSET, ui_window_to_block(), wmEvent::val, WHEELDOWNMOUSE, WHEELUPMOUSE, WM_event_drag_threshold(), WM_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, rctf::xmax, rctf::xmin, and wmEvent::xy.
Referenced by ui_do_button().
|
static |
Definition at line 4846 of file interface_handlers.cc.
References button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_TEXT_EDITING, BUTTON_STATE_TEXT_SELECTING, C, uiBut::custom_data, data, ELEM, EVT_PADENTER, EVT_RETKEY, KM_CLICK, KM_CTRL, KM_DBL_CLICK, KM_PRESS, LEFTMOUSE, wmEvent::modifier, PROP_POINTER, PROP_STRING, RNA_property_type(), uiBut::rnaprop, wmEvent::type, ui_do_but_ANY_drag_toggle(), ui_do_but_textedit(), ui_do_but_textedit_select(), wmEvent::val, WM_UI_HANDLER_BREAK, and WM_UI_HANDLER_CONTINUE.
Referenced by ui_do_button().
|
static |
Definition at line 4958 of file interface_handlers.cc.
References uiButSearch::arg, button_activate_state(), BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_TEXT_EDITING, BUTTON_STATE_TEXT_SELECTING, C, data, ELEM, uiBut::emboss, EVT_BUT_OPEN, EVT_PADENTER, EVT_RETKEY, uiBut::func_argN, KM_CTRL, KM_PRESS, LEFTMOUSE, wmEvent::modifier, blender::ui::None, blender::ui::NoneOrStatus, SearchMenu, uiBut::type, wmEvent::type, ui_but_extra_operator_icon_mouse_over_get(), UI_but_is_utf8(), ui_do_but_text_value_cycle(), ui_do_but_textedit(), ui_do_but_textedit_select(), wmEvent::val, WHEELDOWNMOUSE, WHEELUPMOUSE, WM_UI_HANDLER_BREAK, and WM_UI_HANDLER_CONTINUE.
Referenced by ui_do_but_SEARCH_UNLINK(), and ui_do_button().
|
static |
Increment or decrement an integer value within the text of a button while hovering over it.
Definition at line 4894 of file interface_handlers.cc.
References BLI_assert, BLI_path_sequence_decode(), BLI_path_sequence_encode(), BLI_str_rstrip_digits(), BUTTON_STATE_HIGHLIGHT, C, data, ELEM, MEM_calloc_arrayN(), MEM_freeN(), num, ui_but_set_string_interactive(), ui_but_string_get_dynamic(), ui_but_string_get_ex(), ui_but_string_get_maxncpy(), UI_PRECISION_FLOAT_MAX, WM_UI_HANDLER_BREAK, and WM_UI_HANDLER_CONTINUE.
Referenced by ui_do_but_TEX().
|
static |
Definition at line 3792 of file interface_handlers.cc.
References ATTR_FALLTHROUGH, AUTOCOMPLETE_FULL_MATCH, uiBut::autocomplete_func, AUTOCOMPLETE_NO_MATCH, BLI_assert, BLI_str_cursor_step_bounds_utf8(), BLI_str_utf8_size_or_error(), button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_TEXT_SELECTING, C, uiBut::changed, CLAMP, CTX_wm_window(), data, ED_region_tag_redraw(), ED_region_tag_refresh_ui(), uiTextEdit::edit_string, ELEM, EVT_AKEY, EVT_BACKSPACEKEY, EVT_CKEY, EVT_DELKEY, EVT_DOWNARROWKEY, EVT_ENDKEY, EVT_ESCKEY, EVT_HOMEKEY, EVT_LEFTARROWKEY, EVT_PADENTER, EVT_PADPERIOD, EVT_RETKEY, EVT_RIGHTARROWKEY, EVT_TABKEY, EVT_UPARROWKEY, EVT_VKEY, EVT_XKEY, EVT_ZKEY, uiBut::flag, jump(), KM_ALT, KM_CTRL, KM_DBL_CLICK, KM_OSKEY, KM_PRESS, KM_RELEASE, KM_SHIFT, LEFTMOUSE, wmEvent::modifier, MOUSEMOVE, MOUSEPAN, Num, NumSlider, uiBut::pos, RIGHTMOUSE, wmWindow::runtime, uiTextEdit::sel_pos_init, uiBut::selend, uiBut::selsta, STRCUR_DIR_NEXT, STRCUR_DIR_PREV, STRCUR_JUMP_ALL, STREQ, uiBut::type, wmEvent::type, ui_apply_but(), ui_but_contains_pt(), UI_BUT_TEXTEDIT_UPDATE, ui_but_update_edited(), ui_do_but_extra_operator_icon(), ui_do_but_extra_operator_icons_mousemove(), ui_mouse_motion_keynav_init(), ui_mouse_motion_keynav_test(), ui_searchbox_event(), ui_searchbox_inside(), ui_searchbox_update(), ui_textedit_autocomplete(), UI_TEXTEDIT_COPY, ui_textedit_copypaste(), UI_TEXTEDIT_CUT, ui_textedit_delete(), ui_textedit_delete_selection(), ui_textedit_insert_buf(), ui_textedit_jump_type_from_event(), ui_textedit_move(), ui_textedit_next_but(), UI_TEXTEDIT_PASTE, ui_textedit_prev_but(), ui_textedit_set_cursor_pos(), ui_textedit_string_set(), ui_textedit_undo(), ui_textedit_undo_push(), ui_window_to_block_fl(), uiTextEdit::undo_stack_text, update(), wmEvent::utf8_buf, wmEvent::val, WHEELDOWNMOUSE, WHEELUPMOUSE, WM_IME_COMPOSITE_END, WM_IME_COMPOSITE_EVENT, WM_IME_COMPOSITE_START, WM_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, and wmEvent::xy.
Referenced by ui_do_but_NUM(), ui_do_but_SLI(), ui_do_but_TAB(), and ui_do_but_TEX().
|
static |
Definition at line 4183 of file interface_handlers.cc.
References button_activate_state(), BUTTON_STATE_TEXT_EDITING, C, data, ED_region_tag_redraw(), KM_RELEASE, LEFTMOUSE, MOUSEMOVE, wmEvent::type, ui_but_update(), ui_textedit_set_cursor_select(), ui_window_to_block(), wmEvent::val, WM_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, and wmEvent::xy.
Referenced by ui_do_but_NUM(), ui_do_but_SLI(), ui_do_but_TAB(), and ui_do_but_TEX().
|
static |
Definition at line 5019 of file interface_handlers.cc.
References uiBut::active, BLI_assert, uiBut::block, ButToggle, button_activate_exit(), button_activate_init(), BUTTON_ACTIVATE_OVER, button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, C, Checkbox, CheckboxN, data, ELEM, EVT_PADENTER, EVT_RETKEY, IconToggle, IconToggleN, KM_CTRL, KM_DBL_CLICK, KM_PRESS, KM_RELEASE, LEFTMOUSE, wmEvent::modifier, MOUSEPAN, uiBlock::next_but(), uiBlock::prev_but(), Row, Toggle, ToggleN, uiBut::type, wmEvent::type, ui_apply_but(), ui_block_is_menu(), ui_but_find_select_in_enum(), ui_but_find_select_in_enum__cmp(), ui_do_but_ANY_drag_toggle(), ui_do_but_extra_operator_icon(), ui_pan_to_scroll(), wmEvent::val, WHEELDOWNMOUSE, WHEELUPMOUSE, WM_UI_HANDLER_BREAK, and WM_UI_HANDLER_CONTINUE.
Referenced by ui_do_button().
|
static |
Definition at line 8272 of file interface_handlers.cc.
References button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_NUM_EDITING, C, data, EVT_ESCKEY, KM_PRESS, KM_RELEASE, KM_SHIFT, LEFTMOUSE, wmEvent::modifier, MOUSEMOVE, wmEvent::type, ui_numedit_apply(), ui_numedit_but_TRACKPREVIEW(), ui_window_to_block(), wmEvent::val, WM_UI_HANDLER_BREAK, and WM_UI_HANDLER_CONTINUE.
Referenced by ui_do_button().
|
static |
Definition at line 6747 of file interface_handlers.cc.
References button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_NUM_EDITING, C, data, ELEM, EVT_ESCKEY, KM_PRESS, KM_RELEASE, LEFTMOUSE, MOUSEMOVE, RIGHTMOUSE, snap(), wmEvent::type, ui_event_is_snap(), ui_event_to_snap(), ui_numedit_apply(), ui_numedit_but_UNITVEC(), ui_window_to_block(), wmEvent::val, WM_UI_HANDLER_BREAK, and WM_UI_HANDLER_CONTINUE.
Referenced by ui_do_button().
|
static |
Definition at line 5143 of file interface_handlers.cc.
References BLI_assert, uiBut::block, button_activate_state(), BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_WAIT_DRAG, C, data, ED_region_tag_redraw(), ED_region_tag_refresh_ui(), force_activate_view_item_but(), KM_DBL_CLICK, KM_PRESS, LEFTMOUSE, uiBut::type, wmEvent::type, ui_block_is_popup_any(), ui_but_extra_operator_icon_mouse_over_get(), ui_do_but_EXIT(), UI_view_item_begin_rename(), UI_view_item_can_rename(), UI_view_item_supports_drag(), wmEvent::val, uiButViewItem::view_item, ViewItem, WM_UI_HANDLER_BREAK, and WM_UI_HANDLER_CONTINUE.
Referenced by ui_do_button().
|
static |
Definition at line 8181 of file interface_handlers.cc.
References button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_NUM_EDITING, C, data, EVT_BACKSPACEKEY, EVT_ESCKEY, KM_PRESS, KM_RELEASE, LEFTMOUSE, MOUSEMOVE, uiBut::poin, wmEvent::type, ui_numedit_apply(), ui_numedit_but_WAVEFORM(), ui_window_to_block(), wmEvent::val, Scopes::wavefrm_yfac, WM_UI_HANDLER_BREAK, and WM_UI_HANDLER_CONTINUE.
Referenced by ui_do_button().
Definition at line 8319 of file interface_handlers.cc.
References abs, blender::ui::AbstractViewItem::activate_for_context_menu(), uiBut::active, uiBlock::aspect, BLI_assert, Block, But, ButMenu, ButToggle, BUTTON_ACTIVATE_OVER, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_NUM_EDITING, BUTTON_STATE_TEXT_EDITING, C, Checkbox, CheckboxN, Color, ColorBand, Curve, CurveProfile, data, Decorator, dot_v2v2(), DRAG_MULTINUM_THRESHOLD_DRAG_X, DRAG_MULTINUM_THRESHOLD_DRAG_Y, DRAG_MULTINUM_THRESHOLD_VERTICAL, ED_KEYMAP_VIEW2D, ED_region_tag_redraw(), ED_region_tag_redraw_no_rebuild(), ELEM, EVT_BUT_OPEN, EVT_CKEY, EVT_PADENTER, EVT_RETKEY, EVT_VKEY, Extra, fabsf, uiBut::flag, Grip, Histogram, HotkeyEvent, HsvCircle, HsvCube, IconToggle, IconToggleN, Image, uiHandleButtonMulti::INIT_DISABLE, uiHandleButtonMulti::INIT_ENABLE, uiHandleButtonMulti::INIT_SETUP, uiHandleButtonMulti::INIT_UNSET, is_disabled, ISMOUSE_MOTION, KeyEvent, KM_ALT, KM_CTRL, KM_OSKEY, KM_PRESS, KM_RELEASE, KM_SHIFT, Label, LEFTMOUSE, len_squared_v2(), ListBox, ListRow, Menu, wmEvent::modifier, NDOF_MOTION, NodeSocket, normalize_v2_v2(), Num, NumSlider, uiBut::poin, uiBut::pointype, Popover, wmEvent::prev_xy, PreviewTile, Progress, Pulldown, RIGHTMOUSE, Roundbox, Row, Scroll, SearchMenu, Sepr, SeprLine, SeprSpacer, sqrtf, Tab, Text, Toggle, ToggleN, TrackPreview, uiBut::type, wmEvent::type, ui_but_copy(), UI_BUT_DISABLED, ui_but_list_row_text_activate(), ui_but_paste(), UI_BUT_VALUE_CLEAR, ui_do_but_BLOCK(), ui_do_but_BUT(), ui_do_but_COLOR(), ui_do_but_COLORBAND(), ui_do_but_CURVE(), ui_do_but_CURVEPROFILE(), ui_do_but_EXIT(), ui_do_but_extra_operator_icon(), ui_do_but_GRIP(), ui_do_but_HISTOGRAM(), ui_do_but_HOTKEYEVT(), ui_do_but_HSVCIRCLE(), ui_do_but_HSVCUBE(), ui_do_but_KEYEVT(), ui_do_but_LISTROW(), ui_do_but_NUM(), ui_do_but_SCROLL(), ui_do_but_SEARCH_UNLINK(), ui_do_but_SLI(), ui_do_but_TAB(), ui_do_but_TEX(), ui_do_but_TOG(), ui_do_but_TRACKPREVIEW(), ui_do_but_UNITVEC(), ui_do_but_VIEW_ITEM(), ui_do_but_WAVEFORM(), ui_multibut_states_create(), ui_multibut_states_tag(), ui_popup_context_menu_for_button(), ui_view_item_find_mouse_over(), Unitvec, wmEvent::val, Vectorscope, uiButViewItem::view_item, ViewItem, Waveform, WM_cursor_modal_restore(), WM_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, and wmEvent::xy.
Referenced by ui_but_activate_event(), ui_handle_button_event(), and ui_handle_button_over().
|
static |
Definition at line 1675 of file interface_handlers.cc.
References uiBut::flag, uiButDecorator::toggle_keyframe_on_click, UI_BUT_DISABLED, ui_but_is_bool(), and UI_but_is_decorator.
Referenced by ui_but_drag_init(), ui_but_is_drag_toggle(), and ui_drag_toggle_set_xy_xy().
|
static |
Definition at line 1692 of file interface_handlers.cc.
References PointerRNA::data, uiBut::icon, uiBut::iconadd, uiBut::poin, uiBut::rnapoin, ui_but_is_bool(), and ui_but_is_pushed().
Referenced by ui_but_drag_init(), and ui_drag_toggle_set_xy_xy().
|
static |
Initialize Locking:
Check if we need to initialize the lock axis by finding if the first button we mouse over is X or Y aligned, then lock the mouse to that axis after.
Definition at line 1771 of file interface_handlers.cc.
References BLI_rctf_cent_x(), BLI_rctf_cent_y(), uiDragToggleHandle::but_cent_start, C, copy_v2_v2_int(), CTX_wm_region(), ED_region_tag_redraw(), fabsf, uiBut::flag, uiDragToggleHandle::is_xy_lock_init, len_manhattan_v2v2(), uiDragToggleHandle::pushed_state, uiBut::rect, UI_BUT_DRAG_LOCK, ui_but_find_mouse_over_ex(), ui_drag_toggle_set_xy_xy(), xy, uiDragToggleHandle::xy_last, and uiDragToggleHandle::xy_lock.
Referenced by ui_handler_region_drag_toggle().
|
static |
Definition at line 1718 of file interface_handlers.cc.
References BLI_rctf_isect_segment(), C, float, LISTBASE_FOREACH, ARegion::regiontype, RGN_TYPE_TEMPORARY, ARegion::runtime, U, ui_apply_but_funcs_after(), UI_but_execute(), ui_but_is_interactive(), ui_but_update_edited(), ui_but_update_preferences_dirty(), ui_drag_toggle_but_is_supported(), ui_drag_toggle_but_pushed_state(), and ui_window_to_block_fl().
Referenced by ui_drag_toggle_set().
|
static |
Definition at line 824 of file interface_handlers.cc.
References ELEM, EVT_LEFTCTRLKEY, EVT_LEFTSHIFTKEY, EVT_RIGHTCTRLKEY, EVT_RIGHTSHIFTKEY, and wmEvent::type.
Referenced by ui_do_but_HSVCIRCLE(), ui_do_but_HSVCUBE(), ui_do_but_NUM(), ui_do_but_SLI(), and ui_do_but_UNITVEC().
Definition at line 818 of file interface_handlers.cc.
References KM_CTRL, KM_SHIFT, wmEvent::modifier, SNAP_OFF, SNAP_ON, and SNAP_ON_SMALL.
Referenced by ui_do_but_HSVCIRCLE(), ui_do_but_HSVCUBE(), ui_do_but_NUM(), and ui_do_but_UNITVEC().
| void ui_handle_afterfunc_add_operator | ( | wmOperatorType * | ot, |
| blender::wm::OpCallContext | opcontext ) |
Definition at line 890 of file interface_handlers.cc.
References ot, and ui_handle_afterfunc_add_operator_ex().
Referenced by panel_activate_state().
|
static |
For executing operators after the button is pressed. (some non operator buttons need to trigger operators), see: #37795.
| context_but | A button from which to get the context from (uiBut.context) for the operator execution. |
Definition at line 867 of file interface_handlers.cc.
References uiAfterFunc::context, uiBut::context, uiAfterFunc::drawstr, uiAfterFunc::opcontext, uiAfterFunc::opptr, uiAfterFunc::optype, ot, ui_afterfunc_new(), and ui_but_drawstr_without_sep_char().
Referenced by ui_handle_afterfunc_add_operator().
|
static |
Definition at line 9535 of file interface_handlers.cc.
References uiBut::active, button_activate_exit(), button_activate_init(), C, data, and ui_region_find_active_but().
Referenced by button_activate_init(), ui_handle_button_activate_by_type(), ui_handle_button_event(), ui_handle_menu_event(), and ui_handler_region_menu().
Use for key accelerator or default key to activate the button even if its not active.
Definition at line 9553 of file interface_handlers.cc.
References Block, ButMenu, BUTTON_ACTIVATE, BUTTON_ACTIVATE_APPLY, BUTTON_ACTIVATE_OPEN, C, CLOG_WARN, ELEM, LOG, Menu, Pulldown, Row, uiBut::type, and ui_handle_button_activate().
Referenced by ui_handle_menu_event().
Definition at line 9677 of file interface_handlers.cc.
References uiBut::active, ATTR_FALLTHROUGH, uiBut::block, button_activate_exit(), button_activate_init(), BUTTON_ACTIVATE_OVER, button_activate_state(), BUTTON_ACTIVATE_TEXT_EDITING, BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_INIT, BUTTON_STATE_MENU_OPEN, BUTTON_STATE_WAIT_DRAG, BUTTON_STATE_WAIT_FLASH, BUTTON_STATE_WAIT_RELEASE, button_tooltip_timer_reset(), C, Color, CTX_wm_screen(), wmEvent::customdata, data, ED_region_tag_redraw_no_rebuild(), ELEM, wmTooltipState::event_xy, EVT_BUT_CANCEL, uiBlock::flag, uiBut::flag, uiBlock::handle, uiBut::hold_func, KM_PRESS, KM_RELEASE, l, LEFTMOUSE, len_manhattan_v2v2_int(), MEM_SAFE_FREE, uiPopupBlockHandle::menuretval, MIDDLEMOUSE, MOUSEMOVE, MOUSEPAN, wmEvent::prev_press_xy, PROP_FLOAT, PROP_INT, RIGHTMOUSE, RNA_property_type(), uiBut::rnaprop, state, TIMER, bScreen::tool_tip, uiBut::type, wmEvent::type, ui_block_is_menu(), ui_block_is_pie_menu(), UI_BLOCK_POPOVER_ONCE, ui_blocks_set_tooltips(), ui_but_contains_point_px(), UI_BUT_DISABLED, UI_but_find_mouse_over(), ui_but_is_editable(), ui_but_is_editable_as_text(), ui_but_is_popover_once_compat(), ui_but_range_set_hard(), ui_but_range_set_soft(), UI_but_tooltip_timer_remove(), ui_but_value_set(), ui_button_value_default(), ui_do_but_extra_operator_icons_mousemove(), ui_do_button(), ui_handle_button_activate(), UI_HOVER, ui_region_contains_point_px(), UI_RETURN_CANCEL, UI_SELECT, wmEvent::val, WHEELDOWNMOUSE, WHEELUPMOUSE, WINDEACTIVATE, WM_event_drag_threshold(), WM_event_timer_add(), WM_event_timer_remove(), WM_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, and wmEvent::xy.
Referenced by ui_handle_menu_button(), ui_handle_region_semi_modal_buttons(), ui_handler_region_menu(), and ui_region_handler().
Definition at line 9452 of file interface_handlers.cc.
References uiBut::active, uiBut::block, button_activate_init(), BUTTON_ACTIVATE_OVER, C, uiHandleButtonData::disable_force, EVT_BUT_OPEN, KM_ALT, KM_CTRL, wmEvent::modifier, MOUSEMOVE, uiHandleButtonData::tooltip_force, wmEvent::type, ui_but_find_mouse_over_ex(), ui_but_find_open_event(), ui_but_is_interactive(), ui_do_button(), WM_UI_HANDLER_CONTINUE, and wmEvent::xy.
Referenced by ui_handle_menu_button(), and ui_region_handler().
Definition at line 10240 of file interface_handlers.cc.
References uiBut::active, uiBut::block, button_activate_exit(), button_activate_state(), BUTTON_STATE_HIGHLIGHT, C, Color, copy_v3_v3(), data, ISKEYBOARD, Menu, uiPopupBlockHandle::menuretval, MOUSEMOVE, uiPopupBlockHandle::retvalue, uiPopupBlockHandle::retvec, uiBut::type, wmEvent::type, ui_apply_but(), ui_but_contains_point_px(), ui_but_update(), UI_RETURN_CANCEL, UI_RETURN_OK, UI_RETURN_OUT, UI_RETURN_UPDATE, uiHandleButtonData::used_mouse, and wmEvent::xy.
Referenced by ui_handle_menu_return_submenu(), and ui_handler_region_menu().
|
static |
Definition at line 9995 of file interface_handlers.cc.
References uiBut::block, C, CLAMP, uiListDyn::columns, uiBut::custom_data, uiList::dyn_data, ED_region_tag_redraw(), ED_region_tag_refresh_ui(), ELEM, EVT_DOWNARROWKEY, EVT_LEFTARROWKEY, EVT_RIGHTARROWKEY, EVT_UPARROWKEY, uiList::flag, wmEvent::flag, uiListDyn::height, i, uiListDyn::items_filter_flags, uiListDyn::items_filter_neworder, uiListDyn::items_len, uiListDyn::items_shown, KM_CTRL, KM_PRESS, KM_SHIFT, len, uiList::list_grip, uiList::list_scroll, max, MEM_freeN(), MEM_malloc_arrayN(), min, wmEvent::modifier, MOUSEPAN, RNA_property_int_get(), RNA_property_int_range(), RNA_property_int_set(), RNA_property_update(), uiBut::rnapoin, uiBut::rnaprop, ui_apply_but_undo(), UI_LIST_AUTO_SIZE_THRESHOLD, ui_list_get_increment(), UI_list_item_index_is_filtered_visible(), ui_pan_to_scroll(), ui_window_to_block(), UILST_SCROLL_TO_ACTIVE_ITEM, uiListDyn::visual_height, uiListDyn::visual_height_min, WHEELDOWNMOUSE, WHEELUPMOUSE, WM_EVENT_SCROLL_INVERT, WM_UI_HANDLER_BREAK, and WM_UI_HANDLER_CONTINUE.
Referenced by ui_handle_menus_recursive(), and ui_region_handler().
|
static |
Definition at line 10602 of file interface_handlers.cc.
References uiBut::active, uiBut::block, C, uiPopupBlockHandle::ctx_area, uiPopupBlockHandle::ctx_region, CTX_wm_area(), CTX_wm_area_set(), CTX_wm_region(), CTX_wm_region_set(), ISMOUSE_BUTTON, KM_RELEASE, uiHandleButtonData::region, uiPopupBlockHandle::region, SearchMenu, uiBut::type, wmEvent::type, ui_block_is_menu(), ui_block_is_pie_menu(), ui_but_contains_point_px(), ui_handle_button_event(), ui_handle_button_over(), ui_region_auto_open_clear(), ui_region_contains_point_px(), ui_region_find_active_but(), wmEvent::val, and wmEvent::xy.
Referenced by ui_handle_menu_event(), ui_handle_menus_recursive(), and ui_pie_handler().
|
static |
Definition at line 10713 of file interface_handlers.cc.
References activate(), uiBut::active, uiPopupBlockCreate::arg, ATTR_FALLTHROUGH, BLI_rctf_isect_pt(), Block, uiBlock::block_event_func, But, ButMenu, BUTTON_ACTIVATE, BUTTON_ACTIVATE_APPLY, button_activate_exit(), BUTTON_ACTIVATE_OPEN, button_modal_state(), uiBlock::buttons, C, uiHandleButtonData::cancel, copy_v2_v2_int(), count, CTX_wm_manager(), CTX_wm_window(), wmWindow::cursor, wmEvent::customdata, uiBlock::direction, uiPopupBlockHandle::dotowards, ELEM, uiPopupBlockCreate::event_xy, EVT_AKEY, EVT_BKEY, EVT_CKEY, EVT_DKEY, EVT_DOWNARROWKEY, EVT_EIGHTKEY, EVT_EKEY, EVT_ENDKEY, EVT_ESCKEY, EVT_FIVEKEY, EVT_FKEY, EVT_FOURKEY, EVT_GKEY, EVT_HKEY, EVT_HOMEKEY, EVT_IKEY, EVT_JKEY, EVT_KKEY, EVT_LEFTARROWKEY, EVT_LKEY, EVT_MKEY, EVT_NINEKEY, EVT_NKEY, EVT_OKEY, EVT_ONEKEY, EVT_PAD0, EVT_PAD1, EVT_PAD2, EVT_PAD3, EVT_PAD4, EVT_PAD5, EVT_PAD6, EVT_PAD7, EVT_PAD8, EVT_PAD9, EVT_PADENTER, EVT_PAGEDOWNKEY, EVT_PAGEUPKEY, EVT_PKEY, EVT_QKEY, EVT_RETKEY, EVT_RIGHTARROWKEY, EVT_RKEY, EVT_SEVENKEY, EVT_SIXKEY, EVT_SKEY, EVT_SPACEKEY, EVT_THREEKEY, EVT_TKEY, EVT_TWOKEY, EVT_UKEY, EVT_UPARROWKEY, EVT_VKEY, EVT_WKEY, EVT_XKEY, EVT_YKEY, EVT_ZEROKEY, EVT_ZKEY, ListBase::first, MenuType::flag, uiBlock::flag, wmEvent::flag, uiPopupBlockHandle::grab_xy_prev, IconToggle, IconToggleN, Image, uiPopupBlockHandle::is_grab, uiPopupBlockHandle::keynav_state, KM_ALT, KM_CLICK, KM_DBL_CLICK, KM_PRESS, KM_RELEASE, Label, LEFTMOUSE, Menu, uiPopupBlockHandle::menu_idname, MENU_SCROLL_BOTTOM, MENU_SCROLL_DOWN, MENU_SCROLL_INTERVAL, MENU_SCROLL_TOP, MENU_SCROLL_UP, uiPopupBlockHandle::menuretval, MIDDLEMOUSE, wmWindow::modalcursor, wmEvent::modifier, MOUSEMOVE, MOUSEPAN, uiSafetyRct::next, uiSafetyRct::parent, uiPopupBlockHandle::popup_create_vars, PROP_LAYER, PROP_LAYER_MEMBER, Pulldown, uiBlock::rect, uiPopupBlockHandle::region, RIGHTMOUSE, RNA_property_subtype(), ARegion::runtime, uiBlock::saferct, uiSafetyRct::safety, uiPopupBlockHandle::scrolltimer, SearchOnKeyPress, Sepr, SeprLine, uiHandleButtonData::state, TIMER, uiBut::type, wmEvent::type, U, UI_BLOCK_CLIPBOTTOM, UI_BLOCK_CLIPTOP, ui_block_is_menu(), UI_BLOCK_LOOP, UI_BLOCK_MOVEMOUSE_QUIT, UI_BLOCK_NUMSELECT, UI_BLOCK_OUT_1, UI_BLOCK_POPOVER, UI_BLOCK_POPOVER_ONCE, UI_BLOCK_POPUP_HOLD, UI_BUT_ACTIVE_DEFAULT, ui_but_contains_point_px(), UI_BUT_DISABLED, UI_but_execute(), ui_but_first(), ui_but_last(), ui_but_next(), ui_but_prev(), UI_but_tooltip_timer_remove(), UI_DIR_UP, ui_handle_button_activate(), ui_handle_button_activate_by_type(), ui_handle_menu_button(), ui_handle_menu_letter_press_search(), UI_HIDDEN, ui_menu_pass_event_to_parent_if_nonactive(), ui_menu_scroll_apply_offset_y(), ui_menu_scroll_step(), ui_menu_scroll_test(), ui_menu_scroll_to_but(), ui_menu_scroll_to_y(), ui_mouse_motion_keynav_init(), ui_mouse_motion_keynav_test(), ui_mouse_motion_towards_check(), ui_mouse_motion_towards_init(), ui_mouse_motion_towards_reinit(), ui_pan_to_scroll(), UI_popover_once_clear(), ui_popup_translate(), ui_region_find_active_but(), ui_region_find_first_but_test_flag(), UI_RETURN_CANCEL, UI_RETURN_OK, UI_RETURN_OUT, UI_RETURN_OUT_PARENT, UI_RETURN_POPUP_OK, UI_RETURN_UPDATE, UI_UNIT_Y, ui_window_to_block(), USER_MENU_CLOSE_LEAVE, USER_MENUOPENAUTO, wmEvent::val, WHEELDOWNMOUSE, WHEELUPMOUSE, WM_CURSOR_DEFAULT, WM_CURSOR_HAND, WM_CURSOR_HAND_CLOSED, WM_CURSOR_MOVE, WM_cursor_set(), WM_event_add_mousemove(), WM_EVENT_IS_REPEAT, WM_event_timer_add(), WM_menutype_find(), WM_tooltip_clear(), WM_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, wmEvent::xy, and rctf::ymax.
Referenced by ui_handle_menus_recursive().
|
static |
Definition at line 10686 of file interface_handlers.cc.
References BLI_str_utf8_size_or_error(), EVT_SPACEKEY, blender::wm::InvokeDefault, uiPopupBlockHandle::menu_idname, uiPopupBlockHandle::menuretval, uiAfterFunc::opcontext, uiAfterFunc::opptr, uiAfterFunc::optype, ot, RNA_string_set(), wmEvent::type, ui_afterfunc_new(), UI_RETURN_OK, wmEvent::utf8_buf, WM_operator_properties_create_ptr(), WM_operatortype_find(), WM_UI_HANDLER_BREAK, and WM_UI_HANDLER_CONTINUE.
Referenced by ui_handle_menu_event().
|
static |
Definition at line 11411 of file interface_handlers.cc.
References uiBut::active, BLI_assert, uiPopupBlockHandle::butretval, C, data, uiBlock::flag, uiPopupBlockHandle::menuretval, uiPopupBlockHandle::region, ARegion::runtime, UI_BLOCK_KEEP_OPEN, UI_BLOCK_MOVEMOUSE_QUIT, UI_BLOCK_POPOVER, ui_handle_button_return_submenu(), ui_mouse_motion_towards_reinit(), ui_region_find_active_but(), UI_RETURN_CANCEL, UI_RETURN_OK, UI_RETURN_UPDATE, update(), WM_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, and wmEvent::xy.
Referenced by ui_handle_menus_recursive().
|
static |
Definition at line 11801 of file interface_handlers.cc.
References uiBut::active, BLI_rctf_isect_pt(), C, CTX_wm_region_popup(), CTX_wm_region_popup_set(), data, ED_region_tag_redraw(), ED_region_tag_refresh_ui(), PieMenuData::event_type, uiBlock::flag, IN_RANGE, KM_DBL_CLICK, KM_PRESS, LEFTMOUSE, LISTBASE_FOREACH, uiPopupBlockHandle::menuretval, uiBlock::pie_data, uiBlock::rect, uiPopupBlockHandle::region, uiPopupBlockHandle::retvalue, ARegion::runtime, SearchMenu, TIMER, uiBut::type, wmEvent::type, ui_block_is_menu(), UI_BLOCK_MOVEMOUSE_QUIT, UI_BLOCK_PIE_MENU, UI_BLOCK_POPOVER, ui_handle_list_event(), ui_handle_menu_button(), ui_handle_menu_event(), ui_handle_menu_return_submenu(), ui_handle_menus_recursive(), ui_handle_region_semi_modal_buttons(), ui_handle_view_item_event(), ui_handle_viewlist_items_hover(), ui_layout_panel_header_under_mouse(), ui_layout_panel_toggle_open(), ui_list_find_mouse_over(), ui_mouse_motion_towards_reinit(), ui_panel_drag_collapse_handler_add(), ui_pie_handler(), ui_region_find_active_but(), UI_RETURN_OUT_PARENT, ui_window_to_block(), wmEvent::val, WM_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, and wmEvent::xy.
Referenced by ui_handle_menus_recursive(), ui_handler_region_menu(), and ui_popup_handler().
|
static |
Definition at line 12030 of file interface_handlers.cc.
References BLI_assert, button_modal_state(), C, foreach_semi_modal_but_as_active(), ui_handle_button_event(), ui_region_find_active_but(), and WM_UI_HANDLER_CONTINUE.
Referenced by ui_handle_menus_recursive(), and ui_region_handler().
|
static |
Definition at line 10185 of file interface_handlers.cc.
References C, EVT_PADENTER, EVT_RETKEY, force_activate_view_item_but(), KM_CLICK, KM_PRESS, LEFTMOUSE, wmEvent::modifier, MOUSEMOVE, wmEvent::prev_xy, uiBut::type, wmEvent::type, UI_region_views_clear_search_highlight(), ui_view_item_find_mouse_over(), ui_view_item_find_search_highlight(), UI_view_item_supports_drag(), wmEvent::val, uiButViewItem::view_item, ViewItem, WM_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, and wmEvent::xy.
Referenced by ui_handle_menus_recursive(), and ui_region_handler().
Definition at line 10124 of file interface_handlers.cc.
References BLI_listbase_is_empty(), ED_region_tag_redraw_no_rebuild(), ELEM, uiBut::flag, LISTBASE_FOREACH, ListRow, ARegion::runtime, UI_HOVER, ui_list_row_find_mouse_over(), ARegion::ui_lists, ui_view_item_find_mouse_over(), ui_view_item_find_search_highlight(), ViewItem, WM_UI_HANDLER_CONTINUE, and wmEvent::xy.
Referenced by ui_handle_menus_recursive(), and ui_region_handler().
Definition at line 1834 of file interface_handlers.cc.
References C, CTX_wm_region(), CTX_wm_window(), KM_RELEASE, LEFTMOUSE, wmWindow::modalhandlers, MOUSEMOVE, wmEvent::type, ui_apply_but_undo(), ui_but_find_mouse_over_ex(), ui_drag_toggle_set(), ui_handler_region_drag_toggle(), ui_handler_region_drag_toggle_remove(), wmEvent::val, WM_event_add_mousemove(), WM_event_remove_ui_handler(), WM_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, wmEvent::xy, and uiDragToggleHandle::xy_init.
Referenced by ui_but_drag_init(), ui_handler_region_drag_toggle(), and ui_popup_handler().
|
static |
Definition at line 1828 of file interface_handlers.cc.
References MEM_freeN().
Referenced by ui_but_drag_init(), ui_handler_region_drag_toggle(), and ui_popup_handler().
Definition at line 12118 of file interface_handlers.cc.
References uiBut::active, BLI_rctf_isect_rect_x(), BLI_rctf_isect_rect_y(), BUTTON_ACTIVATE_OVER, button_activate_state(), BUTTON_STATE_MENU_OPEN, C, CTX_wm_region(), CTX_wm_region_popup(), CTX_wm_region_popup_set(), CTX_wm_screen(), data, KM_DBL_CLICK, uiHandleButtonData::menu, MOUSEMOVE, wmEvent::prev_xy, uiBut::rect, uiPopupBlockHandle::region, TIMER, wmEvent::type, ui_apply_but_funcs_after(), ui_blocks_set_tooltips(), UI_but_find_mouse_over(), ui_can_activate_other_menu(), UI_DIR_DOWN, UI_DIR_LEFT, UI_DIR_RIGHT, UI_DIR_UP, ui_handle_button_activate(), ui_handle_button_event(), ui_handle_button_return_submenu(), ui_handle_menus_recursive(), ui_region_find_active_but(), ui_screen_region_find_mouse_over(), wmEvent::val, WM_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, and wmEvent::xy.
Referenced by button_activate_state().
|
static |
Definition at line 9973 of file interface_handlers.cc.
References ELEM, EVT_DOWNARROWKEY, EVT_LEFTARROWKEY, EVT_UPARROWKEY, uiList::filter_sort_flag, uiList::layout_type, UILST_FLT_SORT_REVERSE, UILST_LAYOUT_BIG_PREVIEW_GRID, and WHEELUPMOUSE.
Referenced by ui_handle_list_event().
|
static |
Special function to handle nested menus. let the parent menu get the event.
This allows a menu to be open, but send key events to the parent if there's no active buttons.
Without this keyboard navigation from menus won't work.
Definition at line 10584 of file interface_handlers.cc.
References BLI_assert, uiPopupBlockHandle::menuretval, uiPopupBlockHandle::popup, UI_RETURN_OUT, UI_RETURN_OUT_PARENT, and WM_UI_HANDLER_CONTINUE.
Referenced by ui_handle_menu_event().
Definition at line 10456 of file interface_handlers.cc.
References BLI_assert, uiBlock::buttons, ED_region_tag_redraw(), FLT_MAX, uiBlock::handle, max_ff(), min_ff(), uiBlock::panel, uiBlock::rect, uiPopupBlockHandle::scrolloffset, ui_block_is_menu(), ui_layout_panel_popup_scroll_apply(), UI_MENU_SCROLL_PAD, ui_popup_block_scrolltest(), UI_UNIT_Y, rctf::ymax, and rctf::ymin.
Referenced by ui_handle_menu_event(), ui_menu_scroll_to_but(), and ui_menu_scroll_to_y().
Definition at line 10539 of file interface_handlers.cc.
References BLI_assert, uiBlock::flag, uiBlock::rect, UI_BLOCK_CLIPBOTTOM, UI_BLOCK_CLIPTOP, ui_menu_scroll_to_y(), UI_UNIT_Y, rctf::ymax, and rctf::ymin.
Referenced by ui_handle_menu_event().
|
static |
Definition at line 10439 of file interface_handlers.cc.
References uiBlock::flag, uiBlock::rect, UI_BLOCK_CLIPBOTTOM, UI_BLOCK_CLIPTOP, UI_MENU_SCROLL_MOUSE, and rctf::ymax.
Referenced by ui_handle_menu_event(), and ui_menu_scroll_to_y().
Scroll to activated button.
Definition at line 10501 of file interface_handlers.cc.
References uiBlock::flag, uiBlock::rect, uiBut::rect, UI_BLOCK_CLIPBOTTOM, UI_BLOCK_CLIPTOP, ui_menu_scroll_apply_offset_y(), UI_MENU_SCROLL_ARROW, rctf::ymax, and rctf::ymin.
Referenced by ui_handle_menu_event().
Scroll to y location (in block space, see ui_window_to_block).
Definition at line 10522 of file interface_handlers.cc.
References ui_menu_scroll_apply_offset_y(), ui_menu_scroll_test(), UI_UNIT_Y, and y.
Referenced by ui_handle_menu_event(), and ui_menu_scroll_step().
|
static |
Definition at line 10412 of file interface_handlers.cc.
References copy_v2_v2_int(), uiKeyNavLock::event_xy, uiKeyNavLock::is_keynav, and wmEvent::xy.
Referenced by ui_do_but_textedit(), and ui_handle_menu_event().
|
static |
Return true if key-input isn't blocking mouse-motion, or if the mouse-motion is enough to disable key-input.
Definition at line 10421 of file interface_handlers.cc.
References BUTTON_KEYNAV_PX_LIMIT, uiKeyNavLock::event_xy, uiKeyNavLock::is_keynav, len_manhattan_v2v2_int(), and wmEvent::xy.
Referenced by ui_do_but_textedit(), and ui_handle_menu_event().
|
static |
Definition at line 10339 of file interface_handlers.cc.
References add_v2_v2(), BLI_assert, BLI_rctf_cent_x(), BLI_rctf_cent_y(), BLI_time_now_seconds(), BUTTON_MOUSE_TOWARDS_THRESH, uiPopupBlockHandle::dotowards, uiBlock::flag, float, isect_point_tri_v2(), len_squared_v2v2(), MENU_TOWARDS_MARGIN, MENU_TOWARDS_WIGGLE_ROOM, ARegion::next, normalize_v2_length(), uiBlock::rect, uiPopupBlockHandle::region, ARegion::runtime, sub_v2_v2v2(), uiPopupBlockHandle::towards_xy, uiPopupBlockHandle::towardstime, ui_block_is_menu(), UI_BLOCK_MOVEMOUSE_QUIT, UI_BLOCK_POPOVER, ui_block_to_window_rctf(), rctf::xmax, rctf::xmin, xy, rctf::ymax, and rctf::ymin.
Referenced by ui_handle_menu_event().
|
static |
Definition at line 10329 of file interface_handlers.cc.
References ui_mouse_motion_towards_init_ex(), and xy.
Referenced by ui_handle_menu_event().
|
static |
Function used to prevent losing the open menu when using nested pull-downs, when moving mouse towards the pull-down menu over other buttons that could steal the highlight from the current button, only checks:
Definition at line 10308 of file interface_handlers.cc.
References BLI_assert, BLI_time_now_seconds(), uiPopupBlockHandle::dotowards, uiPopupBlockHandle::region, ARegion::runtime, uiPopupBlockHandle::towards_xy, uiPopupBlockHandle::towardstime, UI_BLOCK_MOVEMOUSE_QUIT, UI_BLOCK_POPOVER, and xy.
Referenced by ui_mouse_motion_towards_init(), and ui_mouse_motion_towards_reinit().
|
static |
Definition at line 10334 of file interface_handlers.cc.
References ui_mouse_motion_towards_init_ex(), and xy.
Referenced by ui_handle_menu_event(), ui_handle_menu_return_submenu(), and ui_handle_menus_recursive().
|
static |
Definition at line 672 of file interface_handlers.cc.
References data, and ui_mouse_scale_warp_factor().
Referenced by ui_numedit_but_HSVCIRCLE(), ui_numedit_but_HSVCUBE(), and ui_numedit_but_SLI().
|
static |
Definition at line 667 of file interface_handlers.cc.
Referenced by ui_mouse_scale_warp(), ui_numedit_but_CURVE(), and ui_numedit_but_CURVEPROFILE().
|
static |
Definition at line 1434 of file interface_handlers.cc.
References BLI_assert, BLI_linklist_prepend(), uiButMultiState::but, data, uiBut::flag, uiSelectContextStore::is_copy, uiButMultiState::origvalue, uiButMultiState::select_others, UI_BUT_DRAG_MULTI, ui_but_value_get(), and UI_butstore_register().
Referenced by ui_multibut_states_create().
|
static |
Definition at line 693 of file interface_handlers.cc.
References abs, uiHandleButtonMulti::drag_dir, ELEM, uiHandleButtonMulti::init, uiHandleButtonMulti::INIT_SETUP, and uiHandleButtonMulti::INIT_UNSET.
Referenced by ui_but_dragedit_update_mval().
|
static |
Definition at line 1488 of file interface_handlers.cc.
References BLI_linklist_freeN(), data, LinkNode::link, MEM_freeN(), LinkNode::next, next, and UI_butstore_free().
Referenced by button_activate_exit().
|
static |
Definition at line 1451 of file interface_handlers.cc.
References uiButMultiState::but, data, and l.
Referenced by ui_multibut_restore(), and ui_multibut_states_apply().
|
static |
Definition at line 1464 of file interface_handlers.cc.
References uiBlock::buttons, C, data, uiSelectContextStore::elems, Vector< T, InlineBufferCapacity, Allocator >::is_empty(), uiButMultiState::origvalue, uiButMultiState::select_others, UI_BUT_DRAG_MULTI, ui_but_value_set(), ui_multibut_lookup(), ui_selectcontext_apply(), and UNUSED_VARS.
Referenced by ui_apply_but().
|
static |
Definition at line 1594 of file interface_handlers.cc.
References BLI_assert, uiBlock::buttons, C, CLAMP, Vector< T, InlineBufferCapacity, Allocator >::clear(), CLOG_WARN, data, uiSelectContextStore::elems, uiHandleButtonMulti::INIT_ENABLE, Vector< T, InlineBufferCapacity, Allocator >::is_empty(), LOG, uiButMultiState::origvalue, uiButMultiState::select_others, UI_BUT_DRAG_MULTI, ui_but_execute_begin(), ui_but_execute_end(), ui_but_string_set(), ui_multibut_lookup(), and ui_selectcontext_begin().
Referenced by ui_apply_but(), ui_do_but_NUM(), and ui_do_but_SLI().
|
static |
Definition at line 1569 of file interface_handlers.cc.
References BLI_assert, uiBut::block, uiBlock::buttons, data, ELEM, uiHandleButtonMulti::INIT_SETUP, PROP_PROPORTIONAL, PROP_UNIT_LENGTH, RNA_property_flag(), RNA_SUBTYPE_UNIT_VALUE, uiBut::rnaprop, UI_BUT_DRAG_MULTI, UI_butstore_create(), ui_multibut_add(), and uiBut::unit_type.
Referenced by ui_do_button().
|
static |
Definition at line 1513 of file interface_handlers.cc.
References BLI_assert, BLI_rctf_isect_segment(), uiBut::block, uiBlock::buttons, data, uiHandleButtonMulti::INIT_SETUP, UI_BUT_DRAG_MULTI, ui_but_is_compatible(), ui_but_is_interactive(), and ui_window_to_block_fl().
Referenced by ui_do_button().
|
static |
Definition at line 4374 of file interface_handlers.cc.
References C, data, ED_region_tag_redraw(), ui_apply_but(), and ui_but_update().
Referenced by ui_do_but_COLORBAND(), ui_do_but_CURVE(), ui_do_but_CURVEPROFILE(), ui_do_but_GRIP(), ui_do_but_HISTOGRAM(), ui_do_but_HSVCIRCLE(), ui_do_but_HSVCUBE(), ui_do_but_NUM(), ui_do_but_SCROLL(), ui_do_but_SLI(), ui_do_but_TRACKPREVIEW(), ui_do_but_UNITVEC(), and ui_do_but_WAVEFORM().
|
static |
Definition at line 5339 of file interface_handlers.cc.
References ELEM, snap(), SNAP_OFF, SNAP_ON, and SNAP_ON_SMALL.
Referenced by ui_numedit_but_NUM().
|
static |
Definition at line 5261 of file interface_handlers.cc.
References B_UNIT_AREA, B_UNIT_LENGTH, B_UNIT_VOLUME, BKE_unit_base_scalar(), BKE_unit_is_valid(), BLI_assert, uiBut::block, ELEM, float, powf, PROP_SCALE_CUBIC, PROP_SCALE_LINEAR, PROP_SCALE_LOG, PROP_UNIT_ROTATION, RNA_SUBTYPE_UNIT_VALUE, roundf, UnitSettings::scale_length, snap(), SNAP_OFF, SNAP_ON, SNAP_ON_SMALL, UnitSettings::system, UnitSettings::system_rotation, ui_but_is_unit(), ui_but_scale_type(), UI_but_unit_type_get(), UI_PROP_SCALE_LOG_SNAP_OFFSET, uiBlock::unit, and USER_UNIT_ROT_RADIANS.
Referenced by ui_numedit_but_NUM().
|
static |
Definition at line 4230 of file interface_handlers.cc.
References BLI_assert, Color, ColorBand, copy_v3_v3(), cube_f(), Curve, CurveProfile, data, uiButColorBand::edit_coba, uiButCurveMapping::edit_cumap, uiButCurveProfile::edit_profile, uiBut::editval, uiBut::editvec, ELEM, float, FLT_MAX, HsvCircle, HsvCube, logf, max_ff(), min_ff(), Num, uiBut::poin, powf, uiButNumber::precision, PROP_SCALE_CUBIC, PROP_SCALE_LINEAR, PROP_SCALE_LOG, uiBut::softmax, uiBut::softmin, uiButNumber::step_size, uiBut::type, ui_but_is_cursor_warp(), ui_but_is_float(), ui_but_scale_type(), ui_but_v3_get(), UI_DRAG_MAP_SOFT_RANGE_PIXEL_MAX, ui_numedit_begin_set_values(), UI_PRECISION_FLOAT_SCALE, UI_PROP_SCALE_LOG_MIN, UI_SCALE_FAC, Unitvec, and UNLIKELY.
Referenced by button_activate_state().
|
static |
Definition at line 4223 of file interface_handlers.cc.
References data, and ui_but_value_get().
Referenced by ui_numedit_begin(), and ui_textedit_begin().
|
static |
Definition at line 7416 of file interface_handlers.cc.
References BKE_colorband_update_sort(), BLI_rctf_size_x(), CLAMP, data, float, and uiBut::rect.
Referenced by ui_do_but_COLORBAND().
|
static |
Definition at line 7517 of file interface_handlers.cc.
References BKE_curvemapping_changed(), BLI_rctf_clamp_pt_v(), BLI_rctf_size_x(), BLI_rctf_size_y(), CurveMapping::clipr, CurveMapping::cm, CUMA_DO_CLIP, CUMA_SELECT, CurveMapping::cur, CurveMapping::curr, CurveMap::curve, data, CurveMapping::flag, flag, len_squared_v2(), uiBut::poin, uiBut::rect, roundf, snap(), CurveMap::totpoint, ui_but_is_cursor_warp(), ui_mouse_scale_warp_factor(), ui_window_to_block(), CurveMapPoint::x, x, rctf::xmax, rctf::xmin, CurveMapPoint::y, y, rctf::ymax, and rctf::ymin.
Referenced by ui_do_but_CURVE().
|
static |
Definition at line 7792 of file interface_handlers.cc.
References BKE_curveprofile_move_handle(), BKE_curveprofile_move_point(), BKE_curveprofile_update(), BLI_rctf_clamp_pt_v(), BLI_rctf_size_x(), BLI_rctf_size_y(), CurveProfile::clip_rect, data, ELEM, CurveProfile::flag, flag, float, CurveProfilePoint::h1_loc, CurveProfilePoint::h2_loc, HD_ALIGN, HD_FREE, len_squared_v2(), CurveProfile::path, CurveProfile::path_len, uiBut::poin, PROF_H1_SELECT, PROF_H2_SELECT, PROF_SELECT, PROF_UPDATE_NONE, PROF_USE_CLIP, uiBut::rect, snap(), ui_but_is_cursor_warp(), ui_mouse_scale_warp_factor(), UI_SCALE_FAC, ui_window_to_block(), CurveProfile::view_rect, CurveProfilePoint::x, rctf::xmax, rctf::xmin, CurveProfilePoint::y, rctf::ymax, and rctf::ymin.
Referenced by ui_do_but_CURVEPROFILE().
|
static |
Definition at line 8089 of file interface_handlers.cc.
References CLAMP, data, min_ff(), uiBut::poin, pow2f(), and Histogram::ymax.
Referenced by ui_do_but_HISTOGRAM().
|
static |
Definition at line 7133 of file interface_handlers.cc.
References BLI_rctf_cent_x(), BLI_rctf_cent_y(), BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_rctf_copy(), copy_v3_v3(), uiBut::custom_data, data, dist_ensure_v2_v2fl(), ColorPicker::hsv_perceptual, is_zero_v3(), len, len_v2v2(), ColorPicker::luminosity_lock_value, min_ff(), normalize_v3_length(), uiBut::rect, snap(), SNAP_OFF, sqrt3f(), U, ui_but_is_cursor_warp(), ui_but_v3_set(), ui_color_picker_hsv_to_rgb(), ui_color_picker_rgb_to_hsv_compat(), ui_color_snap_hue(), ui_hsvcircle_pos_from_vals(), ui_hsvcircle_vals_from_pos(), ui_mouse_scale_warp(), ui_perceptual_to_scene_linear_space(), ui_scene_linear_to_perceptual_space(), ColorPicker::use_color_cubic, ColorPicker::use_color_lock, ColorPicker::use_luminosity_lock, and USER_CP_CIRCLE_HSV.
Referenced by ui_do_but_HSVCIRCLE().
|
static |
Definition at line 6846 of file interface_handlers.cc.
References BLI_assert, BLI_rctf_clamp_pt_v(), BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_rctf_copy(), CLAMP, clamp_axis_max_v3(), copy_v3_v3(), uiBut::custom_data, data, ELEM, uiButHSVCube::gradient_type, ColorPicker::hsv_perceptual, max, min, uiBut::rect, snap(), SNAP_OFF, uiBut::softmax, uiBut::softmin, ui_but_is_cursor_warp(), ui_color_picker_to_rgb_HSVCUBE_v(), ui_color_snap_hue(), UI_GRAD_H, UI_GRAD_HS, UI_GRAD_HV, UI_GRAD_L_ALT, UI_GRAD_S, UI_GRAD_SV, UI_GRAD_V, UI_GRAD_V_ALT, ui_hsvcube_pos_from_vals(), ui_mouse_scale_warp(), ui_perceptual_to_scene_linear_space(), ui_rgb_to_color_picker_HSVCUBE_compat_v(), ui_scene_linear_to_perceptual_space(), x, rctf::xmin, y, and rctf::ymin.
Referenced by ui_do_but_HSVCUBE().
|
static |
Definition at line 5362 of file interface_handlers.cc.
References abs, uiBut::block, CLAMP, CLAMP_MAX, CLAMP_MIN, data, uiBlock::evil_C, expf, float, logf, max_ff(), powf, uiButNumber::precision, PROP_SCALE_CUBIC, PROP_SCALE_LINEAR, PROP_SCALE_LOG, round_fl_to_int(), snap(), uiBut::softmax, uiBut::softmin, uiButNumber::step_size, ui_block_interaction_begin_ensure(), ui_but_dragedit_update_mval(), ui_but_is_cursor_warp(), ui_but_is_float(), ui_but_scale_type(), ui_numedit_apply_snap(), ui_numedit_apply_snapf(), UI_PROP_SCALE_LOG_MIN, and UI_SCALE_FAC.
Referenced by ui_do_but_NUM().
|
static |
Definition at line 5889 of file interface_handlers.cc.
References BLI_rctf_cent_x(), BLI_rctf_cent_y(), BLI_rctf_clamp_pt_v(), BLI_rctf_size_x(), BLI_rctf_size_y(), uiBut::block, CLAMP, cube_f(), data, ELEM, uiBlock::evil_C, NumSlider, powf, PROP_SCALE_CUBIC, PROP_SCALE_LINEAR, PROP_SCALE_LOG, uiBut::rect, round, round_fl_to_int(), roundf, Scroll, size(), snap(), uiBut::softmax, uiBut::softmin, uiBut::type, ui_block_interaction_begin_ensure(), ui_but_dragedit_update_mval(), ui_but_is_cursor_warp(), ui_but_is_float(), ui_but_scale_type(), ui_mouse_scale_warp(), uiButScrollBar::visual_height, rctf::xmin, and rctf::ymin.
Referenced by ui_do_but_SCROLL(), and ui_do_but_SLI().
|
static |
Definition at line 8236 of file interface_handlers.cc.
References BKE_movieclip_remap_scene_to_clip_frame(), BKE_tracking_marker_ensure(), BLI_rctf_size_x(), BLI_rctf_size_y(), uiBut::block, C, CTX_data_edit_movieclip(), data, MovieTrackingMarker::flag, MovieTrackingMarker::framenr, MovieClipScopes::marker, MARKER_DISABLED, MARKER_TRACKED, NA_EDITED, NC_MOVIECLIP, MovieClipScopes::ok, uiBut::poin, MovieTrackingMarker::pos, uiBlock::rect, MovieClipScopes::scene_framenr, MovieClipScopes::slide_scale, MovieClipScopes::track, MovieClipScopes::track_locked, and WM_event_add_notifier().
Referenced by ui_do_but_TRACKPREVIEW().
|
static |
Definition at line 6505 of file interface_handlers.cc.
References angle(), asinf, BLI_rctf_size_x(), compare_v3v3(), data, float, i, M_PI, normalize_v3(), uiBut::rect, roundf, sinf, snap(), SNAP_OFF, SNAP_ON, and sqrtf.
Referenced by ui_do_but_UNITVEC().
|
static |
Definition at line 8163 of file interface_handlers.cc.
References CLAMP, data, uiBut::poin, and Scopes::wavefrm_yfac.
Referenced by ui_do_but_WAVEFORM().
|
static |
Definition at line 4351 of file interface_handlers.cc.
References ColorBand, Curve, CurveProfile, data, uiButColorBand::edit_coba, uiButCurveMapping::edit_cumap, uiButCurveProfile::edit_profile, uiBut::editval, uiBut::editvec, and uiBut::type.
Referenced by button_activate_state().
|
static |
Definition at line 5621 of file interface_handlers.cc.
References uiBut::active, BLI_rctf_size_x(), BLI_rctf_size_y(), uiBut::block, data, uiBut::drawflag, ED_region_tag_redraw(), uiBut::flag, min_ff(), uiBut::rect, UI_BUT_HOVER_LEFT, UI_BUT_HOVER_RIGHT, UI_SELECT, ui_window_to_block(), WM_cursor_modal_restore(), WM_cursor_modal_set(), WM_CURSOR_X_MOVE, rctf::xmax, and rctf::xmin.
Referenced by button_activate_init(), and ui_do_but_NUM().
|
static |
Definition at line 6584 of file interface_handlers.cc.
References Palette::active_color, BLI_findindex(), Palette::colors, PointerRNA::data, uiButColor::is_pallete_color, PointerRNA::owner_id, and uiBut::rnapoin.
Referenced by ui_do_but_COLOR().
| void ui_pan_to_scroll | ( | const wmEvent * | event, |
| int * | type, | ||
| int * | val ) |
Assumes event type is MOUSEPAN.
Definition at line 603 of file interface_handlers.cc.
References abs, BLI_assert, KM_PRESS, MOUSEPAN, UI_UNIT_Y, WHEELDOWNMOUSE, WHEELUPMOUSE, and WM_event_absolute_delta_y().
Referenced by ui_do_but_BLOCK(), ui_do_but_NUM(), ui_do_but_SLI(), ui_do_but_TOG(), ui_handle_list_event(), ui_handle_menu_event(), ui_searchbox_event(), and ui_view_scroll_invoke().
|
static |
Definition at line 11532 of file interface_handlers.cc.
References uiBut::active, add_v2_v2(), PieMenuData::alphafac, ATTR_FALLTHROUGH, BLI_rctf_recenter(), BLI_rctf_size_x(), BLI_rctf_size_y(), button_modal_state(), uiBlock::buttons, C, CASE_NUM_TO_DIR, copy_v2_v2(), CTX_wm_manager(), CTX_wm_window(), wmEvent::customdata, PieMenuData::duration_gesture, ED_region_tag_redraw(), ELEM, EVENT_NONE, PieMenuData::event_type, EVT_AKEY, EVT_BKEY, EVT_CKEY, EVT_DKEY, EVT_DROP, EVT_EKEY, EVT_ESCKEY, EVT_FKEY, EVT_GKEY, EVT_HKEY, EVT_IKEY, EVT_JKEY, EVT_KKEY, EVT_LKEY, EVT_MKEY, EVT_NKEY, EVT_OKEY, EVT_PKEY, EVT_QKEY, EVT_RKEY, EVT_SKEY, EVT_TKEY, EVT_UKEY, EVT_VKEY, EVT_WKEY, EVT_XKEY, EVT_YKEY, EVT_ZKEY, PieMenuData::flags, float, KM_ALT, KM_DBL_CLICK, KM_PRESS, KM_RELEASE, PieMenuData::last_pos, LEFTMOUSE, len_squared_v2v2(), uiPopupBlockHandle::menuretval, wmEvent::modifier, MOUSEMOVE, mul_v2_fl(), PieMenuData::pie_center_init, PieMenuData::pie_center_spawned, PIE_CLICK_THRESHOLD_SQ, uiBlock::pie_data, wmWindow::pie_event_type_lock, PIE_MENU_INTERVAL, uiPopupBlockHandle::region, RIGHTMOUSE, ARegion::runtime, uiPopupBlockHandle::scrolltimer, uiHandleButtonData::state, wmTimer::time_duration, TIMER, wmEvent::type, U, ui_block_calc_pie_segment(), ui_block_pie_dir_activate(), ui_but_pie_button_activate(), ui_but_pie_dir(), ui_but_pie_menu_apply(), ui_handle_menu_button(), UI_PIE_ANIMATION_FINISHED, UI_PIE_CLICK_STYLE, UI_PIE_DRAG_STYLE, UI_PIE_GESTURE_END_WAIT, UI_PIE_INITIAL_DIRECTION, UI_PIE_INVALID_DIR, UI_RADIAL_E, UI_RADIAL_N, UI_RADIAL_NE, UI_RADIAL_NONE, UI_RADIAL_NW, UI_RADIAL_S, UI_RADIAL_SE, UI_RADIAL_SW, UI_RADIAL_W, ui_region_find_active_but(), UI_RETURN_CANCEL, UI_SCALE_FAC, ui_window_to_block_fl(), USER_REDUCE_MOTION, wmEvent::val, WINDEACTIVATE, WM_event_timer_add(), WM_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, and wmEvent::xy.
Referenced by ui_handle_menus_recursive().
Definition at line 12210 of file interface_handlers.cc.
References C, uiPopupBlockHandle::cancel_func, CTX_wm_region_popup(), CTX_wm_region_popup_set(), CTX_wm_region_set(), CTX_wm_window(), EVENT_NONE, PieMenuData::event_type, EVT_DROP, uiBlock::flag, KM_DBL_CLICK, uiPopupBlockHandle::menuretval, wmWindow::modalhandlers, MOUSEMOVE, uiBlock::pie_data, wmWindow::pie_event_type_last, uiPopupBlockHandle::popup_arg, uiPopupBlockHandle::popup_func, wmEvent::prev_xy, uiPopupBlockHandle::region, uiPopupBlockHandle::retvalue, ARegion::runtime, wmEvent::type, ui_apply_but_funcs_after(), UI_BLOCK_PIE_MENU, ui_blocks_set_tooltips(), ui_handle_menus_recursive(), ui_handler_region_drag_toggle(), ui_handler_region_drag_toggle_remove(), ui_popup_block_free(), UI_popup_handlers_remove(), UI_RETURN_OK, UI_RETURN_POPUP_OK, wmEvent::val, WM_event_add_mousemove(), WM_event_free_ui_handler_all(), WM_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, and wmEvent::xy.
Referenced by UI_popup_handlers_add(), UI_popup_handlers_remove(), and UI_popup_handlers_remove_all().
|
static |
Definition at line 12299 of file interface_handlers.cc.
References C, uiPopupBlockHandle::cancel_func, uiPopupBlockHandle::menuretval, uiPopupBlockHandle::popup_arg, ui_apply_but_funcs_after(), ui_popup_block_free(), and UI_RETURN_OK.
Referenced by UI_popup_handlers_add(), UI_popup_handlers_remove(), and UI_popup_handlers_remove_all().
| void UI_popup_handlers_add | ( | bContext * | C, |
| ListBase * | handlers, | ||
| uiPopupBlockHandle * | popup, | ||
| const char | flag ) |
Definition at line 12330 of file interface_handlers.cc.
References C, flag, ui_popup_handler(), ui_popup_handler_remove(), and WM_event_add_ui_handler().
Referenced by UI_pie_menu_end(), UI_popover_end(), ui_popover_panel_create(), UI_popup_block_ex(), UI_popup_block_invoke_ex(), ui_popup_menu_create_impl(), and UI_popup_menu_end().
| void UI_popup_handlers_remove | ( | ListBase * | handlers, |
| uiPopupBlockHandle * | popup ) |
Definition at line 12339 of file interface_handlers.cc.
References ED_region_tag_refresh_ui(), wmEventHandler_UI::handle_fn, wmEventHandler_UI::head, LISTBASE_FOREACH, wmEventHandler::next, uiPopupBlockHandle::region, wmEventHandler_UI::remove_fn, wmEventHandler::type, ui_popup_handler(), ui_popup_handler_remove(), wmEventHandler_UI::user_data, WM_event_remove_ui_handler(), and WM_HANDLER_TYPE_UI.
Referenced by UI_popup_block_close(), and ui_popup_handler().
Definition at line 12366 of file interface_handlers.cc.
References C, ui_popup_handler(), ui_popup_handler_remove(), and WM_event_free_ui_handler_all().
Referenced by ghost_event_proc(), screen_change_prepare(), and wm_event_do_notifiers().
| void UI_popup_menu_retval_set | ( | const uiBlock * | block, |
| int | retval, | ||
| bool | enable ) |
Allow setting menu return value from externals. E.g. WM might need to do this for exiting files correctly.
Definition at line 11935 of file interface_handlers.cc.
References uiBlock::handle, and uiPopupBlockHandle::menuretval.
Referenced by dialog_cancel_cb(), dialog_exec_cb(), popup_block_template_close_cb(), ui_alert_ok_cb(), and UI_popup_menu_close().
Definition at line 9249 of file interface_handlers.cc.
References ui_context_button_active().
Referenced by ui_but_tooltip_init(), UI_popover_begin(), UI_region_active_but_prop_get(), UI_region_searchbox_region_get(), and wm_drop_ui_context_create().
| uiBut * UI_region_active_but_prop_get | ( | const ARegion * | region, |
| PointerRNA * | r_ptr, | ||
| PropertyRNA ** | r_prop, | ||
| int * | r_index ) |
As above, but for a specified region.
Definition at line 9264 of file interface_handlers.cc.
References PointerRNA::data, uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, and UI_region_active_but_get().
Referenced by graph_panel_drivers_popover(), and UI_context_active_but_prop_get().
|
static |
Definition at line 10568 of file interface_handlers.cc.
References LISTBASE_FOREACH, and ARegion::runtime.
Referenced by ui_handle_menu_button().
| uiBlock * UI_region_block_find_mouse_over | ( | const ARegion * | region, |
| const int | xy[2], | ||
| bool | only_clip ) |
Definition at line 9259 of file interface_handlers.cc.
References ui_block_find_mouse_over_ex(), and xy.
Referenced by wm_handlers_do_gizmo_handler().
Definition at line 9254 of file interface_handlers.cc.
References ui_but_find_rect_over().
Referenced by ED_region_contains_xy().
Definition at line 12441 of file interface_handlers.cc.
References C, LISTBASE_FOREACH, ARegion::runtime, and ui_but_active_free().
Referenced by ED_region_visibility_change_update_ex().
Definition at line 11949 of file interface_handlers.cc.
References BLI_listbase_is_empty(), C, CTX_wm_region(), MOUSEMOVE, wmEvent::prev_xy, ARegion::runtime, wmEvent::type, ui_apply_but_funcs_after(), ui_blocks_set_tooltips(), UI_but_tooltip_timer_remove(), ui_handle_button_event(), ui_handle_button_over(), ui_handle_list_event(), ui_handle_region_semi_modal_buttons(), ui_handle_view_item_event(), ui_handle_viewlist_items_hover(), ui_handler_panel_region(), ui_list_find_mouse_over(), ui_region_find_active_but(), WM_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, and wmEvent::xy.
Referenced by UI_region_handlers_add().
|
static |
Definition at line 12009 of file interface_handlers.cc.
References BLI_findindex(), C, CTX_wm_region(), CTX_wm_screen(), bScreen::regionbase, ui_apply_but_funcs_after(), and UI_blocklist_free().
Referenced by UI_region_handlers_add().
| void UI_region_handlers_add | ( | ListBase * | handlers | ) |
Definition at line 12318 of file interface_handlers.cc.
References ui_region_handler(), ui_region_handler_remove(), WM_event_add_ui_handler(), and WM_event_remove_ui_handler().
Referenced by ed_default_handlers(), hud_region_init(), and ui_popup_block_create().
Try to find a search-box region opened from a button in button_region.
Definition at line 9364 of file interface_handlers.cc.
References uiBut::active, uiHandleButtonData::searchbox, and UI_region_active_but_get().
Referenced by wm_searchbox_tooltip_init().
|
static |
Definition at line 6810 of file interface_handlers.cc.
References uiButHSVCube::gradient_type, rgb_to_hsl_compat_v(), rgb_to_hsv_compat_v(), and UI_GRAD_L_ALT.
Referenced by ui_do_but_HSVCUBE(), and ui_numedit_but_HSVCUBE().
|
static |
Definition at line 6822 of file interface_handlers.cc.
References uiButHSVCube::gradient_type, rgb_to_hsl_v(), rgb_to_hsv_v(), and UI_GRAD_L_ALT.
Referenced by ui_do_but_HSVCUBE().
|
static |
Definition at line 729 of file interface_handlers.cc.
References ELEM, GS, ID_WM, PROP_NO_DEG_UPDATE, ptr, RNA_property_flag(), RNA_struct_base(), RNA_struct_is_a(), and AncestorPointerRNA::type.
Referenced by UI_but_is_userdef(), and ui_rna_update_preferences_dirty().
|
static |
Definition at line 788 of file interface_handlers.cc.
References NC_WINDOW, ptr, U, ui_rna_is_userdef(), and WM_main_add_notifier().
Referenced by ui_afterfunc_update_preferences_dirty(), and ui_but_update_preferences_dirty().
Is called by notifier.
Definition at line 12453 of file interface_handlers.cc.
References uiBut::active, BUTTON_STATE_HIGHLIGHT, C, CTX_wm_window(), data, ED_screen_areas_iter, LISTBASE_FOREACH, ui_but_active_free(), and ui_region_find_active_but().
Referenced by ED_screen_set_active_region().
|
static |
Definition at line 1993 of file interface_handlers.cc.
References BLI_assert, C, CLAMP, CTX_wm_window(), ELEM, uiSelectContextStore::elems, wmWindow::eventstate, uiBut::func, uiSelectContextStore::is_copy, Vector< T, InlineBufferCapacity, Allocator >::is_empty(), KM_SHIFT, len, max, MEM_calloc_arrayN(), MEM_freeN(), min, wmEvent::modifier, PROP_BOOLEAN, PROP_ENUM, PROP_FLOAT, PROP_INT, PROP_LAYER, PROP_LAYER_MEMBER, PROP_POINTER, PROP_STRING, uiSelectContextElem::ptr, RNA_property_array_check(), RNA_property_array_length(), RNA_property_boolean_get(), RNA_property_boolean_get_index(), RNA_property_boolean_set(), RNA_property_boolean_set_array(), RNA_property_boolean_set_index(), RNA_property_enum_get(), RNA_property_enum_set(), RNA_property_float_range(), RNA_property_float_set(), RNA_property_float_set_index(), RNA_property_int_range(), RNA_property_int_set(), RNA_property_int_set_index(), RNA_property_pointer_get(), RNA_property_pointer_set(), RNA_property_string_get(), RNA_property_string_set(), RNA_property_subtype(), RNA_property_type(), RNA_property_update(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, uiSelectContextElem::val_f, and uiSelectContextElem::val_i.
Referenced by ui_apply_but(), and ui_multibut_restore().
|
static |
Definition at line 1889 of file interface_handlers.cc.
References C, blender::Vector< T, InlineBufferCapacity, Allocator >::data(), uiSelectContextStore::do_free, uiSelectContextStore::elems, uiBut::flag, i, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), Vector< T, InlineBufferCapacity, Allocator >::is_empty(), Vector< T, InlineBufferCapacity, Allocator >::pop_last(), PROP_BOOLEAN, PROP_ENUM, PROP_FLOAT, PROP_INT, ptr, uiSelectContextElem::ptr, Vector< T, InlineBufferCapacity, Allocator >::resize(), RNA_property_array_check(), RNA_property_boolean_get(), RNA_property_boolean_get_index(), RNA_property_enum_get(), RNA_property_float_get(), RNA_property_float_get_index(), RNA_property_int_get(), RNA_property_int_get_index(), RNA_property_type(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), UI_BUT_IS_SELECT_CONTEXT, UI_context_copy_to_selected_check(), UI_context_copy_to_selected_list(), uiSelectContextElem::val_b, uiSelectContextElem::val_f, and uiSelectContextElem::val_i.
Referenced by ui_apply_but(), and ui_multibut_states_apply().
|
static |
Definition at line 1984 of file interface_handlers.cc.
References Vector< T, InlineBufferCapacity, Allocator >::clear(), uiSelectContextStore::do_free, uiSelectContextStore::elems, uiBut::flag, and UI_BUT_IS_SELECT_CONTEXT.
Referenced by button_activate_exit().
|
static |
Definition at line 2989 of file interface_handlers.cc.
References BLI_str_find_next_char_utf8(), uiBut::drawstr, uiBut::editstr, i, and pos.
Referenced by ui_but_text_password_hide().
|
static |
Definition at line 3001 of file interface_handlers.cc.
References BLI_strnlen_utf8(), uiBut::drawstr, uiBut::editstr, and pos.
Referenced by ui_but_text_password_hide().
Definition at line 12408 of file interface_handlers.cc.
References C, CTX_wm_region(), LISTBASE_FOREACH, ARegion::runtime, Text, and UI_but_active_only().
Referenced by file_filename_enter_handle().
| bool UI_textbutton_activate_rna | ( | const bContext * | C, |
| ARegion * | region, | ||
| const void * | rna_poin_data, | ||
| const char * | rna_prop_id ) |
Definition at line 12371 of file interface_handlers.cc.
References C, CTX_wm_region(), CTX_wm_region_set(), LISTBASE_FOREACH, RNA_property_identifier(), ARegion::runtime, STREQ, Text, and UI_but_active_only().
Referenced by animchannels_select_filter_modal(), blender::ed::asset::shelf::AssetView::begin_filtering(), buttons_start_filter_exec(), file_edit_directory_path_exec(), file_start_filter_exec(), blender::ed::outliner::outliner_start_filter_exec(), text_text_search_exec(), and ui_list_start_filter_invoke().
|
static |
Definition at line 3371 of file interface_handlers.cc.
References uiBut::autocomplete_func, uiBut::autofunc_arg, C, data, uiBut::pos, uiBut::selend, uiBut::selsta, str, and ui_searchbox_autocomplete().
Referenced by ui_do_but_textedit().
|
static |
Definition at line 3480 of file interface_handlers.cc.
References uiBut::autocomplete_func, BLI_assert, BLI_str_rstrip_float_zero(), BLI_strdupn(), uiBut::block, blender::ui::block_layout_needs_resolving(), C, uiBut::changed, data, uiTextEdit::edit_string, uiBut::editstr, ELEM, wmWindow::eventstate, uiBlock::flag, uiBut::flag, uiBut::flag2, GHOST_SetAutoFocus(), IFACE_, IS_ALLSELECT_EVENT, uiTextEdit::is_str_dynamic, len, uiTextEdit::max_string_size, MEM_calloc_arrayN(), MEM_SAFE_FREE, Num, NumSlider, uiTextEdit::original_string, uiButSearch::popup_create_fn, uiBut::pos, SearchMenu, uiTextEdit::sel_pos_init, uiBut::selend, uiBut::selsta, status, uiBut::type, ui_apply_but(), UI_BLOCK_CLIP_EVENTS, UI_BUT2_ACTIVATE_ON_INIT_NO_SELECT, ui_but_anim_expression_get(), ui_but_convert_to_unit_alt_name(), UI_but_ensure_in_view(), ui_but_is_float(), ui_but_is_unit(), UI_BUT_REDALERT, ui_but_string_get_dynamic(), ui_but_string_get_ex(), ui_but_string_get_maxncpy(), ui_but_update(), ui_numedit_begin_set_values(), UI_PRECISION_FLOAT_MAX, ui_searchbox_update(), ui_textedit_undo_push(), ui_textedit_undo_stack_create(), uiTextEdit::undo_stack_text, WM_cursor_modal_set(), and WM_CURSOR_TEXT_EDIT.
Referenced by button_activate_state().
|
static |
Definition at line 3396 of file interface_handlers.cc.
References uiTextEdit::edit_string, ELEM, MEM_freeN(), MEM_malloc_arrayN(), uiBut::selend, uiBut::selsta, UI_but_is_utf8(), UI_TEXTEDIT_COPY, UI_TEXTEDIT_CUT, ui_textedit_delete_selection(), ui_textedit_insert_buf(), UI_TEXTEDIT_PASTE, WM_clipboard_text_get_firstline(), and WM_clipboard_text_set().
Referenced by ui_do_but_textedit().
|
static |
Definition at line 3320 of file interface_handlers.cc.
References BLI_str_cursor_step_utf8(), uiTextEdit::edit_string, jump(), len, pos, uiBut::pos, uiBut::selend, uiBut::selsta, step, str, STRCUR_JUMP_ALL, and ui_textedit_delete_selection().
Referenced by ui_do_but_textedit().
|
static |
Definition at line 3112 of file interface_handlers.cc.
References uiTextEdit::edit_string, len, uiBut::ofs, uiBut::pos, uiBut::selend, uiBut::selsta, and str.
Referenced by ui_do_but_textedit(), ui_textedit_copypaste(), ui_textedit_delete(), and ui_textedit_insert_buf().
|
static |
Definition at line 3624 of file interface_handlers.cc.
References BLI_assert, BLI_str_utf8_invalid_strip(), C, CLOG_INFO_NOCHECK, CTX_wm_manager(), data, ED_workspace_status_text(), uiBut::editstr, uiBut::flag, GHOST_SetAutoFocus(), LOG, uiBut::pos, uiButSearch::results_are_suggestions, RPT_ERROR, wmWindow::runtime, SearchMenu, uiBut::type, UI_but_is_utf8(), UI_BUT_VALUE_CLEAR, ui_searchbox_apply(), ui_searchbox_find_index(), ui_searchbox_free(), ui_textedit_undo_stack_destroy(), uiTextEdit::undo_stack_text, WM_cursor_modal_restore(), WM_global_reportf(), and WM_report_banner_show().
Referenced by button_activate_state().
|
static |
This is used for both UTF8 and ASCII.
For unicode buttons, buf is treated as unicode.
Definition at line 3216 of file interface_handlers.cc.
References BLI_strnlen_utf8_ex(), uiTextEdit::edit_string, uiTextEdit::is_str_dynamic, len, uiTextEdit::max_string_size, uiBut::pos, uiBut::selend, uiBut::selsta, step, str, UI_but_is_utf8(), ui_textedit_delete_selection(), and ui_textedit_string_ensure_max_length().
Referenced by ui_do_but_textedit(), and ui_textedit_copypaste().
|
static |
Return the jump type used for cursor motion & back-space/delete actions.
Definition at line 3775 of file interface_handlers.cc.
References KM_ALT, KM_CTRL, KM_OSKEY, wmEvent::modifier, STRCUR_JUMP_ALL, STRCUR_JUMP_DELIM, and STRCUR_JUMP_NONE.
Referenced by ui_do_but_textedit().
|
static |
Definition at line 3266 of file interface_handlers.cc.
References BLI_str_cursor_step_utf8(), uiTextEdit::edit_string, jump(), len, uiBut::pos, uiTextEdit::sel_pos_init, select, uiBut::selend, uiBut::selsta, str, STRCUR_JUMP_ALL, and ui_but_update().
Referenced by ui_do_but_textedit().
|
static |
Definition at line 3697 of file interface_handlers.cc.
References uiBlock::but_index(), BUTTON_ACTIVATE_TEXT_EDITING, uiBlock::buttons, data, ELEM, uiBut::flag, i, Label, ListBox, Roundbox, Sepr, SeprLine, uiBut::type, UI_BUT_DISABLED, ui_but_is_editable_as_text(), and UI_HIDDEN.
Referenced by ui_do_but_textedit().
|
static |
Definition at line 3734 of file interface_handlers.cc.
References uiBlock::but_index(), BUTTON_ACTIVATE_TEXT_EDITING, uiBlock::buttons, data, ELEM, uiBut::flag, i, Label, ListBox, Roundbox, Sepr, SeprLine, Vector< T, InlineBufferCapacity, Allocator >::size(), uiBut::type, UI_BUT_DISABLED, ui_but_is_editable_as_text(), and UI_HIDDEN.
Referenced by ui_do_but_textedit().
| x | Screen space cursor location - #wmEvent.x |
Definition at line 3138 of file interface_handlers.cc.
References uiBlock::aspect, BLF_str_offset_from_cursor_position(), BLF_width(), BLI_str_cursor_step_prev_utf8(), uiBut::block, uiBut::drawflag, uiBut::editstr, ELEM, uiBut::flag, i, uiBut::ofs, uiFontStyle::points, uiBut::pos, uiBut::rect, SearchMenu, str, Text, uiBut::type, U, ui_block_to_window_fl(), UI_BUT_NO_TEXT_PADDING, ui_but_text_password_hide(), ui_fontscale(), UI_fontstyle_set(), UI_HAS_ICON, UI_ICON_SIZE, UI_MAX_PASSWORD_STR, UI_style_get(), UI_TEXT_MARGIN_X, uiFontStyle::uifont_id, uiStyle::widget, x, and rctf::xmin.
Referenced by ui_do_but_textedit(), and ui_textedit_set_cursor_select().
|
static |
Definition at line 3198 of file interface_handlers.cc.
References data, uiBut::pos, uiBut::selend, uiBut::selsta, ui_but_update(), ui_textedit_set_cursor_pos(), and x.
Referenced by ui_do_but_textedit_select().
|
static |
Definition at line 3084 of file interface_handlers.cc.
References BLI_assert, uiTextEdit::edit_string, uiBut::editstr, uiTextEdit::is_str_dynamic, uiTextEdit::max_string_size, and MEM_reallocN.
Referenced by ui_textedit_insert_buf(), and ui_textedit_string_set().
|
static |
Definition at line 3098 of file interface_handlers.cc.
References BLI_strncpy(), BLI_strncpy_utf8(), uiTextEdit::edit_string, uiTextEdit::is_str_dynamic, uiTextEdit::max_string_size, str, UI_but_is_utf8(), and ui_textedit_string_ensure_max_length().
Referenced by ui_but_set_string_interactive(), and ui_do_but_textedit().
|
static |
Definition at line 9586 of file interface_handlers.cc.
References uiBut::active, BLI_assert, C, uiHandleButtonData::is_semi_modal, uiBut::semi_modal_state, ui_but_activate_event(), and ui_region_find_active_but().
Referenced by foreach_semi_modal_but_as_active(), and ui_but_semi_modal_state_free().
|
static |
Definition at line 573 of file interface_handlers.cc.
Referenced by ui_but_copy_colorband(), and ui_but_paste_colorband().
|
static |
Definition at line 574 of file interface_handlers.cc.
Referenced by ui_but_clipboard_free(), ui_but_copy_curvemapping(), and ui_but_paste_curvemapping().
|
static |
Definition at line 575 of file interface_handlers.cc.
Referenced by ui_but_copy_curvemapping(), and ui_but_paste_curvemapping().
|
static |
Definition at line 576 of file interface_handlers.cc.
Referenced by ui_but_clipboard_free(), ui_but_copy_CurveProfile(), and ui_but_paste_CurveProfile().
|
static |
Definition at line 577 of file interface_handlers.cc.
Referenced by ui_but_copy_CurveProfile(), and ui_but_paste_CurveProfile().
|
static |
Definition at line 86 of file interface_handlers.cc.
Definition at line 843 of file interface_handlers.cc.
Referenced by ui_afterfunc_new(), and ui_apply_but_funcs_after().