pub trait Converting {
// Required methods
fn to_array(
&self,
relative_position: Position,
listing: &dyn SurfaceListing,
) -> Vec<SurfaceContext>;
fn to_workspace_state(&self) -> WorkspaceState;
}
Expand description
Extension trait for Frame
adding more displaying functionality.
Required Methods§
Sourcefn to_array(
&self,
relative_position: Position,
listing: &dyn SurfaceListing,
) -> Vec<SurfaceContext>
fn to_array( &self, relative_position: Position, listing: &dyn SurfaceListing, ) -> Vec<SurfaceContext>
Converts frame three to list of SurfaceContext
suitable for drawing by renderer.
Sourcefn to_workspace_state(&self) -> WorkspaceState
fn to_workspace_state(&self) -> WorkspaceState
Converts frame tree to structure describing state of workspaces.