pub struct EditBoxState {Show 17 fields
pub created: bool,
pub visible: bool,
pub text: String,
pub cursor_pos: usize,
pub action_flag: i32,
pub moji_size: i32,
pub rect_x: i32,
pub rect_y: i32,
pub rect_w: i32,
pub rect_h: i32,
pub design_screen_w: i32,
pub design_screen_h: i32,
pub window_x: i32,
pub window_y: i32,
pub window_w: i32,
pub window_h: i32,
pub window_moji_size: i32,
}Fields§
§created: bool§visible: bool§text: String§cursor_pos: usize§action_flag: i32§moji_size: i32§rect_x: i32§rect_y: i32§rect_w: i32§rect_h: i32§design_screen_w: i32§design_screen_h: i32§window_x: i32§window_y: i32§window_w: i32§window_h: i32§window_moji_size: i32Implementations§
Source§impl EditBoxState
impl EditBoxState
pub fn create_like( &mut self, x: i32, y: i32, w: i32, h: i32, moji_size: i32, design_screen_w: i32, design_screen_h: i32, )
pub fn destroy_like(&mut self)
pub fn set_text_like(&mut self, text: String)
pub fn insert_text_at_cursor(&mut self, text: &str)
pub fn backspace_like(&mut self)
pub fn update_rect(&mut self, screen_w: i32, screen_h: i32)
pub fn frame(&mut self, display_mode_change_proc_cnt: i32)
pub fn clear_input(&mut self)
pub fn is_decided(&self) -> bool
pub fn is_canceled(&self) -> bool
pub fn contains_point(&self, x: i32, y: i32) -> bool
Trait Implementations§
Source§impl Clone for EditBoxState
impl Clone for EditBoxState
Source§fn clone(&self) -> EditBoxState
fn clone(&self) -> EditBoxState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EditBoxState
impl Debug for EditBoxState
Auto Trait Implementations§
impl Freeze for EditBoxState
impl RefUnwindSafe for EditBoxState
impl Send for EditBoxState
impl Sync for EditBoxState
impl Unpin for EditBoxState
impl UnsafeUnpin for EditBoxState
impl UnwindSafe for EditBoxState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.