Trait cursive::backends::puppet::observed::ObservedPieceInterface[][src]

pub trait ObservedPieceInterface {
    fn min(&self) -> Vec2;
fn max(&self) -> Vec2;
fn parent(&self) -> &ObservedScreen; fn size(&self) -> Vec2 { ... }
fn as_strings(&self) -> Vec<String> { ... }
fn expanded(&self, up_left: Vec2, down_right: Vec2) -> ObservedPiece<'_> { ... } }

Represents rectangular piece of observed screen (Puppet backend output)

Required methods

fn min(&self) -> Vec2[src]

Minimums of coordinates

fn max(&self) -> Vec2[src]

Maximums of coordinates

fn parent(&self) -> &ObservedScreen[src]

Reference of ObservablePiece this one is a subsection of or Self

Loading content...

Provided methods

fn size(&self) -> Vec2[src]

Size of piece

fn as_strings(&self) -> Vec<String>[src]

Returns a string representation of consecutive lines of this piece.

fn expanded(&self, up_left: Vec2, down_right: Vec2) -> ObservedPiece<'_>[src]

Returns expanded sibling of this piece

Asserts if request can be satisfied.

Loading content...

Trait Implementations

impl Index<XY<usize>> for dyn ObservedPieceInterface[src]

type Output = Option<ObservedCell>

The returned type after indexing.

Implementors

Loading content...