Skip to main content

WorkspaceShowOp

Struct WorkspaceShowOp 

Source
pub struct WorkspaceShowOp { /* private fields */ }
Expand description

An operation to show a workspace.

Create this using Workspace::show.

Implementations§

Source§

impl WorkspaceShowOp

Source

pub fn exec(self)

Runs this operation.

Source

pub fn connector(self, c: Connector) -> Self

The connector on which to show the workspace.

If the workspace does not already exist, it will be shown on this connector. Otherwise, see WorkspaceShowOp::move_to_connector.

By default, this workspace is determined via the WorkspaceShowOp::seat.

Source

pub fn move_to_connector(self, move_to_connector: bool) -> Self

Whether to move the workspace to the target connector if it already exists.

The default is false.

Source

pub fn seat(self, s: Seat) -> Self

The reference seat.

If no connector was explicitly set, this seat will be used to determine the target output.

Source

pub fn fallback_output_mode(self, mode: FallbackOutputMode) -> Self

The fallback output mode to use when the target output is determined via the WorkspaceShowOp::seat.

The default is determined via Seat::set_fallback_output_mode.

Source

pub fn focus(self, focus: bool) -> Self

Whether the workspace should grab the focus of the WorkspaceShowOp::seat.

The default is true.

Source

pub fn toggle(self, toggle: bool) -> Self

Whether this operation should hide the workspace if it is already visible.

This has no effect for normal workspaces.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.