BaseStatusBar ITEM flags
Jump to navigation
Jump to search
| Note: This page is meant to be included into other pages that describe BaseStatusBar functions, such as DrawImage() using the {{: BaseStatusBar ITEM flags}} syntax. (This note will not be included.) |
- The DI_ITEM* flags determine the anchor point of the HUD element, i.e. how it is placed relative to the specified position. By default elements are drawn from their top left corner, with the anchor is center bottom. The following flags determine the anchor point:
- DI_ITEM_TOP - top side
- DI_ITEM_BOTTOM - bottom side (default for 'vertical' positioning)
- DI_ITEM_LEFT - left side
- DI_ITEM_RIGHT - right side
- DI_ITEM_LEFT_TOP - top left corner
- DI_ITEM_RIGHT_TOP - top right corner
- DI_ITEM_LEFT_BOTTOM - bottom left corner
- DI_ITEM_RIGHT_BOTTOM - bottom right corner
- DI_ITEM_HCENTER - center horizontal (default for 'horizontal' positioning)
- DI_ITEM_VCENTER - center vertical
- DI_ITEM_CENTER - Implies HCENTER and VCENTER.
- DI_ITEM_OFFSETS - The element's built-in offsets (as set in SLADE) are taken into account.
Some notes:
- These flags do not change the orientation of coordinates. Regardless of the element's anchor point, positive X moves it to the right, positive Y moves it down.
- LEFT and RIGHT flags do not imply VCENTER. If it's desired, VCENTER must be specified.
- More flags are defined in the StatusBarCore class), but they're mostly aliases of the above ones.