Crate luigi_rs

Source
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
ColorPicker
Gauge
ImageDisplay
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
EventHandler
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