Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_panel.c
| Context not available. | |||||
| } | } | ||||
| } | } | ||||
| /* this doesnt draw */ | /* this doesn't draw */ | ||||
| /* returns 1 when it did something */ | /* returns 1 when it did something */ | ||||
| static bool uiAlignPanelStep(ScrArea *sa, ARegion *ar, const float fac, const bool drag) | static bool uiAlignPanelStep(ScrArea *sa, ARegion *ar, const float fac, const bool drag) | ||||
| { | { | ||||
| Context not available. | |||||
| /** | /** | ||||
| * Panel drag-collapse (modal handler) | * Panel drag-collapse (modal handler) | ||||
| * Clicking and dragging over panels toggles their collapse state based on the panel that was first | * Clicking and dragging over panels toggles their collapse state based on the panel that was first | ||||
| * dragged over. If it was open all affected panels incl the initial one are closed and vise versa. | * dragged over. If it was open all affected panels incl the initial one are closed and vice versa. | ||||
| */ | */ | ||||
| static int ui_panel_drag_collapse_handler(bContext *C, const wmEvent *event, void *userdata) | static int ui_panel_drag_collapse_handler(bContext *C, const wmEvent *event, void *userdata) | ||||
| { | { | ||||
| Context not available. | |||||
| const int px = max_ii(1, round_fl_to_int(U.pixelsize)); | const int px = max_ii(1, round_fl_to_int(U.pixelsize)); | ||||
| const int category_tabs_width = round_fl_to_int(UI_PANEL_CATEGORY_MARGIN_WIDTH * zoom); | const int category_tabs_width = round_fl_to_int(UI_PANEL_CATEGORY_MARGIN_WIDTH * zoom); | ||||
| const float dpi_fac = UI_DPI_FAC; | const float dpi_fac = UI_DPI_FAC; | ||||
| const int tab_v_pad_text = round_fl_to_int((2 + ((px * 3) * dpi_fac)) * zoom); /* pading of tabs around text */ | const int tab_v_pad_text = round_fl_to_int((2 + ((px * 3) * dpi_fac)) * zoom); /* padding of tabs around text */ | ||||
| const int tab_v_pad = round_fl_to_int((4 + (2 * px * dpi_fac)) * zoom); /* padding between tabs */ | const int tab_v_pad = round_fl_to_int((4 + (2 * px * dpi_fac)) * zoom); /* padding between tabs */ | ||||
| const float tab_curve_radius = ((px * 3) * dpi_fac) * zoom; | const float tab_curve_radius = ((px * 3) * dpi_fac) * zoom; | ||||
| const int roundboxtype = UI_CNR_TOP_LEFT | UI_CNR_BOTTOM_LEFT; | const int roundboxtype = UI_CNR_TOP_LEFT | UI_CNR_BOTTOM_LEFT; | ||||
| Context not available. | |||||