Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/UI_interface.h
| Show First 20 Lines • Show All 197 Lines • ▼ Show 20 Lines | enum { | ||||
| /* Prevent the button to show any tooltip. */ | /* Prevent the button to show any tooltip. */ | ||||
| UI_BUT_NO_TOOLTIP = (1 << 4), | UI_BUT_NO_TOOLTIP = (1 << 4), | ||||
| /* button align flag, for drawing groups together (also used in uiBlock->flag!) */ | /* button align flag, for drawing groups together (also used in uiBlock->flag!) */ | ||||
| UI_BUT_ALIGN_TOP = (1 << 14), | UI_BUT_ALIGN_TOP = (1 << 14), | ||||
| UI_BUT_ALIGN_LEFT = (1 << 15), | UI_BUT_ALIGN_LEFT = (1 << 15), | ||||
| UI_BUT_ALIGN_RIGHT = (1 << 16), | UI_BUT_ALIGN_RIGHT = (1 << 16), | ||||
| UI_BUT_ALIGN_DOWN = (1 << 17), | UI_BUT_ALIGN_DOWN = (1 << 17), | ||||
| UI_BUT_ALIGN = (UI_BUT_ALIGN_TOP | UI_BUT_ALIGN_LEFT | UI_BUT_ALIGN_RIGHT | UI_BUT_ALIGN_DOWN), | UI_BUT_ALIGN = (UI_BUT_ALIGN_TOP | UI_BUT_ALIGN_LEFT | UI_BUT_ALIGN_RIGHT | UI_BUT_ALIGN_DOWN), | ||||
| /* Warning - HACK! Needed for buttons which are not TOP/LEFT aligned, but have some top/left corner stiched to some | |||||
Severin: Typo: stiched->stitched | |||||
| * other TOP/LEFT-aligned button, because of 'corrective' hack in widget_roundbox_set()... */ | |||||
| UI_BUT_ALIGN_STITCH_TOP = (1 << 18), | |||||
| UI_BUT_ALIGN_STITCH_LEFT = (1 << 19), | |||||
| UI_BUT_ALIGN_ALL = (UI_BUT_ALIGN | UI_BUT_ALIGN_STITCH_TOP | UI_BUT_ALIGN_STITCH_LEFT), | |||||
| }; | }; | ||||
| /* scale fixed button widths by this to account for DPI */ | /* scale fixed button widths by this to account for DPI */ | ||||
| #define UI_DPI_FAC ((U.pixelsize * (float)U.dpi) / 72.0f) | #define UI_DPI_FAC ((U.pixelsize * (float)U.dpi) / 72.0f) | ||||
| #define UI_DPI_WINDOW_FAC (((float)U.dpi) / 72.0f) | #define UI_DPI_WINDOW_FAC (((float)U.dpi) / 72.0f) | ||||
| /* 16 to copy ICON_DEFAULT_HEIGHT */ | /* 16 to copy ICON_DEFAULT_HEIGHT */ | ||||
| #define UI_DPI_ICON_SIZE ((float)16 * UI_DPI_FAC) | #define UI_DPI_ICON_SIZE ((float)16 * UI_DPI_FAC) | ||||
| ▲ Show 20 Lines • Show All 838 Lines • Show Last 20 Lines | |||||
Typo: stiched->stitched