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. The following flags determine the anchor point:
- DI_ITEM_TOP - top center
- DI_ITEM_BOTTOM - bottom cemter
- DI_ITEM_LEFT - center of left side
- DI_ITEM_RIGHT - center of 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_CENTER - center point
- DI_ITEM_OFFSETS - The element's built-in offsets (as set in SLADE) are taken into account.
- Note, 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.
- More flags are defined in the StatusBarCore class), but they're mostly aliases of the above ones.