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.