Module display_list

Source
Expand description

Layout and display list creation algorithm, z-index reordering of a CachedDisplayList

Structs§

CachedDisplayList
ContentGroup
DisplayList
DisplayListFrame
DisplayListParametersRef
Since the display list can take a lot of parameters, we don’t want to continually pass them as parameters of the function and rather use a struct to pass them around. This is purely for ergonomic reasons.
DisplayListScrollFrame
DisplayRectangle
DisplayRectangle is the main type which the layout parsing step gets operated on.
GlTextureCache
GlyphInstance
OverrideWarning
SolvedLayout
SolvedLayoutCache
StyleBorderColors
StyleBorderRadius
StyleBorderStyles
StyleBorderWidths
StyleBoxShadow

Enums§

AlphaType
DisplayListMsg
ImageRendering
LayoutRectContent
RectBackground

Functions§

apply_style_property
contains_rect_rounded
determine_rendering_order
displaylist_handle_rect
Push a single rectangle into the display list builder
fill_content_group_children
get_nodes_that_need_scroll_clip
Returns all node IDs where the children overflow the parent, together with the (parent_rect, child_rect) - the child rect is the sum of the children.
get_text
node_needs_to_clip_children
parse_display_list_size
Parse a string in the format of “600x100” -> (600, 100)
populate_css_properties
Populate the style properties of the DisplayRectangle, apply static / dynamic properties
push_rectangles_into_displaylist
sort_children_by_position
subtract_padding
Subtracts the padding from the size, returning the new size

Type Aliases§

GlStoreImageFn
GlyphIndex
LayoutFn