|
TachyonUI 0.1.0
High-performance UI for building tools.
|
#include <gui_core/gui_base_types.h>#include <gui_core/style/gui_style.h>#include <gui_core/style/gui_style_text.h>#include <gui_core/text/gui_text_system.h>#include <algorithm>Go to the source code of this file.
Classes | |
| struct | tachyon::IconTextPlacement |
| Placement of a text + icon pair inside rect: More... | |
Namespaces | |
| namespace | tachyon |
Functions | |
| int32_t | tachyon::HorizontalAlignOffset (TextAlign horizontalAlignment, int32_t boxWidth, int32_t contentWidth) |
| X offset, in pixels, of contentWidth content aligned inside a boxWidth box. | |
| int32_t | tachyon::VerticalAlignOffset (TextAlign verticalAlignment, int32_t boxHeight, int32_t contentHeight) |
| IconTextPlacement | tachyon::ComputeIconTextPlacement (const IntRect &rect, int32_t textWidth, int32_t textHeight, const IconMeasurement &iconMeasurement, IconSide iconSide, int32_t iconTextGap, TextAlign horizontalAlignment, TextAlign verticalAlignment=TextAlign::Start) |
| int32_t | tachyon::IconAwareLayoutMaxWidth (int32_t rectWidth, const IconMeasurement &iconMeasurement, IconSide iconSide, int32_t iconTextGap, bool hasIcon) |
| The max width to lay text out in: rectWidth minus the icon and gap for a Left / Right icon, so text-align can't reach into the icon area; rectWidth otherwise. | |