Struct classicube_sys::InputWidget
source · #[repr(C)]pub struct InputWidget {Show 36 fields
pub VTABLE: *const WidgetVTABLE,
pub x: c_int,
pub y: c_int,
pub width: c_int,
pub height: c_int,
pub active: cc_bool,
pub flags: cc_uint8,
pub horAnchor: cc_uint8,
pub verAnchor: cc_uint8,
pub xOffset: c_int,
pub yOffset: c_int,
pub MenuClick: Widget_LeftClick,
pub meta: cc_pointer,
pub font: *mut FontDesc,
pub GetMaxLines: Option<unsafe extern "C" fn() -> c_int>,
pub RemakeTexture: Option<unsafe extern "C" fn(elem: *mut c_void)>,
pub OnPressedEnter: Option<unsafe extern "C" fn(elem: *mut c_void)>,
pub AllowedChar: Option<unsafe extern "C" fn(elem: *mut c_void, c: c_char) -> cc_bool>,
pub OnTextChanged: Option<unsafe extern "C" fn(elem: *mut c_void)>,
pub text: cc_string,
pub lines: [cc_string; 3],
pub lineWidths: [c_int; 3],
pub lineHeight: c_int,
pub inputTex: Texture,
pub prefixWidth: c_int,
pub convertPercents: cc_bool,
pub padding: cc_uint8,
pub showCaret: cc_bool,
pub caretWidth: c_int,
pub caretX: c_int,
pub caretY: c_int,
pub caretPos: c_int,
pub caretOffset: c_int,
pub caretCol: PackedCol,
pub caretTex: Texture,
pub caretAccumulator: f32,
}
Fields§
§VTABLE: *const WidgetVTABLE
§x: c_int
§y: c_int
§width: c_int
§height: c_int
§active: cc_bool
§flags: cc_uint8
§horAnchor: cc_uint8
§verAnchor: cc_uint8
§xOffset: c_int
§yOffset: c_int
§MenuClick: Widget_LeftClick
§meta: cc_pointer
§font: *mut FontDesc
§GetMaxLines: Option<unsafe extern "C" fn() -> c_int>
§RemakeTexture: Option<unsafe extern "C" fn(elem: *mut c_void)>
§OnPressedEnter: Option<unsafe extern "C" fn(elem: *mut c_void)>
§AllowedChar: Option<unsafe extern "C" fn(elem: *mut c_void, c: c_char) -> cc_bool>
§OnTextChanged: Option<unsafe extern "C" fn(elem: *mut c_void)>
§text: cc_string
§lines: [cc_string; 3]
§lineWidths: [c_int; 3]
§lineHeight: c_int
§inputTex: Texture
§prefixWidth: c_int
§convertPercents: cc_bool
§padding: cc_uint8
§showCaret: cc_bool
§caretWidth: c_int
§caretX: c_int
§caretY: c_int
§caretPos: c_int
§caretOffset: c_int
§caretCol: PackedCol
§caretTex: Texture
§caretAccumulator: f32
Auto Trait Implementations§
impl Freeze for InputWidget
impl RefUnwindSafe for InputWidget
impl !Send for InputWidget
impl !Sync for InputWidget
impl Unpin for InputWidget
impl UnwindSafe for InputWidget
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