Expand description
General utility functions
Functions§
- blit_
rgb - Draw a framebuffer (rgba) into a widget
- blit_
rgb_ ⚠nocopy - Draw a framebuffer (rgba) into a widget
- blit_
rgba - Draw a framebuffer (rgba) into a widget
- blit_
rgba_ ⚠nocopy - Draw a framebuffer (rgba) into a widget
- 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