Struct cognitive_exhibitor::Compositor
[−]
[src]
pub struct Compositor<C> where
C: ExhibitorCoordinationTrait, { /* fields omitted */ }
Compositor main structure.
Methods
impl<C> Compositor<C> where
C: ExhibitorCoordinationTrait,
[src]
C: ExhibitorCoordinationTrait,
Public methods.
fn new(coordinator: C, strategist: Strategist, config: CompositorConfig) -> Self
Compositor
constructor.
fn create_display(&mut self, id: i32, area: Area, name: String) -> Frame
Creates new display with default workspace.
fn execute_command(&mut self, command: Command)
Executes given command.
fn manage_surface(&mut self, sid: SurfaceId)
Handles new surface by settling it in frame tree, adding to history and notifying coordinator.
fn dock_surface(
&mut self,
sid: SurfaceId,
size: Size,
display_frame: Frame
) -> Frame
&mut self,
sid: SurfaceId,
size: Size,
display_frame: Frame
) -> Frame
Dock given surface.
fn unmanage_surface(&mut self, sid: SurfaceId)
Handles destruction of surface. Removes it from history and frame free.
fn pop_surface(&mut self, sid: SurfaceId)
Pop given surface in history.
fn move_globally(&mut self, sid: SurfaceId, vector: Vector, pin_point: Position)
Moves given surface by given vector. Only floating surfaces are moved. This movement is
associated with interaction with user and pin_point
describes point on surface by which
the surface is dragged. If pin_point
changes display the surface frame is resettled to
corresponding workspace.
fn get_root(&self) -> Frame
Returns root frame.
fn get_selection(&self) -> Frame
Returns selected frame.