#[repr(C)]pub struct TTF_SubString {
pub flags: TTF_SubStringFlags,
pub offset: c_int,
pub length: c_int,
pub line_index: c_int,
pub cluster_index: c_int,
pub rect: SDL_Rect,
}Expand description
Fields§
§flags: TTF_SubStringFlagsThe flags for this substring
offset: c_intThe byte offset from the beginning of the text
length: c_intThe byte length starting at the offset
line_index: c_intThe index of the line that contains this substring
cluster_index: c_intThe internal cluster index, used for quickly iterating
rect: SDL_RectThe rectangle, relative to the top left of the text, containing the substring
Trait Implementations§
Source§impl Clone for TTF_SubString
impl Clone for TTF_SubString
Source§fn clone(&self) -> TTF_SubString
fn clone(&self) -> TTF_SubString
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 Default for TTF_SubString
impl Default for TTF_SubString
Source§fn default() -> TTF_SubString
fn default() -> TTF_SubString
Returns the “default value” for a type. Read more
Source§impl Hash for TTF_SubString
impl Hash for TTF_SubString
Source§impl PartialEq for TTF_SubString
impl PartialEq for TTF_SubString
impl Copy for TTF_SubString
impl Eq for TTF_SubString
impl StructuralPartialEq for TTF_SubString
Auto Trait Implementations§
impl Freeze for TTF_SubString
impl RefUnwindSafe for TTF_SubString
impl Send for TTF_SubString
impl Sync for TTF_SubString
impl Unpin for TTF_SubString
impl UnwindSafe for TTF_SubString
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