Expand description
§hello_egui_utils
This crate contains helper methods and structs used all over the hello_egui project.
Modules§
- center
- Helper struct to easily align things with unknown sizes
Macros§
- async_
fn_ def - This macro generates the async fn
- asyncify
- This macro generates a callback based and a async version of the function
- call_
self_ fn - Matches the self reference of the callback fn
- concat_
idents - This macros makes it possible to concatenate identifiers at compile time and use them as normal.
It’s an extension/replacement of
std::concat_idents
, since in comprassion to the std-solution, the idents here can be used everywhere. - fn_def
- This macro generates the callback fn
- fnify
- This macro generates the async fn and the callback fn
Traits§
- Maybe
Send - Marker trait for types that can be sent between threads (this will be not be Send on wasm) Types that can be transferred across thread boundaries.
- Maybe
Sync - Marker trait for types that can be shared between threads (this will be not be Sync on wasm) Types for which it is safe to share references between threads.
Functions§
- current_
scroll_ delta - Returns the approximate current scroll delta of the ui
- measure_
text - Returns the size of the text in the current ui (based on the max width of the ui)
Type Aliases§
- Callback
Type - Type of the callback function