Cargo Features

[dependencies]
hui = { version = "0.1.0-alpha.4", default-features = false, features = ["derive", "image", "builtin_font", "pixel_perfect", "pixel_perfect_text", "el_all", "el_container", "el_fill_rect", "el_spacer", "el_br", "el_text", "el_image", "el_progress_bar", "el_slider", "el_transformer", "el_interactable"] }
default = builtin_font, derive, el_all, image, pixel_perfect_text

These default features are set whenever hui is added without default-features = false somewhere in the dependency tree.

derive default

Enable derive macros

Enables hui-derive

image default

Enable image loading support using the image crate

Enables image

builtin_font default

Enable the built-in font (ProggyTiny, adds *35kb* to the executable)

Affects font::BUILTIN_FONT

pixel_perfect = pixel_perfect_text

#### Pixel-perfect rendering:

Round all vertex positions to nearest integer coordinates (not recommended)

pixel_perfect_text default pixel_perfect?

Apply pixel-perfect rendering hack to text (fixes blurry text rendering)

el_all default = el_br, el_container, el_fill_rect, el_image, el_interactable, el_progress_bar, el_slider, el_spacer, el_text, el_transformer

Make sure to disable both features if you are not rendering UI "as-is" at 1:1 scale\
For exmaple, you should disable them if using DPI (or any other form of) scaling while passing the virtual resolution to the ui or rendering it in 3d space
#### Built-in elements:

Enable all built-in elements

el_container el_all

Enable the built-in Container element

Affects builtin::container

el_fill_rect el_all

Enable the built-in FillRect element

Affects builtin::fill_rect

el_spacer el_all

Enable the built-in Spacer element

Affects builtin::spacer

el_br el_all

Enable the built-in Break element

Affects builtin::br

el_text el_all

Enable the built-in Text element

Affects builtin::text

el_image el_all

Enable the built-in Image element

Affects builtin::image

el_progress_bar el_all

Enable the built-in ProgressBar element

Affects builtin::progress_bar

el_slider el_all

Enable the built-in Slider element

Affects builtin::slider

el_transformer el_all

Enable the built-in Transformer element

Affects builtin::transformer

el_interactable el_all

Enable the built-in Interactable element

Affects builtin::interactable