Struct egui::widget_text::WidgetTextGalley
source · pub struct WidgetTextGalley {
pub galley: Arc<Galley>,
pub galley_has_color: bool,
}
Expand description
Text that has been laid out and ready to be painted.
Fields§
§galley: Arc<Galley>
§galley_has_color: bool
Implementations§
source§impl 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§
source§impl Clone for WidgetTextGalley
impl Clone for WidgetTextGalley
source§fn clone(&self) -> WidgetTextGalley
fn clone(&self) -> WidgetTextGalley
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 moresource§impl PartialEq for WidgetTextGalley
impl PartialEq for WidgetTextGalley
source§fn eq(&self, other: &WidgetTextGalley) -> bool
fn eq(&self, other: &WidgetTextGalley) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
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