Struct opmark::mark::StyleImage
source · [−]pub struct StyleImage {
pub align_h: AlignHorizontal,
pub hyperlink: String,
pub width: Option<f32>,
pub height: Option<f32>,
}
Expand description
The configuration of the image element.
Fields
align_h: AlignHorizontal
How the image should be aligned horizontally.
hyperlink: String
A string defines the url where the image should link to.
width: Option<f32>
The width of the image. If None
, the ordinary width of the image will be used.
height: Option<f32>
The height of the image. If None
, the ordinary height of the image will be used.
Implementations
sourceimpl StyleImage
impl StyleImage
pub fn new() -> Self
pub fn with_align_h(self, align_h: AlignHorizontal) -> Self
pub fn with_height(self, height: f32) -> Self
pub fn with_hyperlink(self, hyperlink: String) -> Self
pub fn with_width(self, width: f32) -> Self
Trait Implementations
sourceimpl Debug for StyleImage
impl Debug for StyleImage
sourceimpl Default for StyleImage
impl Default for StyleImage
sourcefn default() -> StyleImage
fn default() -> StyleImage
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for StyleImage
impl Send for StyleImage
impl Sync for StyleImage
impl Unpin for StyleImage
impl UnwindSafe for StyleImage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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