Crate gpui_component

Crate gpui_component 

Source

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
IndexPath
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).
TitleBar
TitleBar used to customize the appearance of the title bar.
TitleBarElement
A TitleBar Element that can be move the window.
ToggleInspector
VirtualList
VirtualList component for rendering a large number of differently sized items.
VirtualListScrollHandle
WindowBorder
Window border use to render a custom window border and shadow for Linux.

Enums§

IconName
Placement
Side
A enum for defining the side of the element.
Size
A size for elements.

Constants§

TITLE_BAR_HEIGHT

Traits§

AxisExt
Collapsible
A trait for defining element that can be collapsed.
ContextModal
Extension trait for [WindowContext] and [ViewContext] to add drawer functionality.
Disableable
A trait for defining element that can be disabled.
IconNamed
InteractiveElementExt
PixelsExt
A trait for converting Pixels to f32 and f64.
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.
StyleSized
StyledExt
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.