Skip to main content

Crate xrack_layout

Crate xrack_layout 

Source
Expand description

Logical-pixel layout shared by software rendering and input hit testing.

Re-exports§

pub use file_drop::FileDragInput;
pub use file_drop::FileDropScope;
pub use label::LabelLayout;
pub use label::LabelLine;
pub use label::LabelPlan;
pub use label::PlannedLabelLine;
pub use label::uses_label_layout;
pub use menu::MenuEntry;
pub use menu::MenuKey;
pub use menu::MenuPanel;
pub use menu::MenuRow;
pub use pointer_events::PointerDelivery;
pub use pointer_events::PointerSequence;
pub use pointer_events::pointer_click_follows;
pub use range::ColorPlaneGeometry;
pub use range::DialGeometry;
pub use range::SliderGeometry;
pub use selection::TAB_LABEL_SIZE;
pub use selection::tab_content_rect;
pub use table::TableGeometry;
pub use text_area::TextAreaLayout;
pub use text_area::TextAreaMotion;
pub use tooltip::TooltipPopup;
pub use tooltip::layout_tooltip;

Structs§

Affine
Maps pre-transform layout coordinates to another coordinate space.
ButtonContent
Shared intrinsic content for button measurement and painting.
ButtonPlacement
Areas used by the built-in button icon and label.
CalendarDay
CalendarGeometry
CalendarWeek
ChoiceMenu
ColorPlaneGeometry
Shared geometry for the saturation and brightness color field.
ComboCompletion
The exact candidate and draft boundary displayed for one focused control.
ComboGeometry
ControlInput
DialGeometry
The dial arc shared by hit testing, dragging and painting.
DragDispatch
DragUpdate
FileDropScope
The interaction gates needed for a synchronous native drag acceptance query.
FocusDelivery
FocusObservers
Publish focus to reactive handles before delivering the corresponding events.
HoverDelivery
HoverObservers
Resolve hover in a prepared frame and publish all state before delivering events.
ImagePlacement
ImagePresentation
Presentation options shared by atlas regions, animations and full images.
ImageRegion
The visible part of an image in integer source pixels.
Interaction
KeyRoute
The focus path for a single keyboard event.
LabelLayout
The same line plan is used for intrinsic measurement and GPU painting.
LabelLine
LabelPlan
Text ranges shared by plain and styled labels, independent of the shaping backend.
LayoutNode
LayoutObservers
ListSectionHeader
Visible inline or pinned section heading in a prepared list viewport.
MenuEntry
Identity of a displayed menu row, including the label used to guard late actions.
MenuPanel
MenuRow
MenuShortcut
PageIndicatorGeometry
A bounded window of markers. Painting and pointer selection use the same slots.
PageMarker
A logical page index and its marker in the current viewport.
PasswordMask
Display coordinates and committed UTF-8 offsets for one marker per grapheme.
PlannedLabelLine
Point
PointerDelivery
PointerSequence
One physical contact, tied to the handler and model row that received Down.
RangeInput
Rect
RoundedClip
A child clip in window coordinates, with corners clockwise from the top left.
ScaleRotateTarget
ScrollBarGeometry
An overlay scroll bar whose track and thumb use the viewport’s logical pixels.
ScrollDelivery
Delivery is tied to the component instance that consumed the input.
ScrollGestureEnd
ScrollLayout
SearchGeometry
ShortcutModifiers
Size
SliderGeometry
Shared thumb travel for hit mapping and painting.
SpinGeometry
SplitGeometry
SplitHandle
SplitHandleRange
The leading pane’s size and reachable range in logical pixels.
SplitResize
StackSlide
A stack’s paint-only motion. Offsets and clip ranges are fractions of the moving axis.
StackTransitions
Keeps outgoing pages separate from the active scene, focus order, and modal stack.
StyledFragment
One shaped span in visual order. Bounds are local to the label.
StyledTextLayout
Final text geometry consumed by painting, hit testing and accessibility.
SwipeDelegateGeometry
SwipeDelivery
TableEditTarget
TableGeometry
Shared by the row layout, header painting, and header hit testing.
TablePasteDestination
The focused table and the start of a paste in visual column order.
Target
TextAreaLayout
The same visual lines drive hit testing, selection, and drawing.
TextEdit
TextEditContext
The focused editor and selection at the start of an asynchronous edit.
TextLinkTarget
Retains the document seen when the target was resolved. A replacement document must never turn an in-flight action into activation of a new link.
TextPosition
A logical offset with affinity to the preceding grapheme at a bidi or wrap boundary.
TooltipPopup
TouchTransform
Track angle deltas across the ±180° boundary while measuring scale from the start.
TreeRowGeometry
TumblerGeometry
TumblerRow
VisualGrapheme
One grapheme’s logical byte range and its two visual edges.
VisualTextLine
Maps logical grapheme boundaries to the advances of a shaped visual line.
WheelRoute
The inner-to-outer delivery path of one wheel event.

Enums§

ActivationKey
ButtonHoldEvent
ChoiceKey
EditAction
EditSource
The source of an edit determines whether it can merge with preceding typing.
FileDragInput
Native file drags carry a batch and a window-local position.
MenuKey
NavigationKey
ScrollBarUpdate
ScrollGestureKind
ShortcutKey
ShortcutOutcome
Routing result for one chord in the active window scope.
TableEditCommit
TableSelectionKey
TextAreaMotion
TumblerScroll
WheelAdjustment
WindowResizeEdge

Constants§

DEFAULT_FONT_SIZE
TAB_LABEL_SIZE

Traits§

TextMeasurer

Functions§

child_reading_order
Child indices in visual reading order. Paths keep their original scene indices.
corner_radii
dialog_title_height
drawer_grip
Visual handle within the swipe-sensitive inner edge of an open drawer.
fitted_rect
font_size
group_header
The header remains enabled when the content is disabled.
is_layout
layout
Root dimensions come from the actual viewport; DSL dimensions size the initial window.
layout_tooltip
Place a tooltip surface in window coordinates, using the normal text and layout engine.
layout_with_input
layout_with_scroll
normalize_radii
pointer_click_follows
prepare_scene
Resolve virtual rows after laying out the viewport containers. Row contents have no effect on the indexed row heights or scroll extent.
prepare_scene_with_input
swipe_view_selection
Resolve a physical navigation direction against the currently available pages.
tab_content_rect
Reserve the logical trailing strip for a close button.
tile_extent
touch_centroid
uses_label_layout

Type Aliases§

OverscrollFrame
Visual displacement only. Logical scroll ranges stay in ScrollLayout.
SliderKey
ViewportObservers