pub struct WatermarkLine {
pub text: String,
pub size: f32,
pub weight: FontWeight,
pub color: Color32,
}Expand description
One line of text of a Watermark.
Fields§
§text: StringText, on one line.
size: f32Font size in points; the line is 1.2 times as tall.
weight: FontWeightDefault FontWeight::Normal.
color: Color32Colour, usually translucent.
Implementations§
Source§impl WatermarkLine
impl WatermarkLine
Sourcepub fn new(text: impl Into<String>, size: f32, color: Color32) -> Self
pub fn new(text: impl Into<String>, size: f32, color: Color32) -> Self
Creates a line of normal weight.
Sourcepub fn with_weight(self, weight: FontWeight) -> Self
pub fn with_weight(self, weight: FontWeight) -> Self
Sets the weight.
Trait Implementations§
Source§impl Clone for WatermarkLine
impl Clone for WatermarkLine
Source§fn clone(&self) -> WatermarkLine
fn clone(&self) -> WatermarkLine
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 moreSource§impl Debug for WatermarkLine
impl Debug for WatermarkLine
Source§impl PartialEq for WatermarkLine
impl PartialEq for WatermarkLine
impl StructuralPartialEq for WatermarkLine
Auto Trait Implementations§
impl Freeze for WatermarkLine
impl RefUnwindSafe for WatermarkLine
impl Send for WatermarkLine
impl Sync for WatermarkLine
impl Unpin for WatermarkLine
impl UnsafeUnpin for WatermarkLine
impl UnwindSafe for WatermarkLine
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more