Enum atspi_common::Layer
source · pub enum Layer {
Invalid,
Background,
Canvas,
Widget,
Mdi,
Popup,
Overlay,
Window,
}
Expand description
Indicates relative stacking order of a atspi_proxies::component::ComponentProxy
with respect to the
onscreen visual representation of the UI.
The layer index, in combination with the component’s extents,
can be used to compute the visibility of all or part of a component.
This is important in programmatic determination of region-of-interest for magnification,
and in flat screen review models of the screen, as well as for other uses.
Objects residing in two of the Layer
categories support further z-ordering information,
with respect to their peers in the same layer:
namely, Layer::Window
and Layer::Mdi
.
Relative stacking order for other objects within the same layer is not available;
the recommended heuristic is first child paints first. In other words,
assume that the first siblings in the child list are subject to being
overpainted by later siblings if their bounds intersect.
Variants§
Invalid
Indicates an error condition or uninitialized value.
Background
Reserved for the desktop background; this is the bottom-most layer, over which everything else is painted.
Canvas
The ‘background’ layer for most content renderers and
UI atspi_proxies::component::ComponentProxy
containers.
Widget
The layer in which the majority of ordinary ‘foreground’ widgets reside.
Mdi
A special layer between Layer::Canvas
and Layer::Widget
, in which the
‘pseudo windows’ (e.g. the Multiple-Document Interface frames) reside.
See atspi_proxies::component::ComponentProxy::get_mdizorder
.
Popup
A layer for popup window content, above Layer::Widget
.
Overlay
The topmost layer.
Window
The layer in which a toplevel window background usually resides.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Layer
impl<'de> Deserialize<'de> for Layer
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>,
impl Copy for Layer
impl Eq for Layer
impl StructuralPartialEq for Layer
Auto Trait Implementations§
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnwindSafe for Layer
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)