Re-exports§
pub use crate::Disableable;
pub use theme::*;
Modules§
- accordion
- alert
- animation
- avatar
- badge
- breadcrumb
- button
- calendar
- chart
- checkbox
- clipboard
- color_
picker - context_
menu - date_
picker - description_
list - divider
- dock
- drawer
- dropdown
- form
- group_
box - highlighter
- history
- indicator
- input
- label
- link
- list
- modal
- notification
- plot
- popover
- popup_
menu - progress
- radio
- resizable
- scroll
- sidebar
- skeleton
- slider
- styled_
ext_ reflection - Implements function reflection
- switch
- tab
- table
- tag
- text
- theme
- tooltip
Structs§
- DivInspector
- Icon
- Index
Path - Represents an index path in a list, which consists of a section index,
- Kbd
- A key binding tag
- Measure
- Root
- Root is a view for the App window for as the top level view (Must be the first view in the window).
- Title
Bar - TitleBar used to customize the appearance of the title bar.
- Title
BarElement - A TitleBar Element that can be move the window.
- Toggle
Inspector - Virtual
List - VirtualList component for rendering a large number of differently sized items.
- Virtual
List Scroll Handle - Window
Border - Window border use to render a custom window border and shadow for Linux.
Enums§
Constants§
Traits§
- AxisExt
- Collapsible
- A trait for defining element that can be collapsed.
- Context
Modal - Extension trait for [
WindowContext
] and [ViewContext
] to add drawer functionality. - Disableable
- A trait for defining element that can be disabled.
- Icon
Named - Interactive
Element Ext - Pixels
Ext - A trait for converting
Pixels
tof32
andf64
. - Selectable
- A trait for defining element that can be selected.
- Sizable
- A trait for setting the size of an element. Size::Medium is use by default.
- Style
Sized - Styled
Ext - Extends
gpui::Styled
with specific styling methods.
Functions§
- box_
shadow - Create a
BoxShadow
like CSS. - h_flex
- Returns a
Div
as horizontal flex layout. - h_
virtual_ list - Create a
VirtualList
in horizontal direction. - init
- Initialize the components.
- locale
- measure
- Measures the execution time.
- measure_
if - Measures the execution time of a function and logs it if
if_
is true. - set_
locale - v_flex
- Returns a
Div
as vertical flex layout. - v_
virtual_ list - Create a
VirtualList
in vertical direction. - window_
border - Create a new window border.
- window_
paddings - Get the window paddings.