Struct ctru_sys::SwkbdState

source ·
#[repr(C)]
pub struct SwkbdState {
Show 39 fields pub type_: c_int, pub num_buttons_m1: c_int, pub valid_input: c_int, pub password_mode: c_int, pub is_parental_screen: c_int, pub darken_top_screen: c_int, pub filter_flags: u32_, pub save_state_flags: u32_, pub max_text_len: u16_, pub dict_word_count: u16_, pub max_digits: u16_, pub button_text: [[u16_; 17]; 3], pub numpad_keys: [u16_; 2], pub hint_text: [u16_; 65], pub predictive_input: bool, pub multiline: bool, pub fixed_width: bool, pub allow_home: bool, pub allow_reset: bool, pub allow_power: bool, pub unknown: bool, pub default_qwerty: bool, pub button_submits_text: [bool; 4], pub language: u16_, pub initial_text_offset: c_int, pub dict_offset: c_int, pub initial_status_offset: c_int, pub initial_learning_offset: c_int, pub shared_memory_size: usize, pub version: u32_, pub result: SwkbdResult, pub status_offset: c_int, pub learning_offset: c_int, pub text_offset: c_int, pub text_length: u16_, pub callback_result: c_int, pub callback_msg: [u16_; 257], pub skip_at_check: bool, pub __bindgen_anon_1: SwkbdState__bindgen_ty_1,
}
Expand description

Software keyboard parameter structure, it shouldn’t be modified directly.

Fields§

§type_: c_int§num_buttons_m1: c_int§valid_input: c_int§password_mode: c_int§is_parental_screen: c_int§darken_top_screen: c_int§filter_flags: u32_§save_state_flags: u32_§max_text_len: u16_§dict_word_count: u16_§max_digits: u16_§button_text: [[u16_; 17]; 3]§numpad_keys: [u16_; 2]§hint_text: [u16_; 65]§predictive_input: bool§multiline: bool§fixed_width: bool§allow_home: bool§allow_reset: bool§allow_power: bool§unknown: bool§default_qwerty: bool§button_submits_text: [bool; 4]§language: u16_§initial_text_offset: c_int§dict_offset: c_int§initial_status_offset: c_int§initial_learning_offset: c_int§shared_memory_size: usize§version: u32_§result: SwkbdResult§status_offset: c_int§learning_offset: c_int§text_offset: c_int§text_length: u16_§callback_result: c_int§callback_msg: [u16_; 257]§skip_at_check: bool§__bindgen_anon_1: SwkbdState__bindgen_ty_1

Trait Implementations§

source§

impl Clone for SwkbdState

source§

fn clone(&self) -> SwkbdState

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for SwkbdState

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Copy for SwkbdState

Auto Trait Implementations§

§

impl RefUnwindSafe for SwkbdState

§

impl !Send for SwkbdState

§

impl !Sync for SwkbdState

§

impl Unpin for SwkbdState

§

impl UnwindSafe for SwkbdState

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.