pub struct DocumentText {
pub string_table: Option<String>,
pub text: String,
pub sprite_sheet: Option<String>,
pub bullets: Vec<String>,
pub underline_sprite: String,
pub link_colors: [u32; 3],
pub indent: i32,
pub width: i32,
pub fonts: Vec<Option<String>>,
pub sheets: Vec<Option<String>>,
pub colors: Vec<u32>,
pub images: Option<String>,
}Expand description
Rich text configuration (DocumentTextDescription::Serialize).
Original: Runtime 0x1800d2110.
Fields§
§string_table: Option<String>The string table that text is a key of.
text: StringThe text with markup, or its key.
sprite_sheet: Option<String>The sprite sheet of the bullets and the underline.
bullets: Vec<String>The bullets’ sprite names.
underline_sprite: StringThe underline’s sprite name.
link_colors: [u32; 3]The colours of links: normal, under the pointer, pressed.
indent: i32The indent of list items, in pixels.
width: i32The width at which the text wraps, in pixels.
fonts: Vec<Option<String>>The fonts the markup can select.
sheets: Vec<Option<String>>The sprite sheets the markup can show images from.
colors: Vec<u32>The colours the markup can select.
images: Option<String>The resource with the document’s pictures.
Trait Implementations§
Source§impl Clone for DocumentText
impl Clone for DocumentText
Source§fn clone(&self) -> DocumentText
fn clone(&self) -> DocumentText
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DocumentText
impl RefUnwindSafe for DocumentText
impl Send for DocumentText
impl Sync for DocumentText
impl Unpin for DocumentText
impl UnsafeUnpin for DocumentText
impl UnwindSafe for DocumentText
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