#[repr(C)]pub struct DropdownDef {
pub name: String,
pub page: u32,
pub x: f64,
pub y: f64,
pub width: f64,
pub height: f64,
pub options: Vec<String>,
pub selected_index: i32,
pub editable: bool,
}Expand description
Dropdown definition
Fields§
§name: StringField name
page: u32Page number (1-based)
x: f64X coordinate in points
y: f64Y coordinate in points
width: f64Width in points
height: f64Height in points
options: Vec<String>Available options
selected_index: i32Selected index (-1 for none)
editable: boolAllow custom text entry
Trait Implementations§
Source§impl Clone for DropdownDef
impl Clone for DropdownDef
Source§impl Debug for DropdownDef
impl Debug for DropdownDef
Source§impl Default for DropdownDef
impl Default for DropdownDef
Source§impl ExternType for DropdownDef
impl ExternType for DropdownDef
Auto Trait Implementations§
impl Freeze for DropdownDef
impl RefUnwindSafe for DropdownDef
impl Send for DropdownDef
impl Sync for DropdownDef
impl Unpin for DropdownDef
impl UnwindSafe for DropdownDef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more