Module util

Module util 

Source
Expand description

Utility code for rendering and conversions

Re-exports§

pub use rusttype;

Functions§

add_array_function
Returns function for adding an element to an array, for use with change_from_path
button_to_raw
Converts unique button to raw button
change_from_path
Util function to navigate paths and perform changes on values
convert_value_to_path
Converts UIValue to UIPathValue
deserialize_panel
Parses value into a button panel
deserialize_panel_raw
Parses value into a raw button panel
hash_image
Hashes image
hash_str
Hashes string
hash_value
Hashes value
make_button_unique
Wraps button in Arc and RwLock, but packed into a more convenient function
make_panel_unique
Converts raw button panel into button panel
panel_to_raw
Converts button panel to raw button panel
remove_array_function
Returns function for removing an element from array, for use with change_from_path
serialize_panel
Parses button panel to Value, serializing all the unique buttons in process
serialize_panel_raw
Serializes raw button panel to Value in more understandable function
set_value_function
Returns function for setting value to UIValue, for use with change_from_path
straight_copy
Copies component data from reference to new button