Skip to main content

Module resizable

Module resizable 

Source
Expand description

What this design system paints inside a resize handle.

Base owns the band, the cursor and the drag; everything here is appearance. A divider rests as the same hairline it has always been, and answers the pointer with a pill that grows and solidifies as the pointer engages it: available, held, being dragged.

Structs§

ResizablePanel
A resizable panel inside a ResizablePanelGroup.
ResizablePanelGroup
A group of resizable panels.
ResizableState
State for a ResizablePanel
ResizeHandle
A band that resizes along one axis when it is dragged, carrying a T that the drag renders as an E. See resize_handle.

Enums§

HandleEdge
Which edge of its own container a handle hugs.
ResizablePanelEvent

Functions§

h_resizable
Create a ResizablePanelGroup with horizontal resizing.
resizable_panel
Create a ResizablePanel.
resize_handle
Create a standalone ResizeHandle wearing this design system’s divider, for an edge no ResizablePanelGroup owns – an application’s sidebar, say. What the drag resizes is the caller’s; see gpui_base::resize_handle.
resize_handle_appearance
This design system’s divider appearance, for a handle that base does not already hand it — a dock edge, or a hand-rolled handle in an application.
v_resizable
Create a ResizablePanelGroup with vertical resizing.