Re-exports§
pub use crate::Disableable;pub use global_state::GlobalState;pub use input::RopeExt;pub use input::RopeLines;pub use theme::*;
Modules§
- accordion
- actions
- alert
- animation
- avatar
- badge
- breadcrumb
- button
- calendar
- chart
- checkbox
- clipboard
- collapsible
- color_
picker - combobox
- date_
picker - description_
list - dialog
- 对话框模块
- dock
- form
- global_
state - group_
box - highlighter
- history
- hover_
card - input
- kbd
- label
- link
- list
- menu
- native_
menu - A menu rendered natively by the operating system.
- notification
- pagination
- plot
- popover
- progress
- radio
- rating
- resizable
- scroll
- searchable_
list - select
- separator
- setting
- sheet
- sidebar
- skeleton
- slider
- spinner
- status_
bar - stepper
- styled_
ext_ reflection - 实现函数反射
- switch
- tab
- table
- tag
- text
- theme
- tooltip
- tree
Macros§
- icon_
named - 通过扫描 SVG 文件目录生成自定义图标枚举及其
IconNamed实现。
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.
- Icon
- Index
Path - 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.
- Title
Bar - TitleBar used to customize the appearance of the title bar.
- Toggle
Inspector - Virtual
List - 虚拟列表组件,用于渲染大量不同尺寸的项
- Virtual
List Scroll Handle VirtualList的滚动句柄- Window
Border - Window border use to render a custom window border and shadow for Linux.
Enums§
- Icon
Name - Placement
- A enum for defining the placement of the element.
- 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
- A trait for defining element that can be collapsed.
- Disableable
- A trait for defining element that can be disabled.
- Element
Ext - A trait to extend [
gpui::Element] with additional functionality. - Focus
Trap Element - An extension trait to add
focus_trapfunctionality to interactive elements. - 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. - 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
rgpui::Styledwith specific styling methods. - Window
Ext - Extension trait for
Windowto add dialog, sheet .. functionality.
Functions§
- box_
shadow - Create a
BoxShadowlike CSS. - h_flex
- Returns a
Divas horizontal flex layout. - h_
virtual_ list - 创建水平方向的
VirtualList - 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
Divas vertical flex layout. - v_
virtual_ list - 创建垂直方向的
VirtualList - window_
border - Create a new window border.
- window_
paddings - Get the window paddings.