pub struct At<'d, D: Drawable> { /* private fields */ }Implementations
sourceimpl<'a, D: Drawable> At<'a, D>
impl<'a, D: Drawable> At<'a, D>
pub fn offset(&self, xy: impl ToZel) -> At<'a, Offset<'a, D>>
pub fn clip(&self, xy0: impl ToZel, xy1: impl ToZel) -> At<'a, Clip<'a, D>>
pub fn font(&self, font: Font) -> At<'a, SetFont<'a, D>>
pub fn fg(&self, color: impl ToColor) -> At<'a, SetFg<'a, D>>
pub fn bg(&self, color: impl ToColor) -> At<'a, SetBg<'a, D>>
pub fn click(&self, affordance: Affordance) -> At<'a, SetClick<'a, D>>
pub fn scroll(&self, affordance: Affordance) -> At<'a, SetScroll<'a, D>>
pub fn no_click(&self) -> At<'a, SetClick<'a, D>>
pub fn no_scroll(&self) -> At<'a, SetScroll<'a, D>>
pub fn offset_i(&self, xy: (i32, i32)) -> At<'a, Offset<'a, D>>
pub fn clip_i(&self, xy0: (i32, i32), xy1: (i32, i32)) -> At<'a, Clip<'a, D>>
sourceimpl<'a, D: Drawable> At<'a, D>
impl<'a, D: Drawable> At<'a, D>
pub fn affordance(&mut self) -> Affordance
pub fn get_font(&self) -> Font
pub fn at(&self, xy: impl ToZel) -> At<'a, D>
pub fn shifted(&self, xy: impl ToZel) -> At<'a, D>
pub fn at_i(&self, xy: (i32, i32)) -> At<'a, D>
pub fn shifted_i(&self, xy: (i32, i32)) -> At<'a, D>
pub fn touch(self) -> Self
pub fn put(self, s: impl ToFString) -> Self
pub fn draw_rect(self, other: impl ToZel) -> Self
pub fn draw_rect_ext(self, other: impl ToZel, settings: BoxSettings) -> Self
pub fn fill_rect(self, other: impl ToZel, fc: impl ToFChar) -> Self
pub fn fill_rect_i(self, other: (i32, i32), fc: impl ToFChar) -> Self
pub fn touch_rect(self, other: impl ToZel) -> Self
pub fn touch_rect_i(self, other: (i32, i32)) -> Self
Trait Implementations
Auto Trait Implementations
impl<'d, D> !RefUnwindSafe for At<'d, D>
impl<'d, D> !Send for At<'d, D>
impl<'d, D> !Sync for At<'d, D>
impl<'d, D> Unpin for At<'d, D>
impl<'d, D> !UnwindSafe for At<'d, D>
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
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s. Read more
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s. Read more