Expand description
Safe Rust bindings for the Luigi UI library.
This library provides a safe wrapper around the native C Luigi UI library, offering an idiomatic Rust interface while maintaining all the original functionality.
Structs§
- Button
- A clickable button element
- Checkbox
- Code
- Color
Picker - Gauge
- Image
Display - Label
- MDIChild
- MDIClient
- Menu
- Panel
- A panel container element that can hold other elements
- Shortcut
- A keyboard shortcut definition
- Slider
- Table
- TextBox
- Window
- A top-level window containing UI elements
Enums§
- Error
- Error types that can occur in Luigi operations
Constants§
- UI_
ALIGN_ CENTER - UI_
ALIGN_ LEFT - UI_
ALIGN_ RIGHT - UI_
BUTTON_ CAN_ FOCUS - UI_
BUTTON_ CHECKED - UI_
BUTTON_ DROP_ DOWN - UI_
BUTTON_ MENU_ ITEM - UI_
BUTTON_ SMALL - UI_
ELEMENT_ H_ FILL - UI_
ELEMENT_ PARENT_ PUSH - UI_
ELEMENT_ V_ FILL - UI_
MSG_ LEFT_ DOWN - UI_
MSG_ TABLE_ GET_ ITEM - UI_
PANEL_ BORDER - UI_
PANEL_ EXPAND - UI_
PANEL_ GRAY - UI_
PANEL_ HORIZONTAL - UI_
PANEL_ MEDIUM_ SPACING - UI_
PANEL_ SCROLL - UI_
PANEL_ SMALL_ SPACING - UI_
PANEL_ WHITE - UI_
WINDOW_ CENTER_ IN_ OWNER - UI_
WINDOW_ INSPECTOR - UI_
WINDOW_ MAXIMIZE - UI_
WINDOW_ MENU
Traits§
- Element
- Common trait implemented by all UI elements
- Event
Handler - Handler for UI element events
Functions§
- animate_
clock - Get the current animation clock value in milliseconds
- color_
to_ hsv - Convert an RGB color value to HSV color space
- color_
to_ rgb - Convert HSV color values to RGB color space
- init
- Initialize the Luigi UI system. Must be called before creating any windows or UI elements.
- measure_
string_ height - Get the standard height of a line of text in pixels
- measure_
string_ width - Measure the width of a string in pixels
- message_
loop - Start the UI message loop. This function blocks until the application exits.
- rect
- Create a rectangle with the given coordinates
- rect_
add - Add two rectangles together
- rect_
intersect - Get the intersection of two rectangles
Type Aliases§
- Result
- Result type for Luigi operations