pub struct Surface {
pub id: SurfaceId,
pub role: Role,
pub content: SurfaceContent,
pub owner: SurfaceOwner,
pub placement: Placement,
pub state: SurfaceState,
pub float: Option<FloatSpec>,
}Expand description
One node in the Surface Graph.
Fields§
§id: SurfaceId§role: Role§content: SurfaceContent§owner: SurfaceOwner§placement: Placement§state: SurfaceState§float: Option<FloatSpec>Present only for role == Float.
Implementations§
Source§impl Surface
impl Surface
pub fn lxapp( id: impl Into<SurfaceId>, role: Role, app_id: impl Into<String>, ) -> Self
pub fn native( id: impl Into<SurfaceId>, role: Role, capability: impl Into<String>, ) -> Self
pub fn native_instance( id: impl Into<SurfaceId>, role: Role, capability: impl Into<String>, instance_key: Option<String>, ) -> Self
pub fn browser( id: impl Into<SurfaceId>, role: Role, initial_url: impl Into<String>, ) -> Self
pub fn is_modal_float(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Surface
impl<'de> Deserialize<'de> for Surface
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Surface
Auto Trait Implementations§
impl Freeze for Surface
impl RefUnwindSafe for Surface
impl Send for Surface
impl Sync for Surface
impl Unpin for Surface
impl UnsafeUnpin for Surface
impl UnwindSafe for Surface
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more