Re-exports§
pub use theme::*;
Modules§
- accordion
- alert
- animation
- attachment
- avatar
- badge
- breadcrumb
- bubble
- button
- calendar
- chart
- checkbox
- clipboard
- collapsible
- color_
picker - combobox
- command
- A command palette: a search field over a filtered list of commands, with groups, Action keybinding hints and keyboard navigation.
- date_
picker - description_
list - dialog
- dock
- The gpui-component appearance for the dock.
- form
- global_
state - group_
box - highlighter
- history
- hover_
card - input
- kbd
- label
- link
- list
- marker
- menu
- message
- message_
scroller - native_
menu - A menu rendered natively by the operating system.
- notification
- pagination
- plot
- popover
- progress
- radio
- rating
- resizable
- Backwards-compatible resizable component paths.
- scroll
- searchable_
list - select
- separator
- setting
- sheet
- shimmer
- sidebar
- skeleton
- slider
- spinner
- status_
bar - stepper
- switch
- tab
- table
- tag
- text
- Compatibility facade for rich text now owned by
gpui-base. - theme
- tooltip
- tree
Macros§
- icon_
named - Generate a custom icon enum and its
IconNamedimpl by scanning a directory of SVG files.
Structs§
- AnyChild
Element - A type-erased element that can accept a [
AnyChildElementOptions] before being rendered. - DivInspector
- Edges
- A struct for defining the edges of an element.
- Global
State - Application-wide state shared by Base behaviors.
- Icon
- Index
Path - Represents an index path in a list, which consists of a section index,
- Measure
- An elapsed-time measurement emitted through
tracingwhen ended. - Resizable
Panel - A resizable panel inside a
ResizablePanelGroup. - Resizable
Panel Group - A group of resizable panels.
- Resizable
State - State for a
ResizablePanel - Root
- Root is a view for the App window for as the top level view (Must be the first view in the window).
- Rope
- A utf8 text rope.
- Rope
Lines - An iterator over the lines of a
Rope. - Title
Bar - TitleBar used to customize the appearance of the title bar.
- Toggle
Inspector - Virtual
List - VirtualList component for rendering a large number of differently sized items.
- Virtual
List Scroll Handle - A scroll handle for
VirtualList. - Window
Border - Renders a custom window border and shadow on Linux.
Enums§
- Icon
Name - Placement
- A enum for defining the placement of the element.
- Resizable
Panel Event - Role
Override - Side
- A enum for defining the side of the element.
- Size
- A size for elements.
Constants§
Traits§
- AxisExt
- A trait to extend the
Axisenum with utility methods. - Child
Element - Collapsible
- An element or component that exposes collapsed state.
- Disableable
- An element or component that can be disabled.
- Element
Ext - Extends a GPUI parent element with post-layout prepaint observation.
- Focus
Trap Element - An extension trait to add
focus_trapfunctionality to interactive elements. - Focusable
Ext - A component that exposes whether its UI layer should draw a focus ring.
- Icon
Named - Types implementing this trait can automatically be converted to
Icon. - Interactive
Element Ext - Length
Ext - A trait to extend the
Lengthenum with utility methods. - Ongoing
Scroll Ext - gpui delimits scroll gestures with
std::time::Instant, which is unimplemented on wasm32: the first wheel event over an axis-locked scroll area panics with “time not implemented on this platform” and takes the whole application down, leaving the canvas unresponsive. Losing the axis lock in the browser is by far the lesser cost, so the locks below are no-ops there. - RopeExt
- An extension trait for
Ropeto provide additional utility methods. - Selectable
- An element or component that exposes controlled selected state.
- Sizable
- A trait for setting the size of an element. Size::Medium is use by default.
- Style
Sized - Styled
Ext - Theme
Styled - Finished styles that read the theme.
- Window
Ext - Extension trait for
Windowto add dialog, sheet .. functionality.
Functions§
- box_
shadow - h_flex
- A row that centers its children on the cross axis.
- h_
resizable - Create a
ResizablePanelGroupwith horizontal resizing - h_
virtual_ list - Create a
VirtualListin horizontal direction. - init
- Initialize the components.
- locale
- measure
- Measures
fwhen measurement logging is enabled. - measure_
if - Measures
fwhenif_is true and measurement logging is enabled. - resizable_
panel - Create a
ResizablePanel. - set_
locale - v_flex
- A column whose children stretch across the cross axis.
- v_
resizable - Create a
ResizablePanelGroupwith vertical resizing - v_
virtual_ list - Create a
VirtualListin vertical direction. - window_
border - Create a new window border.
- window_
paddings - Get the window paddings.