pub struct ObjectButtonState {Show 20 fields
pub enabled: bool,
pub button_no: i64,
pub group_no: i64,
pub cut_no: i64,
pub group_idx_override: Option<usize>,
pub action_no: i64,
pub se_no: i64,
pub sys_type: i64,
pub sys_type_opt: i64,
pub mode: i64,
pub push_keep: bool,
pub alpha_test: bool,
pub state: i64,
pub hit: bool,
pub pushed: bool,
pub decided_action_scn_name: String,
pub decided_action_cmd_name: String,
pub decided_action_z_no: i64,
pub last_hit: bool,
pub last_pushed: bool,
}Fields§
§enabled: bool§group_no: i64§cut_no: i64Additional cut offset applied after OBJECT.PATNO for button rendering.
Original C_elm_object::frame()/create_trp() submits
obp.pat_no + button.cut_no, and button action templates add their
rep_pat_no on top of that submitted cut.
group_idx_override: Option<usize>Optional override derived from SET_BUTTON_GROUP(element).
action_no: i64§se_no: i64§sys_type: i64§sys_type_opt: i64§mode: i64§push_keep: bool§alpha_test: bool§state: i64Button state constants: 0=normal, 1=hit, 2=push, 3=select, 4=disable.
hit: bool§pushed: bool§decided_action_scn_name: String§decided_action_cmd_name: String§decided_action_z_no: i64§last_hit: boolPrevious-frame hit flag used to model *_this_frame button transitions.
last_pushed: boolPrevious-frame pushed flag used to model *_this_frame button transitions.
Implementations§
Trait Implementations§
Source§impl Clone for ObjectButtonState
impl Clone for ObjectButtonState
Source§fn clone(&self) -> ObjectButtonState
fn clone(&self) -> ObjectButtonState
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 ObjectButtonState
impl Debug for ObjectButtonState
Auto Trait Implementations§
impl Freeze for ObjectButtonState
impl RefUnwindSafe for ObjectButtonState
impl Send for ObjectButtonState
impl Sync for ObjectButtonState
impl Unpin for ObjectButtonState
impl UnsafeUnpin for ObjectButtonState
impl UnwindSafe for ObjectButtonState
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.