Module utils
Available on crate feature
dep_fltk
only.Expand description
General utility functions
Modules§
- oncelock
- A utility module containing a OnceCell and Lazy types
Functions§
- char_
len - Get the length of a char in terms of C strings
- decode_
uri - Decode a uri
- filename_
expand - Expand a filename
- hex2rgb
- Convenience function to convert hex to rgb. Example:
- hex2rgba
- Convenience function to convert hex to rgba. Example:
- is
- Check whether a widget is of a certain type
- is_
ptr_ of - Check whether a widget is of a certain type
- open_
uri - Open a uri using the system’s browser
- rgb2hex
- Convenience function to convert rgb to hex. Example:
- rgba2hex
- Convenience function to convert rgba to hex. Example:
- type_
name - Get the dynamic typeinfo of a widget, useful for debugging. This prints the mangled name, which can be unmangled using a crate like cpp_demangle