Expand description
Re-exports§
pub use crate::color::Color;pub use crate::color::Colorable;pub use crate::position::Point;pub use crate::position::Range;pub use crate::position::Rect;pub use crate::position::Scalar;
Modules§
- color
- A library providing simple
ColorandGradientrender along with useful transformations and presets. - cursor
- Contains an extendable enum of supported mouse cursor render.
- draw
- event
- Contains all render used to describe the input events that
Widgets may handle. - event_
handler - flags
- guide
- The carbide Guide
- image_
map - A type used to manage a user’s image data and map them to
Imagewidgets: - input
- This module contains all the logic for handling input events and providing them to widgets.
- layout
- mesh
- position
- Items related to 2D positioning, used throughout carbide.
- prelude
- render
- state
- text
- Text layout logic.
- utils
- Various utility functions used throughout carbide.
- widget
- Widgets are the core building blocks for every carbide user interface.
- window
Structs§
- Ui
Uiis the most important type within carbide and is necessary for rendering and maintaining widget state.- UiBuilder
- A constructor type for building a
Uiinstance with a set of optional parameters. - UiCell
- A wrapper around the
Uithat restricts the user from mutating theUiin certain ways while in the scope of theUi::set_widgetsfunction and withinWidgets’updatemethods. Using theUiCell, users may access theUiimmutably (viaDeref) however they wish, however they may only mutate theUivia the&mut selfmethods provided by theUiCell.
Traits§
- Labelable
- Widgets that may display some label.
Functions§
- from_
bin - Deserializes a slice of bytes into an instance of
Tusing the default configuration. - from_
ron - A convenience function for building a deserializer
and deserializing a value of type
Tfrom a string. - to_bin
- Serializes a serializable object into a
Vecof bytes using the default configuration. - to_ron
- Serializes
valueand returns it as string.
Type Aliases§
- Font
Size - Font size used throughout carbide.