Module ui_solver

Source
Expand description

Handles the UI layout and UI layout solver

Structs§

ComputedTransform3D
Computed transform of pixels in pixel space
ExternalScrollId
GpuEventChanges
GpuValueCache
HeightCalculatedRect
HeightSolvedResult
HitTest
HorizontalSolvedPosition
InlineTextLayout
InlineTextLayoutVec
InlineTextLine
NOTE: The bounds of the text line is the TOP left corner (relative to the text origin), but the word_position is the BOTTOM left corner (relative to the text line)
InlineTextLineVec
LayoutResult
OverflowInfo
OverflowingScrollNode
PositionInfoInner
PositionedRectangle
QuickResizeResult
RelayoutChanges
ResolvedOffsets
ResolvedTextLayoutOptions
Same as TextLayoutOptions, but with the widths / heights of the PixelValues resolved to regular f32s (because letter_spacing, word_spacing, etc. may be %-based value)
ScrolledNodes
StyleBoxShadowOffsets
TextLayoutOptions
Layout options that can impact the flow of word positions
VerticalSolvedPosition
WidthCalculatedRect
WidthSolvedResult

Enums§

DirectionalOverflowInfo
GpuOpacityKeyEvent
GpuTransformKeyEvent
InlineTextLayoutVecDestructor
InlineTextLineVecDestructor
OptionPositionInfo
OptionResolvedTextLayoutOptions
PositionInfo
RotationMode
For some reason the rotation matrix for webrender is inverted: When rendering, the matrix turns the rectangle counter-clockwise direction instead of clockwise.
WhConstraint

Constants§

DEFAULT_FONT_ID
DEFAULT_FONT_SIZE
DEFAULT_FONT_SIZE_PX
DEFAULT_LETTER_SPACING
DEFAULT_LINE_HEIGHT
DEFAULT_TAB_WIDTH
DEFAULT_TEXT_COLOR
DEFAULT_WORD_SPACING

Functions§

calculate_horizontal_shift_multiplier
calculate_vertical_shift_multiplier