Crate gpui_component

Crate gpui_component 

Source

Re-exports§

pub use crate::Disableable;
pub use input::RopeExt;
pub use input::RopeLines;
pub use theme::*;

Modules§

accordion
alert
animation
avatar
badge
breadcrumb
button
calendar
chart
checkbox
clipboard
collapsible
color_picker
date_picker
description_list
dialog
divider
dock
form
group_box
highlighter
history
input
kbd
label
link
list
menu
notification
plot
popover
progress
radio
resizable
scroll
select
sheet
sidebar
skeleton
slider
spinner
styled_ext_reflection
Implements function reflection
switch
tab
table
tag
text
theme
tooltip
tree

Structs§

DivInspector
Icon
IndexPath
Represents an index path in a list, which consists of a section index,
Measure
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.
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
A scroll handle for VirtualList.
WindowBorder
Window border use to render a custom window border and shadow for Linux.

Enums§

IconName
The name of an icon in the asset bundle.
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.
Disableable
A trait for defining element that can be disabled.
IconNamed
InteractiveElementExt
LengthExt
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.
WindowExt
Extension trait for Window to add dialog, sheet .. functionality.

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.