Horizontal container that doesn't change the direction of the widgets for RTL languages. More...
#include <widget_type.h>
Public Member Functions | |
NWidgetHorizontalLTR (NWidContainerFlags flags=NC_NONE) | |
Horizontal left-to-right container widget. | |
void | AssignSizePosition (SizingType sizing, uint x, uint y, uint given_width, uint given_height, bool rtl) |
Assign size and position to the widget. |
Horizontal container that doesn't change the direction of the widgets for RTL languages.
Definition at line 466 of file widget_type.h.
NWidgetHorizontalLTR::NWidgetHorizontalLTR | ( | NWidContainerFlags | flags = NC_NONE |
) |
Horizontal left-to-right container widget.
Definition at line 1251 of file widget.cpp.
References NWidgetBase::type.
void NWidgetHorizontalLTR::AssignSizePosition | ( | SizingType | sizing, | |
uint | x, | |||
uint | y, | |||
uint | given_width, | |||
uint | given_height, | |||
bool | rtl | |||
) | [virtual] |
Assign size and position to the widget.
sizing | Type of resizing to perform. | |
x | Horizontal offset of the widget relative to the left edge of the window. | |
y | Vertical offset of the widget relative to the top edge of the window. | |
given_width | Width allocated to the widget. | |
given_height | Height allocated to the widget. | |
rtl | Adapt for right-to-left languages (position contents of horizontal containers backwards). |
Afterwards, pos_x and pos_y contain the top-left position of the widget, smallest_x and smallest_y contain the smallest size such that all widgets of the window are consistent, and current_x and current_y contain the current size.
Reimplemented from NWidgetHorizontal.
Definition at line 1256 of file widget.cpp.