#[repr(C)]pub struct ResTextBox {Show 21 fields
pub pane: ResPane,
pub text_buf_bytes: u16,
pub text_str_bytes: u16,
pub material_idx: u16,
pub font_idx: u16,
pub text_position: u8,
pub text_alignment: u8,
pub text_box_flag: u16,
pub italic_ratio: f32,
pub text_str_offset: u32,
pub text_cols: [ResColor; 2],
pub font_size: ResVec2,
pub char_space: f32,
pub line_space: f32,
pub text_id_offset: u32,
pub shadow_offset: ResVec2,
pub shadow_scale: ResVec2,
pub shadow_cols: [ResColor; 2],
pub shadow_italic_ratio: f32,
pub line_width_offset_offset: u32,
pub per_character_transform_offset: u32,
}
Fields§
§pane: ResPane
§text_buf_bytes: u16
§text_str_bytes: u16
§material_idx: u16
§font_idx: u16
§text_position: u8
§text_alignment: u8
§text_box_flag: u16
§italic_ratio: f32
§text_str_offset: u32
§text_cols: [ResColor; 2]
§font_size: ResVec2
§char_space: f32
§line_space: f32
§text_id_offset: u32
§shadow_offset: ResVec2
§shadow_scale: ResVec2
§shadow_cols: [ResColor; 2]
§shadow_italic_ratio: f32
§line_width_offset_offset: u32
§per_character_transform_offset: u32
Implementations§
source§impl ResTextBox
impl ResTextBox
pub fn enable_shadow(&mut self)
pub fn text_alignment(&mut self, align: TextAlignment)
Methods from Deref<Target = ResPane>§
Trait Implementations§
source§impl Clone for ResTextBox
impl Clone for ResTextBox
source§fn clone(&self) -> ResTextBox
fn clone(&self) -> ResTextBox
Returns a copy 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 more