widget_add_rect_element

Function widget_add_rect_element 

Source
pub unsafe extern "C" fn widget_add_rect_element(
    widget: *mut Widget,
    x: u8,
    y: u8,
    width: u8,
    height: u8,
    radius: u8,
    fill: bool,
)
Expand description

Add Rect Element

ยงArguments

  • widget - Widget instance
  • x - top left x coordinate
  • y - top left y coordinate
  • width - rect width
  • height - rect height
  • radius - corner radius
  • fill - whether to fill the box or not