|
Blender V4.3
|
#include <cctype>#include <cfloat>#include <climits>#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_report.hh"#include "BKE_screen.hh"#include "BKE_tracking.h"#include "BKE_unit.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 "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 |
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 198 of file interface_handlers.cc.
Referenced by button_activate_init(), and button_activate_state().
| #define BUTTON_DRAGLOCK_THRESH 3 |
Drag-lock distance threshold (in pixels).
Definition at line 208 of file interface_handlers.cc.
Referenced by ui_but_dragedit_update_mval().
| #define BUTTON_FLASH_DELAY 0.020 |
Definition at line 195 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 201 of file interface_handlers.cc.
Referenced by ui_mouse_motion_keynav_test().
| #define BUTTON_MOUSE_TOWARDS_THRESH 1.0 |
Definition at line 199 of file interface_handlers.cc.
Referenced by ui_mouse_motion_towards_check().
| #define CASE_NUM_TO_DIR | ( | n, | |
| d ) |
Referenced by ui_pie_handler().
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 305 of file interface_handlers.cc.
Referenced by ui_do_button().
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 312 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 322 of file interface_handlers.cc.
Referenced by ui_do_button().
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 293 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 196 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 204 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 206 of file interface_handlers.cc.
Referenced by ui_mouse_motion_towards_check().
| #define PIE_MENU_INTERVAL 0.01 |
Definition at line 197 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 296 of file interface_handlers.cc.
Referenced by ui_selectcontext_begin().
| #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 148 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 117 of file interface_handlers.cc.
Referenced by ui_but_text_password_hide(), and ui_textedit_set_cursor_pos().
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 129 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 135 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 96 of file interface_handlers.cc.
| #define USE_ALLSELECT_LAYER_HACK |
Definition at line 256 of file interface_handlers.cc.
| #define USE_CONT_MOUSE_CORRECT |
Place the mouse at the scaled down location when un-grabbing.
Definition at line 88 of file interface_handlers.cc.
| #define USE_DRAG_MULTINUM |
Support dragging multiple number buttons at once.
Definition at line 93 of file interface_handlers.cc.
| #define USE_DRAG_POPUP |
Support dragging popups by their header.
Definition at line 105 of file interface_handlers.cc.
| #define USE_DRAG_TOGGLE |
Support dragging toggle buttons.
Definition at line 90 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 102 of file interface_handlers.cc.
| anonymous enum |
| Enumerator | |
|---|---|
| UI_TEXTEDIT_PASTE | |
| UI_TEXTEDIT_COPY | |
| UI_TEXTEDIT_CUT | |
Definition at line 3361 of file interface_handlers.cc.
| enum eSnapType |
| Enumerator | |
|---|---|
| SNAP_OFF | |
| SNAP_ON | |
| SNAP_ON_SMALL | |
Definition at line 742 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 210 of file interface_handlers.cc.
| enum uiHandleButtonState |
Definition at line 218 of file interface_handlers.cc.
| enum uiMenuScrollType |
| Enumerator | |
|---|---|
| MENU_SCROLL_UP | |
| MENU_SCROLL_DOWN | |
| MENU_SCROLL_TOP | |
| MENU_SCROLL_BOTTOM | |
Definition at line 232 of file interface_handlers.cc.
|
static |
Definition at line 8824 of file interface_handlers.cc.
References uiBut::active, BLI_assert, uiBut::block, uiPopupBlockHandle::butretval, button_activate_state(), BUTTON_STATE_EXIT, uiBlock::buttons, CTX_wm_window(), uiBlock::custom_interaction_callbacks, ED_region_tag_redraw_no_rebuild(), ED_region_tag_refresh_ui(), uiSelectContextStore::elems, uiSelectContextStore::elems_len, uiBlock::flag, uiBut::flag, uiBlock::handle, LISTBASE_FOREACH, MEM_freeN(), MEM_SAFE_FREE, uiPopupBlockHandle::menuretval, uiBut::rnapoin, uiBut::semi_modal_state, uiBut::type, 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_BTYPE_GRIP, UI_BUT_DRAG_MULTI, 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 8725 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, copy_v2_fl(), CTX_wm_area(), CTX_wm_manager(), CTX_wm_window(), data, ELEM, ListBase::first, uiBut::flag, FLT_MAX, uiBut::rect, uiBut::semi_modal_state, uiBut::type, UI_BTYPE_CURVE, UI_BTYPE_CURVEPROFILE, UI_BTYPE_GRIP, UI_BTYPE_NUM, UI_BTYPE_SEARCH_MENU, ui_but_first(), UI_but_has_tooltip_label(), ui_but_tooltip_init(), UI_BUT_UPDATE_DELAY, ui_handle_button_activate(), UI_HOVER, ui_numedit_set_active(), ui_region_find_active_but(), ARegion::uiblocks, 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 8526 of file interface_handlers.cc.
References uiBut::active, uiBlock::auto_open, BLI_rcti_rctf_copy(), 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(), CTX_wm_window(), ED_region_tag_redraw_no_rebuild(), ED_workspace_status_text(), ELEM, uiBlock::flag, uiBut::flag, FLT_MAX, uiBlock::handle, uiBut::hold_func, WorkspaceStatus::item(), uiPopupBlockHandle::popup, uiBut::rect, RPT_INFO, state, time, TIMER, uiBut::type, 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_BTYPE_BLOCK, UI_BTYPE_HSVCIRCLE, UI_BTYPE_HSVCUBE, UI_BTYPE_MENU, UI_BTYPE_POPOVER, UI_BTYPE_PULLDOWN, UI_BUT_DRIVEN, ui_but_is_cursor_warp(), 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_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 8515 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 8484 of file interface_handlers.cc.
References uiBut::active, uiBut::block, CTX_wm_manager(), wmWindowManager::drags, ListBase::first, uiBlock::tooltipdisabled, UI_but_has_tooltip_label(), ui_but_tooltip_init(), UI_TOOLTIP_DELAY, UI_TOOLTIP_DELAY_LABEL, 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 6612 of file interface_handlers.cc.
References max, max_fff(), mul_v3_fl(), and v.
Referenced by ui_numedit_but_HSVCUBE().
|
static |
Definition at line 2533 of file interface_handlers.cc.
References BLI_snprintf_rlen().
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 4957 of file interface_handlers.cc.
References uiBut::active, uiBut::block, ED_region_tag_redraw_no_rebuild(), ED_region_tag_refresh_ui(), ui_apply_but(), UI_but_execute(), 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 9424 of file interface_handlers.cc.
References uiBut::flag2, LISTBASE_FOREACH, uiBut::semi_modal_state, UI_BUT2_FORCE_SEMI_MODAL_ACTIVE, and with_but_active_as_semi_modal().
Referenced by ui_handle_region_semi_modal_buttons().
Definition at line 2507 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().
Definition at line 2555 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 7728 of file interface_handlers.cc.
References ELEM, HD_ALIGN, HD_FREE, PROF_H1_SELECT, PROF_H2_SELECT, and PROF_SELECT.
Referenced by ui_do_but_CURVEPROFILE().
|
static |
Definition at line 825 of file interface_handlers.cc.
References wmOperatorType::check, and wmOperator::type.
Referenced by ui_apply_but_funcs_after().
Check if a uiAfterFunc is needed for this button.
Definition at line 835 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 775 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 731 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 2251 of file interface_handlers.cc.
References copy_v3_v3(), CTX_wm_window(), uiBlock::custom_interaction_callbacks, uiButColorBand::edit_coba, uiButCurveMapping::edit_cumap, uiButCurveProfile::edit_profile, uiBut::editstr, uiBut::editval, uiBut::editvec, wmWindow::eventstate, EVT_VKEY, uiBut::flag, uiHandleButtonMulti::INIT_ENABLE, IS_ALLSELECT_EVENT, KM_CTRL, KM_OSKEY, KM_PRESS, KM_SHIFT, MEM_freeN(), 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_LISTROW(), 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_BTYPE_BLOCK, UI_BTYPE_BUT, UI_BTYPE_BUT_MENU, UI_BTYPE_BUT_TOGGLE, UI_BTYPE_CHECKBOX, UI_BTYPE_CHECKBOX_N, UI_BTYPE_COLOR, UI_BTYPE_COLORBAND, UI_BTYPE_CURVE, UI_BTYPE_CURVEPROFILE, UI_BTYPE_DECORATOR, UI_BTYPE_GRIP, UI_BTYPE_HISTOGRAM, UI_BTYPE_HOTKEY_EVENT, UI_BTYPE_HSVCIRCLE, UI_BTYPE_HSVCUBE, UI_BTYPE_ICON_TOGGLE, UI_BTYPE_ICON_TOGGLE_N, UI_BTYPE_IMAGE, UI_BTYPE_KEY_EVENT, UI_BTYPE_LISTROW, UI_BTYPE_MENU, UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER, UI_BTYPE_PREVIEW_TILE, UI_BTYPE_PULLDOWN, UI_BTYPE_ROW, UI_BTYPE_SCROLL, UI_BTYPE_SEARCH_MENU, UI_BTYPE_TAB, UI_BTYPE_TEXT, UI_BTYPE_TOGGLE, UI_BTYPE_TOGGLE_N, UI_BTYPE_TRACK_PREVIEW, UI_BTYPE_UNITVEC, UI_BTYPE_VIEW_ITEM, UI_BTYPE_WAVEFORM, UI_BUT_DRAG_MULTI, ui_multibut_restore(), ui_multibut_states_apply(), ui_selectcontext_apply(), ui_selectcontext_begin(), and zero_v3().
Referenced by button_activate_exit(), force_activate_view_item_but(), 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 1008 of file interface_handlers.cc.
References BKE_report(), 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 1150 of file interface_handlers.cc.
References uiBut::retval, uiBut::type, ui_apply_but_func(), UI_BTYPE_MENU, ui_but_update_edited(), and ui_but_value_set().
Referenced by ui_apply_but().
|
static |
Definition at line 1133 of file interface_handlers.cc.
References uiBut::retval, and ui_apply_but_func().
Referenced by ui_apply_but().
|
static |
Definition at line 1141 of file interface_handlers.cc.
References uiBut::hardmin, uiBut::retval, ui_apply_but_func(), and ui_but_value_set().
Referenced by ui_apply_but().
|
static |
Definition at line 1356 of file interface_handlers.cc.
References uiBut::retval, and ui_apply_but_func().
Referenced by ui_apply_but().
|
static |
Definition at line 1363 of file interface_handlers.cc.
References uiBut::retval, and ui_apply_but_func().
Referenced by ui_apply_but().
|
static |
Definition at line 1370 of file interface_handlers.cc.
References 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 847 of file interface_handlers.cc.
References uiBut::active, uiAfterFunc::apply_func, uiBut::apply_func, uiButSearch::arg, uiButSearch::arg_free_fn, uiBut::block, uiAfterFunc::context, uiBut::context, uiAfterFunc::custom_interaction_callbacks, uiBlock::custom_interaction_callbacks, uiAfterFunc::custom_interaction_handle, 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, uiBut::type, ui_afterfunc_check(), ui_afterfunc_new(), UI_BTYPE_SEARCH_MENU, 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(), and ui_apply_but_WAVEFORM().
|
static |
Definition at line 1033 of file interface_handlers.cc.
References uiAfterFunc::apply_func, BLI_assert, BLI_listbase_clear(), BLI_remlink(), uiAfterFunc::context, CTX_store_set(), 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(), and WM_operator_properties_free().
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 2230 of file interface_handlers.cc.
References uiBut::retval, and ui_apply_but_func().
Referenced by ui_apply_but().
|
static |
Definition at line 2223 of file interface_handlers.cc.
References uiBut::retval, and ui_apply_but_func().
Referenced by ui_apply_but().
|
static |
Definition at line 1236 of file interface_handlers.cc.
References uiBut::custom_data, ui_apply_but_ROW(), ui_list_find_from_row(), and ui_list_invoke_item_operator().
Referenced by ui_apply_but().
|
static |
Definition at line 1307 of file interface_handlers.cc.
References uiBut::retval, uiBut::str, 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 1184 of file interface_handlers.cc.
References uiBlock::buttons, ELEM, uiBut::hardmax, LISTBASE_FOREACH, uiBut::poin, uiBut::retval, ui_apply_but_func(), UI_BTYPE_LISTROW, UI_BTYPE_ROW, ui_but_update_edited(), and ui_but_value_set().
Referenced by ui_apply_but(), ui_apply_but_LISTROW(), and ui_apply_but_VIEW_ITEM().
|
static |
Definition at line 1292 of file interface_handlers.cc.
References 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 1250 of file interface_handlers.cc.
References blender::ui::string_search::add_recent_search(), BLI_strdup(), uiBut::block, uiBut::flag, uiBut::func_arg2, uiButSearch::item_active, uiButSearch::item_active_str, uiBut::rename_orig, uiBut::retval, uiBut::type, ui_afterfunc_check(), ui_apply_but_func(), UI_BTYPE_SEARCH_MENU, 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 1162 of file interface_handlers.cc.
References uiBut::bit, uiBut::bitnr, ELEM, uiBut::retval, uiBut::type, ui_apply_but_func(), UI_BITBUT_VALUE_TOGGLED, UI_BTYPE_ICON_TOGGLE, UI_BTYPE_ICON_TOGGLE_N, ui_but_update_edited(), ui_but_value_get(), and ui_but_value_set().
Referenced by ui_apply_but().
|
static |
Definition at line 2244 of file interface_handlers.cc.
References uiBut::retval, and ui_apply_but_func().
Referenced by ui_apply_but().
|
static |
Definition at line 940 of file interface_handlers.cc.
References BKE_paintmode_get_active_from_context(), BLI_strncpy(), uiBut::block, uiBut::drawstr, ED_undo_is_legacy_compatible_for_property(), ELEM, uiBlock::evil_C, uiBut::flag, min_zz(), PointerRNA::owner_id, uiBut::rnapoin, uiBut::rnaprop, Sculpt, SIZE_MAX, str, uiBut::tip, uiBut::type, ui_afterfunc_new(), UI_BTYPE_MENU, 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_handler_region_drag_toggle(), and ui_list_activate_row_from_index().
|
static |
Definition at line 1346 of file interface_handlers.cc.
References uiBut::retval, ui_apply_but_func(), ui_but_update_edited(), and ui_but_v3_set().
Referenced by ui_apply_but().
|
static |
Definition at line 1201 of file interface_handlers.cc.
References ui_apply_but_ROW().
Referenced by ui_apply_but().
|
static |
Definition at line 2237 of file interface_handlers.cc.
References uiBut::retval, and ui_apply_but_func().
Referenced by ui_apply_but().
Definition at line 10563 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(), 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 12345 of file interface_handlers.cc.
References uiBut::active, uiBlockInteraction_CallbackData::arg1, uiBlockInteraction_CallbackData::begin_fn, BLI_array_deduplicate_ordered, BLI_assert, BLI_sortutil_cmp_int(), uiBlock::buttons, uiBlock::custom_interaction_callbacks, uiBut::flag, uiBlockInteraction_Params::is_click, LISTBASE_FOREACH, MEM_mallocN, MEM_reallocN, uiBlockInteraction_Handle::params, uiBut::retval, 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 12414 of file interface_handlers.cc.
References uiBlockInteraction_CallbackData::begin_fn, uiBlock::custom_interaction_callbacks, 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 12385 of file interface_handlers.cc.
References uiBlockInteraction_CallbackData::arg1, BLI_assert, 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 12340 of file interface_handlers.cc.
References uiBlock::custom_interaction_callbacks.
Referenced by v3d_editvertex_buts().
|
static |
Definition at line 12395 of file interface_handlers.cc.
References uiBlockInteraction_CallbackData::arg1, BLI_assert, 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 4355 of file interface_handlers.cc.
References BLI_assert, uiBut::block, uiBut::block_create_func, copy_v3_v3(), uiBut::editvec, uiBut::func_argN, uiBlock::handle, IS_ALLSELECT_EVENT, WorkspaceStatus::item(), uiBut::menu_create_func, uiBut::poin, uiPopupBlockHandle::popup, STRNCPY, uiBut::type, ui_block_func_COLOR(), UI_BTYPE_BLOCK, UI_BTYPE_COLOR, UI_BTYPE_MENU, UI_BTYPE_POPOVER, UI_BTYPE_PULLDOWN, 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 4461 of file interface_handlers.cc.
References uiBlock::auto_open_last, BLI_time_now_seconds(), uiBut::block, ED_workspace_status_text(), uiBut::editval, uiBut::editvec, and ui_popup_block_free().
Referenced by button_activate_state().
|
static |
Definition at line 11401 of file interface_handlers.cc.
References uiBlock::buttons, ELEM, uiBlock::flag, KM_PRESS, LISTBASE_FOREACH, uiBut::pie_dir, uiBut::type, UI_BLOCK_NUMSELECT, UI_BTYPE_SEPR, UI_BTYPE_SEPR_LINE, and wmEvent::val.
Referenced by ui_pie_handler().
|
static |
Definition at line 8424 of file interface_handlers.cc.
References LISTBASE_FOREACH.
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 9289 of file interface_handlers.cc.
References uiBut::block, button_activate_init(), BUTTON_ACTIVATE_OVER, 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 9306 of file interface_handlers.cc.
References button_activate_init(), and BUTTON_ACTIVATE_OVER.
Referenced by ui_block_func_POPUP().
| bool UI_but_active_drop_color | ( | bContext * | C | ) |
Definition at line 12319 of file interface_handlers.cc.
References CTX_wm_region(), uiBut::type, UI_BTYPE_COLOR, and ui_region_find_active_but().
Referenced by 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 12314 of file interface_handlers.cc.
References 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 12300 of file interface_handlers.cc.
References CTX_wm_region(), ELEM, uiBut::type, UI_BTYPE_SEARCH_MENU, UI_BTYPE_TEXT, and ui_region_find_active_but().
Referenced by drop_name_invoke(), drop_name_poll(), and UI_but_active_drop_name().
Definition at line 8966 of file interface_handlers.cc.
References uiBut::active, button_activate_exit(), and uiHandleButtonData::cancel.
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 3046 of file interface_handlers.cc.
References uiBut::active, button_activate_state(), BUTTON_STATE_EXIT, uiTextEdit::edit_string, MEM_callocN, uiHandleButtonData::text_edit, and ui_apply_but_TEX().
Referenced by button_string_clear_exec().
| void ui_but_clipboard_free | ( | ) |
Definition at line 2946 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 2784 of file interface_handlers.cc.
References copy_array(), PointerRNA::data, uiBut::optype, uiBut::poin, uiBut::rnapoin, uiBut::type, UI_BTYPE_BUT, UI_BTYPE_COLOR, UI_BTYPE_COLORBAND, UI_BTYPE_CURVE, UI_BTYPE_CURVEPROFILE, UI_BTYPE_MENU, UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER, UI_BTYPE_POPOVER, UI_BTYPE_PULLDOWN, UI_BTYPE_SEARCH_MENU, UI_BTYPE_TEXT, UI_BTYPE_UNITVEC, 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(), and WM_clipboard_text_set().
Referenced by ui_do_button().
Definition at line 2635 of file interface_handlers.cc.
References float_array_to_string(), get_but_property_array_length(), 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 2689 of file interface_handlers.cc.
References but_copypaste_coba, and uiBut::poin.
Referenced by ui_but_copy().
|
static |
Definition at line 2709 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 2732 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().
Definition at line 2763 of file interface_handlers.cc.
References BLI_snprintf(), MenuType::idname, and UI_but_menutype_get().
Referenced by ui_but_copy().
Definition at line 2547 of file interface_handlers.cc.
References float_array_to_string(), get_but_property_array_length(), RNA_property_float_get_array(), uiBut::rnapoin, and uiBut::rnaprop.
Referenced by ui_but_copy().
Definition at line 2592 of file interface_handlers.cc.
References BLI_str_rstrip_float_zero(), ui_but_string_get_ex(), and UI_PRECISION_FLOAT_MAX.
Referenced by ui_but_copy().
|
static |
Definition at line 2755 of file interface_handlers.cc.
References BLI_strncpy(), uiBut::optype, str, UI_but_operator_ptr_ensure(), and WM_operator_pystring_ex().
Referenced by ui_but_copy().
Definition at line 2773 of file interface_handlers.cc.
References BLI_snprintf(), PanelType::idname, and UI_but_paneltype_get().
Referenced by ui_but_copy().
Definition at line 2677 of file interface_handlers.cc.
References ui_but_string_get().
Referenced by ui_but_copy().
|
static |
Definition at line 2100 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, uiDragColorHandle::color, copy_v2_v2_int(), copy_v3_v3(), CTX_wm_region(), CTX_wm_region_set(), CTX_wm_window(), ELEM, uiDragColorHandle::gamma_corrected, uiDragToggleHandle::is_xy_lock_init, 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_BTYPE_COLOR, UI_BTYPE_VIEW_ITEM, ui_but_drag_start(), UI_BUT_POIN_CHAR, UI_BUT_POIN_FLOAT, ui_but_v3_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, 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 665 of file interface_handlers.cc.
References abs(), BUTTON_DRAGLOCK_THRESH, ELEM, uiHandleButtonMulti::INIT_SETUP, and uiHandleButtonMulti::INIT_UNSET.
Referenced by ui_numedit_but_NUM(), and ui_numedit_but_SLI().
Definition at line 9311 of file interface_handlers.cc.
References uiBut::active, BLI_assert, BLI_findindex(), uiBut::block, and data.
Referenced by UI_but_execute(), and ui_multibut_states_apply().
Definition at line 9325 of file interface_handlers.cc.
References uiBut::active, uiBut::block, button_activate_exit(), 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 4328 of file interface_handlers.cc.
References uiBut::active, uiHandleButtonData::apply_through_extra_icon, uiBut::block, button_activate_state(), BUTTON_STATE_EXIT, 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 4521 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(), and rctf::xmax.
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 9242 of file interface_handlers.cc.
References wmEvent::customdata, and LISTBASE_FOREACH.
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 614 of file interface_handlers.cc.
References BLI_assert, ELEM, uiBut::flag, uiBut::next, uiBut::prev, ui_but_find_select_in_enum__cmp(), and UI_SELECT.
Referenced by ui_do_but_TOG().
Definition at line 607 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 2489 of file interface_handlers.cc.
References length(), MEM_callocN, and WM_clipboard_text_get_firstline().
Referenced by ui_but_paste().
|
static |
Definition at line 1832 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 570 of file interface_handlers.cc.
References uiBut::active, BUTTON_STATE_NUM_EDITING, BUTTON_STATE_TEXT_EDITING, and ELEM.
Referenced by ui_but_update_ex().
| bool UI_but_is_userdef | ( | const uiBut * | but | ) |
Definition at line 712 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 UI_BTYPE_LISTROW buttons to "give" events to overlaying UI_BTYPE_TEXT buttons (Ctrl-Click rename feature & co).
Definition at line 4493 of file interface_handlers.cc.
References button_activate_exit(), button_activate_init(), uiBut::flag, uiBut::type, UI_BTYPE_TEXT, UI_BUT_DISABLED, ui_but_find_mouse_over_ex(), and wmEvent::xy.
Referenced by ui_do_but_LISTROW(), and ui_do_button().
Definition at line 4478 of file interface_handlers.cc.
References uiBut::active, uiPopupBlockHandle::direction, and uiHandleButtonData::menu.
Referenced by widget_roundbox_set().
|
static |
Definition at line 2881 of file interface_handlers.cc.
References BLI_assert, PointerRNA::data, uiBut::flag, MEM_freeN(), uiBut::poin, uiBut::rnapoin, uiBut::type, UI_BTYPE_COLOR, UI_BTYPE_COLORBAND, UI_BTYPE_CURVE, UI_BTYPE_CURVEPROFILE, UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER, UI_BTYPE_SEARCH_MENU, UI_BTYPE_TEXT, UI_BTYPE_UNITVEC, 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(), and ui_but_paste_text().
Referenced by ui_do_button().
Definition at line 2656 of file interface_handlers.cc.
References BLI_assert, ELEM, 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_report().
Referenced by ui_but_paste().
|
static |
Definition at line 2696 of file interface_handlers.cc.
References but_copypaste_coba, button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_NUM_EDITING, uiBut::poin, and ColorBand::tot.
Referenced by ui_but_paste().
Definition at line 2718 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, and uiBut::poin.
Referenced by ui_but_paste().
Definition at line 2741 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, and uiBut::poin.
Referenced by ui_but_paste().
|
static |
Definition at line 2617 of file interface_handlers.cc.
References normalize_v3(), parse_float_array(), RPT_ERROR, ui_but_set_float_array(), and WM_report().
Referenced by ui_but_paste().
|
static |
Definition at line 2571 of file interface_handlers.cc.
References get_but_property_array_length(), parse_float_array(), RPT_ERROR, ui_but_set_float_array(), and WM_report().
Referenced by ui_but_paste().
|
static |
Definition at line 2600 of file interface_handlers.cc.
References button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_NUM_EDITING, RPT_ERROR, ui_but_string_eval_number(), ui_but_string_set(), and WM_report().
Referenced by ui_but_paste().
|
static |
Definition at line 2682 of file interface_handlers.cc.
References uiBut::active, BLI_assert, ui_but_set_string_interactive(), and UNUSED_VARS_NDEBUG.
Referenced by ui_but_paste().
|
static |
Definition at line 11414 of file interface_handlers.cc.
References uiBut::active, button_activate_exit(), button_activate_init(), BUTTON_ACTIVATE_OVER, 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 11364 of file interface_handlers.cc.
References uiBut::active, button_activate_exit(), button_activate_init(), BUTTON_ACTIVATE_OPEN, ED_region_tag_redraw(), uiPopupBlockHandle::menuretval, uiPopupBlockHandle::region, uiBut::type, UI_BTYPE_MENU, 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 11359 of file interface_handlers.cc.
References ELEM, uiBut::type, UI_BTYPE_NUM, and UI_BTYPE_NUM_SLIDER.
Referenced by ui_but_pie_menu_apply().
Definition at line 8978 of file interface_handlers.cc.
References uiHandleButtonData::region, uiBut::semi_modal_state, and with_but_active_as_semi_modal().
Referenced by ui_but_free().
|
static |
Definition at line 2512 of file interface_handlers.cc.
References BLI_assert, button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_NUM_EDITING, copy_v3_v3(), RNA_property_float_set_index(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, uiBut::type, and UI_BTYPE_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 3030 of file interface_handlers.cc.
References uiBut::active, BLI_assert, button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_TEXT_EDITING, uiBut::changed, uiBut::flag, uiHandleButtonData::searchbox, uiHandleButtonData::text_edit, uiBut::type, UI_BTYPE_SEARCH_MENU, UI_BUT_DISABLED, ui_searchbox_update(), and ui_textedit_string_set().
Referenced by drop_name_invoke(), and ui_but_paste_text().
| void ui_but_text_password_hide | ( | char | password_str[UI_MAX_PASSWORD_STR], |
| uiBut * | but, | ||
| const bool | restore ) |
Definition at line 2985 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 8462 of file interface_handlers.cc.
References uiBut::active, 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_LABEL.
Referenced by button_activate_init(), and button_tooltip_timer_reset().
Recreate tool-tip (use to update dynamic tips)
Definition at line 8436 of file interface_handlers.cc.
References uiBut::active, 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 8447 of file interface_handlers.cc.
References uiBut::active, 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 726 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 9220 of file interface_handlers.cc.
References uiBut::active, uiBut::block, uiBut::changed, uiHandleButtonData::region, ui_block_active_but_get(), and UI_but_ensure_in_view().
Referenced by UI_blocklist_update_view_for_buttons().
Definition at line 9446 of file interface_handlers.cc.
References double(), 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().
|
static |
Definition at line 6653 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 760 of file interface_handlers.cc.
References BLI_assert, snap(), SNAP_OFF, and SNAP_ON_SMALL.
Referenced by ui_numedit_but_HSVCIRCLE(), and ui_numedit_but_HSVCUBE().
Definition at line 9126 of file interface_handlers.cc.
References 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 9050 of file interface_handlers.cc.
References 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 9055 of file interface_handlers.cc.
References 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 9097 of file interface_handlers.cc.
References 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_remove_button_exec(), override_remove_button_poll(), override_type_set_button_exec(), override_type_set_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 9107 of file interface_handlers.cc.
References uiBut::block, 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 9131 of file interface_handlers.cc.
References CTX_wm_region(), CTX_wm_screen(), LISTBASE_FOREACH, and ARegion::uiblocks.
Referenced by screen_ctx_active_operator().
|
static |
Definition at line 8991 of file interface_handlers.cc.
References uiBut::active, uiBut::flag, LISTBASE_FOREACH, 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 9172 of file interface_handlers.cc.
References uiBut::active, BKE_animsys_eval_context_construct(), CTX_data_depsgraph_pointer(), CTX_data_main(), CTX_data_scene(), CTX_wm_region(), depsgraph, ED_region_tag_redraw(), uiBut::flag, LISTBASE_FOREACH, uiHandleButtonData::menu, uiPopupBlockHandle::region, 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 4609 of file interface_handlers.cc.
References uiBut::block, button_activate_state(), BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_WAIT_DRAG, 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 6226 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, 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 4633 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, 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 6410 of file interface_handlers.cc.
References 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, clamp_f(), col, CTX_data_scene(), ColorBand::cur, uiBut::custom_data, ColorBand::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_scene_linear_to_srgb_v3(), 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(), RNA_property_subtype(), RNA_property_update(), RNA_struct_find_property(), uiBut::rnapoin, uiBut::rnaprop, uiBut::type, wmEvent::type, ui_apply_but(), UI_BTYPE_COLOR, 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 7258 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, ColorBand::cur, ColorBand::data, ELEM, EVT_ESCKEY, float, KM_CTRL, KM_PRESS, KM_RELEASE, LEFTMOUSE, wmEvent::modifier, MOUSEMOVE, uiBut::poin, CBData::pos, pos, uiBut::rect, RIGHTMOUSE, ColorBand::tot, 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 7450 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, CurveMapping::cm, CM_TABLE, copy_v2_v2(), CTX_data_scene(), CTX_data_view_layer(), CUMA_SELECT, CurveMapping::cur, CurveMapping::curr, CurveMap::curve, dist_squared_to_line_segment_v2(), CurveMapPoint::flag, float, 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, and wmEvent::xy.
Referenced by ui_do_button().
|
static |
Interaction for curve profile widget.
Definition at line 7739 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, copy_v2_v2(), dist_squared_to_line_segment_v2(), ELEM, EVT_GKEY, EVT_XKEY, CurveProfilePoint::flag, float, CurveProfilePoint::h1_loc, CurveProfilePoint::h2_loc, HD_ALIGN, HD_FREE, int, KM_CTRL, KM_PRESS, KM_RELEASE, KM_SHIFT, LEFTMOUSE, len_squared_v2v2(), wmEvent::modifier, MOUSEMOVE, 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(), wmEvent::type, ui_numedit_apply(), ui_numedit_but_CURVEPROFILE(), UI_SCALE_FAC, ui_window_to_block(), wmEvent::val, WM_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, and CurveProfilePoint::x.
Referenced by ui_do_button().
|
static |
Definition at line 5025 of file interface_handlers.cc.
References button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_WAIT_DRAG, uiBut::custom_data, uiListDyn::custom_drag_optype, uiList::dyn_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_list_find_mouse_over(), 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 4556 of file interface_handlers.cc.
References button_tooltip_timer_reset(), 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 4582 of file interface_handlers.cc.
References 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 6150 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, 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 7925 of file interface_handlers.cc.
References button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_NUM_EDITING, 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 4675 of file interface_handlers.cc.
References uiBut::active, BLI_assert, button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_WAIT_KEY_EVENT, uiBut::drawstr, ED_region_tag_redraw(), ELEM, EVT_BUT_OPEN, EVT_CAPSLOCKKEY, EVT_ESCKEY, EVT_PADENTER, EVT_RETKEY, EVT_UNKNOWNKEY, ISHOTKEY, ISMOUSE_MOTION, KM_PRESS, LEFTMOUSE, uiButHotkeyEvent::modifier_key, uiHandleButtonData::region, RPT_WARNING, uiBut::type, wmEvent::type, UI_BTYPE_HOTKEY_EVENT, ui_but_contains_point_px(), ui_but_update(), ui_but_value_set(), wmEvent::val, WM_key_event_string(), WM_report(), WM_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, and wmEvent::xy.
Referenced by ui_do_button().
|
static |
Definition at line 7128 of file interface_handlers.cc.
References uiBut::block, button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_NUM_EDITING, clamp_f(), uiBut::custom_data, ELEM, EVT_BACKSPACEKEY, EVT_ESCKEY, ColorPicker::hsv_perceptual, hsv_to_rgb_v(), KM_PRESS, KM_RELEASE, KM_SHIFT, LEFTMOUSE, len, MEM_callocN, 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_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 6853 of file interface_handlers.cc.
References uiBut::block, button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_NUM_EDITING, uiBut::custom_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_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 4748 of file interface_handlers.cc.
References button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_WAIT_KEY_EVENT, 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 6201 of file interface_handlers.cc.
References BUTTON_ACTIVATE_TEXT_EDITING, BUTTON_STATE_HIGHLIGHT, 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 5505 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, copy_v2_v2_int(), double(), uiBut::drawflag, ELEM, EVT_BUT_OPEN, EVT_ESCKEY, EVT_MINUSKEY, EVT_PADENTER, EVT_RETKEY, FLT_MAX, uiHandleButtonMulti::INIT_ENABLE, uiHandleButtonMulti::INIT_SETUP, int, KM_CTRL, KM_PRESS, KM_RELEASE, KM_SHIFT, LEFTMOUSE, max_ff(), max_ii(), min_ff(), min_ii(), wmEvent::modifier, MOUSEMOVE, MOUSEPAN, powf, uiButNumber::precision, PROP_SCALE_LOG, uiBut::rect, RIGHTMOUSE, round_fl_to_int_clamp(), snap(), uiBut::softmax, uiBut::softmin, uiButNumber::step_size, uiBut::type, wmEvent::type, UI_BTYPE_NUM, 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_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, rctf::xmax, rctf::xmin, and wmEvent::xy.
Referenced by ui_do_button().
|
static |
Definition at line 6094 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, 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_UI_HANDLER_BREAK, and WM_UI_HANDLER_CONTINUE.
Referenced by ui_do_button().
|
static |
Definition at line 4856 of file interface_handlers.cc.
References 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 5868 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, CLAMP, copy_v2_fl(), copy_v2_v2_int(), ELEM, EVT_ESCKEY, EVT_MINUSKEY, EVT_PADENTER, EVT_RETKEY, float, FLT_MAX, uiHandleButtonMulti::INIT_ENABLE, uiHandleButtonMulti::INIT_SETUP, int, KM_ALT, KM_CTRL, KM_PRESS, KM_RELEASE, KM_SHIFT, LEFTMOUSE, wmEvent::modifier, MOUSEMOVE, MOUSEPAN, powf, PROP_SCALE_LOG, uiBut::rect, RIGHTMOUSE, 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_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, rctf::xmax, rctf::xmin, and wmEvent::xy.
Referenced by ui_do_button().
|
static |
Definition at line 4779 of file interface_handlers.cc.
References button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_TEXT_EDITING, BUTTON_STATE_TEXT_SELECTING, uiBut::custom_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 4823 of file interface_handlers.cc.
References button_activate_state(), BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_TEXT_EDITING, BUTTON_STATE_TEXT_SELECTING, ELEM, uiBut::emboss, EVT_BUT_OPEN, EVT_PADENTER, EVT_RETKEY, KM_ALT, KM_CTRL, KM_OSKEY, KM_PRESS, KM_SHIFT, LEFTMOUSE, wmEvent::modifier, wmEvent::type, ui_but_extra_operator_icon_mouse_over_get(), UI_but_is_utf8(), ui_do_but_textedit(), ui_do_but_textedit_select(), UI_EMBOSS_NONE, UI_EMBOSS_NONE_OR_STATUS, wmEvent::val, WM_UI_HANDLER_BREAK, and WM_UI_HANDLER_CONTINUE.
Referenced by ui_do_but_SEARCH_UNLINK(), and ui_do_button().
|
static |
Definition at line 3743 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, uiBut::changed, CLAMP, CTX_wm_window(), 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, wmWindow::ime_data, wmWindow::ime_data_is_composing, jump(), KM_ALT, KM_CTRL, KM_DBL_CLICK, KM_OSKEY, KM_PRESS, KM_RELEASE, KM_SHIFT, LEFTMOUSE, wmEvent::modifier, MOUSEMOVE, MOUSEPAN, uiBut::pos, RIGHTMOUSE, 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_BTYPE_NUM, UI_BTYPE_NUM_SLIDER, 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 4128 of file interface_handlers.cc.
References button_activate_state(), BUTTON_STATE_TEXT_EDITING, 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 4869 of file interface_handlers.cc.
References uiBut::active, BLI_assert, uiBut::block, button_activate_exit(), button_activate_init(), BUTTON_ACTIVATE_OVER, button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, ELEM, EVT_PADENTER, EVT_RETKEY, KM_CTRL, KM_DBL_CLICK, KM_PRESS, KM_RELEASE, LEFTMOUSE, wmEvent::modifier, MOUSEPAN, uiBut::next, uiBut::prev, uiBut::type, wmEvent::type, ui_apply_but(), ui_block_is_menu(), UI_BTYPE_ROW, 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 8089 of file interface_handlers.cc.
References button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_NUM_EDITING, 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 6560 of file interface_handlers.cc.
References button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_NUM_EDITING, 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 4976 of file interface_handlers.cc.
References BLI_assert, button_activate_state(), BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_WAIT_DRAG, CTX_wm_region(), ED_region_tag_redraw(), force_activate_view_item_but(), KM_DBL_CLICK, KM_PRESS, LEFTMOUSE, uiBut::type, wmEvent::type, UI_BTYPE_VIEW_ITEM, 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, WM_UI_HANDLER_BREAK, and WM_UI_HANDLER_CONTINUE.
Referenced by ui_do_button().
|
static |
Definition at line 7998 of file interface_handlers.cc.
References button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_NUM_EDITING, 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().
|
static |
Definition at line 8136 of file interface_handlers.cc.
References abs(), blender::ui::AbstractViewItem::activate(), uiBut::active, uiBlock::aspect, BLI_assert, BUTTON_ACTIVATE_OVER, BUTTON_STATE_HIGHLIGHT, BUTTON_STATE_NUM_EDITING, BUTTON_STATE_TEXT_EDITING, dot_v2v2(), DRAG_MULTINUM_THRESHOLD_DRAG_X, DRAG_MULTINUM_THRESHOLD_DRAG_Y, DRAG_MULTINUM_THRESHOLD_VERTICAL, ED_KEYMAP_VIEW2D, ED_region_tag_redraw(), ELEM, EVT_BUT_OPEN, EVT_CKEY, EVT_PADENTER, EVT_RETKEY, EVT_VKEY, fabsf, uiBut::flag, uiHandleButtonMulti::INIT_DISABLE, uiHandleButtonMulti::INIT_ENABLE, uiHandleButtonMulti::INIT_SETUP, uiHandleButtonMulti::INIT_UNSET, is_disabled, ISMOUSE_MOTION, KM_ALT, KM_CTRL, KM_OSKEY, KM_PRESS, KM_RELEASE, KM_SHIFT, LEFTMOUSE, len_squared_v2(), wmEvent::modifier, NDOF_MOTION, normalize_v2_v2(), uiBut::poin, uiBut::pointype, wmEvent::prev_xy, RIGHTMOUSE, sqrtf, uiBut::type, wmEvent::type, UI_BTYPE_BLOCK, UI_BTYPE_BUT, UI_BTYPE_BUT_MENU, UI_BTYPE_BUT_TOGGLE, UI_BTYPE_CHECKBOX, UI_BTYPE_CHECKBOX_N, UI_BTYPE_COLOR, UI_BTYPE_COLORBAND, UI_BTYPE_CURVE, UI_BTYPE_CURVEPROFILE, UI_BTYPE_DECORATOR, UI_BTYPE_EXTRA, UI_BTYPE_GRIP, UI_BTYPE_HISTOGRAM, UI_BTYPE_HOTKEY_EVENT, UI_BTYPE_HSVCIRCLE, UI_BTYPE_HSVCUBE, UI_BTYPE_ICON_TOGGLE, UI_BTYPE_ICON_TOGGLE_N, UI_BTYPE_IMAGE, UI_BTYPE_KEY_EVENT, UI_BTYPE_LABEL, UI_BTYPE_LISTBOX, UI_BTYPE_LISTROW, UI_BTYPE_MENU, UI_BTYPE_NODE_SOCKET, UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER, UI_BTYPE_POPOVER, UI_BTYPE_PREVIEW_TILE, UI_BTYPE_PROGRESS, UI_BTYPE_PULLDOWN, UI_BTYPE_ROUNDBOX, UI_BTYPE_ROW, UI_BTYPE_SCROLL, UI_BTYPE_SEARCH_MENU, UI_BTYPE_SEPR, UI_BTYPE_SEPR_LINE, UI_BTYPE_SEPR_SPACER, UI_BTYPE_TAB, UI_BTYPE_TEXT, UI_BTYPE_TOGGLE, UI_BTYPE_TOGGLE_N, UI_BTYPE_TRACK_PREVIEW, UI_BTYPE_UNITVEC, UI_BTYPE_VECTORSCOPE, UI_BTYPE_VIEW_ITEM, UI_BTYPE_WAVEFORM, 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(), wmEvent::val, uiButViewItem::view_item, 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 1629 of file interface_handlers.cc.
References ELEM, uiBut::flag, uiBut::icon, 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().
Definition at line 1649 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 1728 of file interface_handlers.cc.
References BLI_rctf_cent_x(), BLI_rctf_cent_y(), uiDragToggleHandle::but_cent_start, 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 1675 of file interface_handlers.cc.
References BLI_rctf_isect_segment(), float, LISTBASE_FOREACH, uiBut::rect, RGN_TYPE_TEMPORARY, 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 754 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 748 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, |
| wmOperatorCallContext | opcontext ) |
Definition at line 820 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 797 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(), and ui_list_invoke_item_operator().
|
static |
Definition at line 9337 of file interface_handlers.cc.
References uiBut::active, button_activate_exit(), button_activate_init(), uiHandleButtonData::cancel, 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().
|
static |
Use for key accelerator or default key to activate the button even if its not active.
Definition at line 9355 of file interface_handlers.cc.
References BUTTON_ACTIVATE, BUTTON_ACTIVATE_APPLY, BUTTON_ACTIVATE_OPEN, ELEM, printf, uiBut::type, UI_BTYPE_BLOCK, UI_BTYPE_BUT_MENU, UI_BTYPE_MENU, UI_BTYPE_PULLDOWN, UI_BTYPE_ROW, and ui_handle_button_activate().
Referenced by ui_handle_menu_event().
Definition at line 9479 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(), wmEvent::customdata, ED_region_tag_redraw_no_rebuild(), ELEM, 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, BMLoop::next, wmEvent::prev_xy, PROP_FLOAT, PROP_INT, RIGHTMOUSE, RNA_property_type(), uiBut::rnaprop, state, uiHandleButtonData::state, TIMER, uiBut::type, wmEvent::type, ui_block_is_menu(), ui_block_is_pie_menu(), UI_BLOCK_POPOVER_ONCE, ui_blocks_set_tooltips(), UI_BTYPE_COLOR, 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_CURSOR_MOTION_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 9254 of file interface_handlers.cc.
References uiBut::active, uiBut::block, button_activate_init(), BUTTON_ACTIVATE_OVER, 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().
|
static |
Definition at line 10143 of file interface_handlers.cc.
References uiBut::active, uiBut::block, button_activate_exit(), button_activate_state(), BUTTON_STATE_HIGHLIGHT, copy_v3_v3(), ISKEYBOARD, uiPopupBlockHandle::menuretval, MOUSEMOVE, uiPopupBlockHandle::retvalue, uiPopupBlockHandle::retvec, uiBut::type, wmEvent::type, ui_apply_but(), UI_BTYPE_COLOR, UI_BTYPE_MENU, 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 9908 of file interface_handlers.cc.
References uiBut::block, 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, uiListDyn::items_filter_flags, uiListDyn::items_filter_neworder, uiListDyn::items_len, uiListDyn::items_shown, KM_ALT, KM_CTRL, KM_OSKEY, KM_PRESS, KM_SHIFT, LEFTMOUSE, len, uiList::list_grip, uiList::list_scroll, max, MEM_freeN(), MEM_mallocN, min, wmEvent::modifier, MOUSEPAN, RNA_property_int_get(), RNA_property_int_range(), uiBut::rnapoin, uiBut::rnaprop, wmEvent::type, ui_list_activate_row_from_index(), UI_LIST_AUTO_SIZE_THRESHOLD, ui_list_get_increment(), ui_list_handle_click_drag(), 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 10505 of file interface_handlers.cc.
References uiBut::active, uiBut::block, 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, uiBut::type, wmEvent::type, ui_block_is_menu(), ui_block_is_pie_menu(), UI_BTYPE_SEARCH_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 10616 of file interface_handlers.cc.
References activate(), uiBut::active, add_v2_v2v2_int(), uiPopupBlockCreate::arg, ATTR_FALLTHROUGH, BLI_rctf_isect_pt(), uiBlock::block_event_func, BUTTON_ACTIVATE, BUTTON_ACTIVATE_APPLY, button_activate_exit(), BUTTON_ACTIVATE_OPEN, button_modal_state(), uiBlock::buttons, uiHandleButtonData::cancel, copy_v2_v2_int(), count, CTX_wm_manager(), CTX_wm_window(), wmWindow::cursor, wmEvent::customdata, PointerRNA::data, 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, uiBut::flag, wmEvent::flag, float, uiPopupBlockHandle::grab_xy_prev, uiPopupBlockHandle::is_grab, uiPopupBlockHandle::keynav_state, KM_ALT, KM_CLICK, KM_CTRL, KM_DBL_CLICK, KM_OSKEY, KM_PRESS, KM_RELEASE, KM_SHIFT, LEFTMOUSE, LISTBASE_FOREACH, 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, uiBut::next, uiSafetyRct::next, uiSafetyRct::parent, uiPopupBlockHandle::popup_create_vars, PROP_LAYER, PROP_LAYER_MEMBER, uiBlock::rect, uiPopupBlockHandle::region, RIGHTMOUSE, RNA_property_subtype(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, uiBlock::saferct, uiSafetyRct::safety, uiPopupBlockHandle::scrolltimer, SearchOnKeyPress, uiHandleButtonData::state, sub_v2_v2v2_int(), TIMER, uiBut::type, wmEvent::type, 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_BTYPE_BLOCK, UI_BTYPE_BUT, UI_BTYPE_BUT_MENU, UI_BTYPE_IMAGE, UI_BTYPE_LABEL, UI_BTYPE_MENU, UI_BTYPE_PULLDOWN, UI_BTYPE_SEPR, UI_BTYPE_SEPR_LINE, 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_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_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, wmEvent::xy, and rctf::ymax.
Referenced by ui_handle_menus_recursive().
|
static |
Definition at line 10589 of file interface_handlers.cc.
References BLI_str_utf8_size_or_error(), EVT_SPACEKEY, 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_OP_INVOKE_DEFAULT, 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 11310 of file interface_handlers.cc.
References uiBut::active, BLI_assert, uiPopupBlockHandle::butretval, uiBlock::flag, uiPopupBlockHandle::menuretval, uiPopupBlockHandle::region, 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 11690 of file interface_handlers.cc.
References uiBut::active, BLI_rctf_isect_pt(), CTX_wm_region_popup(), CTX_wm_region_popup_set(), data, ED_region_tag_redraw(), ED_region_tag_refresh_ui(), PieMenuData::event_type, ListBase::first, uiBlock::flag, IN_RANGE, KM_DBL_CLICK, KM_PRESS, LEFTMOUSE, LISTBASE_FOREACH, uiPopupBlockHandle::menuretval, uiBlock::pie_data, uiBlock::rect, uiPopupBlockHandle::region, uiPopupBlockHandle::retvalue, TIMER, uiBut::type, wmEvent::type, ui_block_is_menu(), UI_BLOCK_MOVEMOUSE_QUIT, UI_BLOCK_PIE_MENU, UI_BLOCK_POPOVER, UI_BTYPE_SEARCH_MENU, 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(), ARegion::uiblocks, 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 11919 of file interface_handlers.cc.
References BLI_assert, button_modal_state(), 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 10098 of file interface_handlers.cc.
References EVT_PADENTER, EVT_RETKEY, force_activate_view_item_but(), KM_PRESS, LEFTMOUSE, MOUSEMOVE, wmEvent::prev_xy, uiBut::type, wmEvent::type, UI_BTYPE_VIEW_ITEM, UI_region_views_clear_search_highlight(), ui_view_item_find_mouse_over(), ui_view_item_find_search_highlight(), wmEvent::val, WM_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, and wmEvent::xy.
Referenced by ui_handle_menus_recursive(), and ui_region_handler().
Definition at line 10037 of file interface_handlers.cc.
References BLI_listbase_is_empty(), ED_region_tag_redraw_no_rebuild(), ELEM, uiBut::flag, LISTBASE_FOREACH, uiBut::type, UI_BTYPE_LISTROW, UI_BTYPE_VIEW_ITEM, UI_HOVER, ui_list_row_find_mouse_over(), ui_view_item_find_mouse_over(), ui_view_item_find_search_highlight(), WM_UI_HANDLER_CONTINUE, and wmEvent::xy.
Referenced by ui_handle_menus_recursive(), and ui_region_handler().
|
static |
Definition at line 1791 of file interface_handlers.cc.
References 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 1785 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 11942 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, CTX_wm_region(), CTX_wm_region_popup(), CTX_wm_region_popup_set(), CTX_wm_screen(), ELEM, uiBut::flag, KM_DBL_CLICK, uiHandleButtonData::menu, MOUSEMOVE, wmEvent::prev_xy, uiBut::rect, uiPopupBlockHandle::region, TIMER, uiBut::type, wmEvent::type, ui_apply_but_funcs_after(), ui_blocks_set_tooltips(), UI_BTYPE_MENU, UI_BTYPE_POPOVER, UI_BTYPE_PULLDOWN, UI_BUT_DISABLED, ui_but_find_mouse_over(), 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 |
Activate the underlying list-row button, so the row is highlighted. Early exits if activate_dragging is true, but the custom drag operator fails to execute. Gives the wanted behavior where the item is activated on a click-drag event when the custom drag operator is executed.
Definition at line 9765 of file interface_handlers.cc.
References uiListDyn::custom_activate_optype, uiListDyn::custom_drag_opptr, uiListDyn::custom_drag_optype, uiList::dyn_data, UI_but_execute(), ui_but_find_mouse_over(), ui_list_invoke_item_operator(), ui_list_row_find_mouse_over(), WM_event_drag_start_xy(), WM_UI_HANDLER_BREAK, and WM_UI_HANDLER_CONTINUE.
Referenced by ui_list_handle_click_drag().
|
static |
Definition at line 9864 of file interface_handlers.cc.
References uiList::flag, RNA_property_int_set(), RNA_property_update(), uiBut::rnapoin, uiBut::rnaprop, ui_apply_but_undo(), UI_but_execute(), ui_list_row_find_index(), and UILST_SCROLL_TO_ACTIVE_ITEM.
Referenced by ui_handle_list_event().
|
static |
Definition at line 9886 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, UILST_LAYOUT_GRID, and WHEELUPMOUSE.
Referenced by ui_handle_list_event().
|
static |
Definition at line 9828 of file interface_handlers.cc.
References activate(), KM_CLICK, KM_CLICK_DRAG, LEFTMOUSE, wmEvent::type, ui_list_activate_hovered_row(), ui_list_is_hovering_draggable_but(), wmEvent::val, and WM_UI_HANDLER_CONTINUE.
Referenced by ui_handle_list_event().
|
static |
| context_but | The button to use context from when calling or polling the operator. |
Definition at line 1221 of file interface_handlers.cc.
References ot, ui_but_context_poll_operator(), ui_handle_afterfunc_add_operator_ex(), and WM_OP_INVOKE_DEFAULT.
Referenced by ui_apply_but_LISTROW(), and ui_list_activate_hovered_row().
|
static |
Definition at line 9807 of file interface_handlers.cc.
References ui_but_context_poll_operator(), ui_but_drag_is_draggable(), ui_but_find_mouse_over_ex(), and WM_event_drag_start_xy().
Referenced by ui_list_handle_click_drag().
|
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 10487 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 10359 of file interface_handlers.cc.
References BLI_assert, uiBlock::buttons, ED_region_tag_redraw(), FLT_MAX, uiBlock::handle, LISTBASE_FOREACH, 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 10442 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().
Definition at line 10342 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 10404 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 10425 of file interface_handlers.cc.
References ui_menu_scroll_apply_offset_y(), ui_menu_scroll_test(), and UI_UNIT_Y.
Referenced by ui_handle_menu_event(), and ui_menu_scroll_step().
|
static |
Definition at line 10315 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 10324 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 10242 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, 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 10232 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 10211 of file interface_handlers.cc.
References BLI_assert, BLI_time_now_seconds(), uiPopupBlockHandle::dotowards, ListBase::first, uiPopupBlockHandle::region, uiPopupBlockHandle::towards_xy, uiPopupBlockHandle::towardstime, UI_BLOCK_MOVEMOUSE_QUIT, UI_BLOCK_POPOVER, ARegion::uiblocks, and xy.
Referenced by ui_mouse_motion_towards_init(), and ui_mouse_motion_towards_reinit().
|
static |
Definition at line 10237 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 642 of file interface_handlers.cc.
References ui_mouse_scale_warp_factor().
Referenced by ui_numedit_but_HSVCIRCLE(), ui_numedit_but_HSVCUBE(), and ui_numedit_but_SLI().
|
static |
Definition at line 637 of file interface_handlers.cc.
Referenced by ui_mouse_scale_warp(), ui_numedit_but_CURVE(), and ui_numedit_but_CURVEPROFILE().
|
static |
Definition at line 1386 of file interface_handlers.cc.
References BLI_assert, BLI_linklist_prepend(), uiButMultiState::but, 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 1437 of file interface_handlers.cc.
References BLI_linklist_freeN(), uiSelectContextStore::elems, MEM_freeN(), LinkNode::next, next, uiButMultiState::select_others, and UI_butstore_free().
Referenced by button_activate_exit().
|
static |
Definition at line 1403 of file interface_handlers.cc.
References uiButMultiState::but, l, and BMLoop::next.
Referenced by ui_multibut_restore(), and ui_multibut_states_apply().
|
static |
Definition at line 1416 of file interface_handlers.cc.
References uiBlock::buttons, uiSelectContextStore::elems_len, uiBut::flag, LISTBASE_FOREACH, 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 1548 of file interface_handlers.cc.
References uiBut::active, BLI_assert, uiBlock::buttons, CLAMP, uiSelectContextStore::do_free, uiSelectContextStore::elems_len, uiBut::flag, uiHandleButtonMulti::INIT_ENABLE, LISTBASE_FOREACH, uiButMultiState::origvalue, uiHandleButtonData::origvalue, printf, uiButMultiState::select_others, uiHandleButtonData::select_others, uiBut::softmax, uiBut::softmin, UI_BUT_DRAG_MULTI, ui_but_execute_begin(), ui_but_execute_end(), ui_but_string_set(), ui_multibut_lookup(), ui_selectcontext_begin(), and uiHandleButtonData::value.
Referenced by ui_apply_but(), ui_do_but_NUM(), and ui_do_but_SLI().
|
static |
Definition at line 1523 of file interface_handlers.cc.
References BLI_assert, uiBut::block, uiBlock::buttons, ELEM, uiBut::flag, uiHandleButtonMulti::INIT_SETUP, LISTBASE_FOREACH, 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 1467 of file interface_handlers.cc.
References uiBut::active, BLI_assert, BLI_rctf_isect_segment(), uiBut::block, uiBlock::buttons, uiBut::flag, uiHandleButtonMulti::INIT_SETUP, LISTBASE_FOREACH, uiBut::rect, 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 4316 of file interface_handlers.cc.
References 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 5177 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 5099 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, snap(), SNAP_OFF, SNAP_ON, SNAP_ON_SMALL, 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 4172 of file interface_handlers.cc.
References BLI_assert, copy_v3_v3(), cube_f(), double(), uiButColorBand::edit_coba, uiButCurveMapping::edit_cumap, uiButCurveProfile::edit_profile, uiBut::editval, uiBut::editvec, ELEM, float, FLT_MAX, int, logf, max_ff(), min_ff(), uiBut::poin, powf, uiButNumber::precision, PROP_SCALE_CUBIC, PROP_SCALE_LINEAR, PROP_SCALE_LOG, uiBut::softmax, uiBut::softmin, uiButNumber::step_size, uiBut::type, UI_BTYPE_COLOR, UI_BTYPE_COLORBAND, UI_BTYPE_CURVE, UI_BTYPE_CURVEPROFILE, UI_BTYPE_HSVCIRCLE, UI_BTYPE_HSVCUBE, UI_BTYPE_NUM, UI_BTYPE_UNITVEC, 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, and UNLIKELY.
Referenced by button_activate_state().
|
static |
Definition at line 4165 of file interface_handlers.cc.
References ui_but_value_get().
Referenced by ui_numedit_begin(), and ui_textedit_begin().
|
static |
Definition at line 7233 of file interface_handlers.cc.
References BKE_colorband_update_sort(), BLI_rctf_size_x(), CLAMP, float, and uiBut::rect.
Referenced by ui_do_but_COLORBAND().
|
static |
Definition at line 7334 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, CurveMapping::flag, flag, len_squared_v2(), uiBut::poin, uiBut::rect, snap(), CurveMap::totpoint, ui_but_is_cursor_warp(), ui_mouse_scale_warp_factor(), ui_window_to_block(), CurveMapPoint::x, rctf::xmax, rctf::xmin, CurveMapPoint::y, rctf::ymax, and rctf::ymin.
Referenced by ui_do_but_CURVE().
|
static |
Definition at line 7609 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(), ELEM, flag, float, CurveProfilePoint::h1_loc, CurveProfilePoint::h2_loc, HD_ALIGN, HD_FREE, len_squared_v2(), 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(), CurveProfilePoint::x, rctf::xmin, CurveProfilePoint::y, and rctf::ymin.
Referenced by ui_do_but_CURVEPROFILE().
|
static |
Definition at line 7906 of file interface_handlers.cc.
References CLAMP, min_ff(), uiBut::poin, pow2f(), and Histogram::ymax.
Referenced by ui_do_but_HISTOGRAM().
|
static |
Definition at line 6950 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, 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(), ui_but_is_cursor_warp(), ui_but_v3_get(), 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 6665 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, ELEM, float, uiButHSVCube::gradient_type, ColorPicker::hsv_perceptual, min, uiBut::rect, snap(), SNAP_OFF, uiBut::softmax, uiBut::softmin, ui_but_is_cursor_warp(), ui_but_v3_get(), 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 5200 of file interface_handlers.cc.
References abs(), uiBut::block, CLAMP, CLAMP_MAX, CLAMP_MIN, double(), uiBlock::evil_C, expf, float, int, 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 5720 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(), ELEM, uiBlock::evil_C, powf, PROP_SCALE_CUBIC, PROP_SCALE_LINEAR, PROP_SCALE_LOG, uiBut::rect, round_fl_to_int(), snap(), uiBut::softmax, uiBut::softmin, uiButNumberSlider::step_size, uiBut::type, ui_block_interaction_begin_ensure(), UI_BTYPE_NUM_SLIDER, UI_BTYPE_SCROLL, ui_but_dragedit_update_mval(), ui_but_is_cursor_warp(), ui_but_is_float(), ui_but_scale_type(), ui_mouse_scale_warp(), rctf::xmin, and rctf::ymin.
Referenced by ui_do_but_SCROLL(), and ui_do_but_SLI().
|
static |
Definition at line 8053 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, CTX_data_edit_movieclip(), 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 6322 of file interface_handlers.cc.
References angle(), asinf, BLI_rctf_size_x(), compare_v3v3(), float, M_PI, normalize_v3(), uiBut::rect, sinf, snap(), SNAP_OFF, SNAP_ON, and sqrtf.
Referenced by ui_do_but_UNITVEC().
|
static |
Definition at line 7980 of file interface_handlers.cc.
References CLAMP, uiBut::poin, and Scopes::wavefrm_yfac.
Referenced by ui_do_but_WAVEFORM().
|
static |
Definition at line 4293 of file interface_handlers.cc.
References uiButColorBand::edit_coba, uiButCurveMapping::edit_cumap, uiButCurveProfile::edit_profile, uiBut::editval, uiBut::editvec, uiBut::type, UI_BTYPE_COLORBAND, UI_BTYPE_CURVE, and UI_BTYPE_CURVEPROFILE.
Referenced by button_activate_state().
|
static |
Definition at line 5456 of file interface_handlers.cc.
References uiBut::active, BLI_rctf_size_x(), BLI_rctf_size_y(), uiBut::block, 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 6401 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().
Assumes event type is MOUSEPAN.
Definition at line 576 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 11431 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, CASE_NUM_TO_DIR, copy_v2_v2(), CTX_wm_manager(), CTX_wm_window(), wmEvent::customdata, PieMenuData::duration_gesture, ED_region_tag_redraw(), ELEM, 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_CTRL, KM_DBL_CLICK, KM_OSKEY, KM_PRESS, KM_RELEASE, KM_SHIFT, PieMenuData::last_pos, LEFTMOUSE, len_squared_v2v2(), LISTBASE_FOREACH, uiBut::menu_key, uiPopupBlockHandle::menuretval, wmEvent::modifier, MOUSEMOVE, mul_v2_fl(), PieMenuData::pie_center_init, PieMenuData::pie_center_spawned, PIE_CLICK_THRESHOLD_SQ, uiBlock::pie_data, uiBut::pie_dir, PIE_MENU_INTERVAL, uiBut::rect, uiPopupBlockHandle::region, RIGHTMOUSE, uiPopupBlockHandle::scrolltimer, uiHandleButtonData::state, wmTimer::time_duration, TIMER, wmEvent::type, 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_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(), wmEvent::val, WM_event_timer_add(), WM_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, and wmEvent::xy.
Referenced by ui_handle_menus_recursive().
Definition at line 12037 of file interface_handlers.cc.
References 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, ListBase::first, 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, 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, ARegion::uiblocks, 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 12126 of file interface_handlers.cc.
References 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 12157 of file interface_handlers.cc.
References 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 12166 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 12193 of file interface_handlers.cc.
References ui_popup_handler(), ui_popup_handler_remove(), and WM_event_free_ui_handler_all().
Referenced by ghost_event_proc(), and wm_event_do_notifiers().
Allow setting menu return value from externals. E.g. WM might need to do this for exiting files correctly.
Definition at line 11824 of file interface_handlers.cc.
References uiBlock::handle, and uiPopupBlockHandle::menuretval.
Referenced by dialog_cancel_cb(), dialog_exec_cb(), popup_block_template_close_cb(), and UI_popup_menu_close().
Definition at line 9061 of file interface_handlers.cc.
References ui_context_button_active().
Referenced by ui_but_tooltip_init(), UI_key_event_operator_string(), 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 9076 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 10471 of file interface_handlers.cc.
References LISTBASE_FOREACH.
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 9071 of file interface_handlers.cc.
References ui_block_find_mouse_over_ex(), and xy.
Referenced by wm_handlers_do_gizmo_handler().
Definition at line 9066 of file interface_handlers.cc.
References ui_but_find_rect_over().
Referenced by ED_region_contains_xy().
Definition at line 12268 of file interface_handlers.cc.
References uiBut::active, LISTBASE_FOREACH, and ui_but_active_free().
Referenced by ED_region_visibility_change_update_ex().
Definition at line 11838 of file interface_handlers.cc.
References BLI_listbase_is_empty(), CTX_wm_region(), MOUSEMOVE, wmEvent::prev_xy, 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 11898 of file interface_handlers.cc.
References BLI_findindex(), CTX_wm_region(), CTX_wm_screen(), 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 12145 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 9166 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 6629 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 6641 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 690 of file interface_handlers.cc.
References ELEM, PROP_NO_DEG_UPDATE, ptr, RNA_property_flag(), RNA_struct_base(), and PointerRNA::type.
Referenced by UI_but_is_userdef(), and ui_rna_update_preferences_dirty().
|
static |
Definition at line 718 of file interface_handlers.cc.
References NC_WINDOW, ptr, 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 12280 of file interface_handlers.cc.
References uiBut::active, BUTTON_STATE_HIGHLIGHT, CTX_wm_window(), 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 1955 of file interface_handlers.cc.
References BLI_assert, CLAMP, CTX_wm_window(), ELEM, uiSelectContextStore::elems, uiSelectContextStore::elems_len, wmWindow::eventstate, uiBut::func, int, uiSelectContextStore::is_copy, KM_SHIFT, len, max, MEM_callocN, MEM_freeN(), min, wmEvent::modifier, PROP_BOOLEAN, PROP_ENUM, PROP_FLOAT, PROP_INT, PROP_LAYER, PROP_LAYER_MEMBER, PROP_POINTER, PROP_STRING, 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, and uiBut::rnaprop.
Referenced by ui_apply_but(), and ui_multibut_restore().
|
static |
Definition at line 1843 of file interface_handlers.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::data(), PointerRNA::data, uiSelectContextStore::do_free, uiSelectContextStore::elems, uiSelectContextStore::elems_len, uiBut::flag, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), MEM_mallocN, MEM_SAFE_FREE, PROP_BOOLEAN, PROP_ENUM, PROP_FLOAT, PROP_INT, ptr, uiSelectContextElem::ptr, 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(), and UI_context_copy_to_selected_list().
Referenced by ui_apply_but(), and ui_multibut_states_apply().
|
static |
Definition at line 1944 of file interface_handlers.cc.
References uiSelectContextStore::do_free, uiSelectContextStore::elems, uiBut::flag, and MEM_freeN().
Referenced by button_activate_exit().
Definition at line 2967 of file interface_handlers.cc.
References BLI_str_find_next_char_utf8(), uiBut::drawstr, uiBut::editstr, and pos.
Referenced by ui_but_text_password_hide().
Definition at line 2979 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 12235 of file interface_handlers.cc.
References CTX_wm_region(), LISTBASE_FOREACH, uiBut::type, UI_BTYPE_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 12198 of file interface_handlers.cc.
References CTX_wm_region(), CTX_wm_region_set(), PointerRNA::data, LISTBASE_FOREACH, RNA_property_identifier(), uiBut::rnapoin, uiBut::rnaprop, STREQ, uiBut::type, UI_BTYPE_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 3342 of file interface_handlers.cc.
References uiBut::autocomplete_func, uiBut::autofunc_arg, uiBut::pos, uiBut::selend, uiBut::selsta, str, and ui_searchbox_autocomplete().
Referenced by ui_do_but_textedit().
|
static |
Definition at line 3454 of file interface_handlers.cc.
References BLI_assert, BLI_str_rstrip_float_zero(), BLI_strdupn(), uiBut::block, uiBut::changed, uiTextEdit::edit_string, uiBut::editstr, ELEM, wmWindow::eventstate, uiBlock::flag, uiBut::flag, uiBut::flag2, GHOST_SetAutoFocus(), IS_ALLSELECT_EVENT, uiTextEdit::is_str_dynamic, WorkspaceStatus::item(), len, uiTextEdit::max_string_size, MEM_callocN, MEM_SAFE_FREE, uiTextEdit::original_string, uiButSearch::popup_create_fn, uiBut::pos, uiTextEdit::sel_pos_init, uiBut::selend, uiBut::selsta, uiBut::type, ui_apply_but(), UI_BLOCK_CLIP_EVENTS, UI_block_layout_needs_resolving(), UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER, UI_BTYPE_SEARCH_MENU, 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_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 3367 of file interface_handlers.cc.
References uiTextEdit::edit_string, ELEM, MEM_freeN(), MEM_mallocN, 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 3291 of file interface_handlers.cc.
References BLI_str_cursor_step_utf8(), uiTextEdit::edit_string, jump(), len, pos, uiBut::pos, uiBut::selend, uiBut::selsta, str, STRCUR_JUMP_ALL, and ui_textedit_delete_selection().
Referenced by ui_do_but_textedit().
|
static |
Definition at line 3090 of file interface_handlers.cc.
References uiTextEdit::edit_string, len, 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 3582 of file interface_handlers.cc.
References BLI_assert, BLI_str_utf8_invalid_strip(), CTX_wm_manager(), ED_workspace_status_text(), uiBut::editstr, uiBut::flag, GHOST_SetAutoFocus(), wmWindow::ime_data, uiBut::pos, printf, uiButSearch::results_are_suggestions, RPT_ERROR, uiBut::type, UI_BTYPE_SEARCH_MENU, 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_report_banner_show(), and WM_reportf().
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 3187 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, 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 3724 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 3237 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 3655 of file interface_handlers.cc.
References BUTTON_ACTIVATE_TEXT_EDITING, uiBlock::buttons, ELEM, ListBase::first, uiBut::flag, uiBut::next, uiBut::type, UI_BTYPE_LABEL, UI_BTYPE_LISTBOX, UI_BTYPE_ROUNDBOX, UI_BTYPE_SEPR, UI_BTYPE_SEPR_LINE, UI_BUT_DISABLED, and ui_but_is_editable_as_text().
Referenced by ui_do_but_textedit().
|
static |
Definition at line 3688 of file interface_handlers.cc.
References BUTTON_ACTIVATE_TEXT_EDITING, uiBlock::buttons, ELEM, uiBut::flag, ListBase::last, uiBut::prev, uiBut::type, UI_BTYPE_LABEL, UI_BTYPE_LISTBOX, UI_BTYPE_ROUNDBOX, UI_BTYPE_SEPR, UI_BTYPE_SEPR_LINE, UI_BUT_DISABLED, and ui_but_is_editable_as_text().
Referenced by ui_do_but_textedit().
|
static |
| x | Screen space cursor location - #wmEvent.x |
but->block->aspect is used here, so drawing button style is getting scaled too. Definition at line 3109 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, uiBut::ofs, uiFontStyle::points, uiBut::pos, uiBut::rect, str, uiBut::type, ui_block_to_window_fl(), UI_BTYPE_SEARCH_MENU, UI_BTYPE_TEXT, 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, and rctf::xmin.
Referenced by ui_do_but_textedit(), and ui_textedit_set_cursor_select().
|
static |
Definition at line 3169 of file interface_handlers.cc.
References uiBut::pos, uiBut::selend, uiBut::selsta, ui_but_update(), and ui_textedit_set_cursor_pos().
Referenced by ui_do_but_textedit_select().
|
static |
Definition at line 3062 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 3076 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 9388 of file interface_handlers.cc.
References uiBut::active, BLI_assert, 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 558 of file interface_handlers.cc.
Referenced by ui_but_copy_colorband(), and ui_but_paste_colorband().
|
static |
Definition at line 559 of file interface_handlers.cc.
Referenced by ui_but_clipboard_free(), ui_but_copy_curvemapping(), and ui_but_paste_curvemapping().
|
static |
Definition at line 560 of file interface_handlers.cc.
Referenced by ui_but_copy_curvemapping(), and ui_but_paste_curvemapping().
|
static |
Definition at line 561 of file interface_handlers.cc.
Referenced by ui_but_clipboard_free(), ui_but_copy_CurveProfile(), and ui_but_paste_CurveProfile().
|
static |
Definition at line 562 of file interface_handlers.cc.
Referenced by ui_but_copy_CurveProfile(), and ui_but_paste_CurveProfile().
|
static |
Definition at line 773 of file interface_handlers.cc.
Referenced by ui_afterfunc_new(), and ui_apply_but_funcs_after().