Struct me3_framework::overlay::widget_text::WidgetTextGalley
source · [−]Expand description
Text that has been layed out and ready to be painted.
Fields
galley: Arc<Galley>
galley_has_color: bool
Implementations
sourceimpl WidgetTextGalley
impl WidgetTextGalley
pub fn galley(&self) -> &Arc<Galley>
sourcepub fn paint_with_visuals(
self,
painter: &Painter,
text_pos: Pos2,
visuals: &WidgetVisuals
)
pub fn paint_with_visuals(
self,
painter: &Painter,
text_pos: Pos2,
visuals: &WidgetVisuals
)
Use the colors in the original WidgetText
if any,
else fall back to the one specified by the WidgetVisuals
.
sourcepub fn paint_with_fallback_color(
self,
painter: &Painter,
text_pos: Pos2,
text_color: Color32
)
pub fn paint_with_fallback_color(
self,
painter: &Painter,
text_pos: Pos2,
text_color: Color32
)
Use the colors in the original WidgetText
if any,
else fall back to the given color.
sourcepub fn paint_with_color_override(
self,
painter: &Painter,
text_pos: Pos2,
text_color: Color32
)
pub fn paint_with_color_override(
self,
painter: &Painter,
text_pos: Pos2,
text_color: Color32
)
Paint with this specific color.
Trait Implementations
sourceimpl Clone for WidgetTextGalley
impl Clone for WidgetTextGalley
sourcefn clone(&self) -> WidgetTextGalley
fn clone(&self) -> WidgetTextGalley
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl PartialEq<WidgetTextGalley> for WidgetTextGalley
impl PartialEq<WidgetTextGalley> for WidgetTextGalley
sourcefn eq(&self, other: &WidgetTextGalley) -> bool
fn eq(&self, other: &WidgetTextGalley) -> bool
impl StructuralPartialEq for WidgetTextGalley
Auto Trait Implementations
impl RefUnwindSafe for WidgetTextGalley
impl Send for WidgetTextGalley
impl Sync for WidgetTextGalley
impl Unpin for WidgetTextGalley
impl UnwindSafe for WidgetTextGalley
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more