Crate egui_extras
source ·Expand description
This is a crate that adds some features on top top of egui.
This crate are for experimental features, and features that require big dependencies that does not belong in egui.
Feature flags
-
all_loaders— Shorthand for enabling the different types of image loaders (file,http,image,svg). -
datepicker— EnableDatePickerButtonwidget. -
file— Add support for loading images fromfile://URIs. -
http— Add support for loading images via HTTP. -
image— Add support for loading images with theimagecrate.You also need to ALSO opt-in to the image formats you want to support, like so:
image = { version = "0.24", features = ["jpeg", "png"] } # Add the types you want support for -
puffin— Enable profiling with thepuffincrate.Only enabled on native, because of the low resolution (1ms) of clocks in browsers.
-
svg— Support loading svg images. -
syntect— Enable better syntax highlighting usingsyntect.
Optional dependencies
document-features— Enable this when generating docs.
Modules
- Syntax highlighting for code.
Structs
- Specifies the properties of a column, like its width range.
- Shows a date, and will open a date picker popup when clicked.
- A Strip of cells which go in one direction. Each cell has a fixed size. In contrast to normal egui behavior, strip cells do not grow with its children!
- Builder for creating a new
Strip. - Table struct which can construct a
TableBody. - The body of a table.
- Builder for a
Tablewith (optional) fixed header and scrolling body. - The row of a table. Is created by
TableRowfor each createdTableBody::rowor each visible row in rows created by callingTableBody::rows.
Enums
- Size hint for table column/strip cell.
Functions
- Installs a set of image loaders.