[][src]Struct ytesrev::anchor::Anchor

pub struct Anchor<T: Drawable + KnownSize> {
    pub inner: T,
    pub direction: AnchorDirection,
}

An anchor instance

Fields

inner: T

The inner object to be anchored

direction: AnchorDirection

The direction to anchor to

Methods

impl<T: Drawable + KnownSize> Anchor<T>[src]

pub fn new(direction: AnchorDirection, inner: T) -> Anchor<T>[src]

Create a new Anchor instance

Trait Implementations

impl<T: Drawable + KnownSize> Drawable for Anchor<T>[src]

fn register(&mut self)[src]

Register all content. This is mostly just used by [LatexObj]s, that need to be registered before loaded. Read more

fn event(&mut self, e: Event)[src]

When any event occurs

impl<T: Drawable + KnownSize> KnownSize for Anchor<T>[src]

Auto Trait Implementations

impl<T> Send for Anchor<T>

impl<T> Unpin for Anchor<T> where
    T: Unpin

impl<T> Sync for Anchor<T> where
    T: Sync

impl<T> UnwindSafe for Anchor<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Anchor<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> Layerable for T where
    T: Drawable
[src]

impl<T> Stackable for T where
    T: Drawable + KnownSize
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,