OpenTTD Source
1.11.0-beta2
|
Go to the documentation of this file.
10 #ifndef TILEHIGHLIGHT_TYPE_H
11 #define TILEHIGHLIGHT_TYPE_H
79 bool IsDraggingDiagonal();
@ HT_DIR_HL
horizontal lower
byte sizelimit
Whether the selection is limited in length, and what the maximum length is.
uint32 TileIndex
The index/ID of a Tile.
Point size
Size, in tile "units", of the white/red selection area.
Point outersize
Size, in tile "units", of the blue coverage area excluding the side of the selected area.
@ HT_DIR_VR
vertical right
Point offs
Offset, in tile "units", for the blue coverage area from the selected area's northern tile.
ViewportDragDropSelectionProcess
Drag and drop selection process, or, what to do with an area of land when you've selected it.
ViewportPlaceMethod select_method
The method which governs how tiles are selected.
Point new_size
New value for size; used to determine whether to redraw the selection.
int32 WindowNumber
Number to differentiate different windows of the same class.
ViewportPlaceMethod
Viewport place method (type of highlighted area and placed objects)
Metadata about the current highlighting.
WindowNumber window_number
The WindowNumber of the window that is responsible for the selection mode.
@ HT_DIAGONAL
Also allow 'diagonal rectangles'. Only usable in combination with HT_RECT or HT_POINT.
@ HT_RAIL
autorail (one piece), lower bits: direction
bool make_square_red
Whether to give a tile a red selection.
WindowClass
Window classes.
Point pos
Location, in tile "units", of the northern tile of the selected area.
Point new_outersize
New value for outersize; used to determine whether to redraw the selection.
Coordinates of a point in 2D.
@ HT_DIR_MASK
masks the drag-direction
@ HT_VEHICLE
vehicle is accepted as target as well (bitmask)
@ HT_DRAG
dragging items in the depot windows
byte dirty
Whether the build station window needs to redraw due to the changed selection.
HighLightStyle drawstyle
Lower bits 0-3 are reserved for detailed highlight information.
HighLightStyle place_mode
Method which is used to place the selection.
Point selstart
The location where the dragging started.
bool diagonal
Whether the dragged area is a 45 degrees rotated rectangle.
@ HT_LINE
used for autorail highlighting (longer stretches), lower bits: direction
@ HT_RECT
rectangle (stations, depots, ...)
@ HT_DRAG_MASK
Mask for the tile drag-type modes.
ViewportDragDropSelectionProcess select_proc
The procedure that has to be called when the selection is done.
DECLARE_ENUM_AS_BIT_SET(GenderEthnicity) enum CompanyManagerFaceVariable
Bitgroups of the CompanyManagerFace variable.
HighLightStyle
Highlighting draw styles.
WindowClass window_class
The WindowClass of the window that is responsible for the selection mode.
Data structure for an opened window.
HighLightStyle next_drawstyle
Queued, but not yet drawn style.
@ HT_POINT
point (lower land, raise land, level land, ...)
@ HT_DIR_HU
horizontal upper
Point new_pos
New value for pos; used to determine whether to redraw the selection.
@ HT_SPECIAL
special mode used for highlighting while dragging (and for tunnels/docks)
TileIndex redsq
The tile that has to get a red selection.
bool freeze
Freeze highlight in place.
Point selend
The location where the drag currently ends.