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

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

An anchor instance

Fields

The inner object to be anchored

The direction to anchor to

Methods

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

Create a new Anchor instance

Trait Implementations

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

Important traits for Vec<u8>

What this object contains

Important traits for Vec<u8>

What this object contains, mutably

Load all content

Tick the object

When the user presses space, the state of the presentation is advanced. This method is what is called. Read more

What state the object is in

Draw everything

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

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

The width of the object

The height of the object

Auto Trait Implementations

impl<T> Send for Anchor<T>

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