#[repr(C)]
pub struct TextBox {Show 24 fields
pub pane: Pane,
pub text_buf: *mut c_char,
pub p_text_id: *const c_char,
pub text_colors: [[u8; 4]; 2],
pub p_font: *const c_void,
pub font_size_x: f32,
pub font_size_y: f32,
pub line_space: f32,
pub char_space: f32,
pub p_tag_processor: *const c_char,
pub text_buf_len: u16,
pub text_len: u16,
pub bits: u16,
pub text_position: u8,
pub is_utf8: bool,
pub italic_ratio: f32,
pub shadow_offset: ResVec2,
pub shadow_scale: ResVec2,
pub shadow_color: [ResColor; 2],
pub shadow_italic_ratio: f32,
pub p_line_width_offset: *const c_void,
pub p_material: *mut Material,
pub p_disp_string_buf: *const c_void,
pub p_per_character_transform: *const c_void,
}
§shadow_offset: ResVec2
§shadow_scale: ResVec2
§shadow_color: [ResColor; 2]
§shadow_italic_ratio: f32
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.