Enum atk::RelationType
source · [−]#[non_exhaustive]
pub enum RelationType {
Show 22 variants
Null,
ControlledBy,
ControllerFor,
LabelFor,
LabelledBy,
MemberOf,
NodeChildOf,
FlowsTo,
FlowsFrom,
SubwindowOf,
Embeds,
EmbeddedBy,
PopupFor,
ParentWindowOf,
DescribedBy,
DescriptionFor,
NodeParentOf,
Details,
DetailsFor,
ErrorMessage,
ErrorFor,
LastDefined,
// some variants omitted
}
Expand description
Describes the type of the relation
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Null
Not used, represens “no relationship” or an error condition.
ControlledBy
Indicates an object controlled by one or more target objects.
ControllerFor
Indicates an object is an controller for one or more target objects.
LabelFor
Indicates an object is a label for one or more target objects.
LabelledBy
Indicates an object is labelled by one or more target objects.
MemberOf
Indicates an object is a member of a group of one or more target objects.
NodeChildOf
Indicates an object is a cell in a treetable which is displayed because a cell in the same column is expanded and identifies that cell.
FlowsTo
Indicates that the object has content that flows logically to another AtkObject in a sequential way, (for instance text-flow).
FlowsFrom
Indicates that the object has content that flows logically from another AtkObject in a sequential way, (for instance text-flow).
SubwindowOf
Indicates a subwindow attached to a component but otherwise has no connection in the UI heirarchy to that component.
Embeds
Indicates that the object visually embeds another object’s content, i.e. this object’s content flows around another’s content.
EmbeddedBy
Reciprocal of Embeds
, indicates that
this object’s content is visualy embedded in another object.
PopupFor
Indicates that an object is a popup for another object.
ParentWindowOf
Indicates that an object is a parent window of another object.
DescribedBy
Reciprocal of DescriptionFor
. Indicates that one
or more target objects provide descriptive information about this object. This relation
type is most appropriate for information that is not essential as its presentation may
be user-configurable and/or limited to an on-demand mechanism such as an assistive
technology command. For brief, essential information such as can be found in a widget’s
on-screen label, use LabelledBy
. For an on-screen error message, use
ErrorMessage
. For lengthy extended descriptive information contained in
an on-screen object, consider using Details
as assistive technologies may
provide a means for the user to navigate to objects containing detailed descriptions so
that their content can be more closely reviewed.
DescriptionFor
Reciprocal of DescribedBy
. Indicates that this
object provides descriptive information about the target object(s). See also
DetailsFor
and ErrorFor
.
NodeParentOf
Indicates an object is a cell in a treetable and is expanded to display other cells in the same column.
Details
Reciprocal of DetailsFor
. Indicates that this object
has a detailed or extended description, the contents of which can be found in the target
object(s). This relation type is most appropriate for information that is sufficiently
lengthy as to make navigation to the container of that information desirable. For less
verbose information suitable for announcement only, see DescribedBy
. If
the detailed information describes an error condition, ErrorFor
should be
used instead. Since
: ATK-2.26.
DetailsFor
Reciprocal of Details
. Indicates that this object
provides a detailed or extended description about the target object(s). See also
DescriptionFor
and ErrorFor
. Since
: ATK-2.26.
ErrorMessage
Reciprocal of ErrorFor
. Indicates that this object
has one or more errors, the nature of which is described in the contents of the target
object(s). Objects that have this relation type should also contain StateType::InvalidEntry
in their StateSet
. Since
: ATK-2.26.
ErrorFor
Reciprocal of ErrorMessage
. Indicates that this object
contains an error message describing an invalid condition in the target object(s). Since
:
ATK_2.26.
LastDefined
Not used, this value indicates the end of the enumeration.
Implementations
sourceimpl RelationType
impl RelationType
Trait Implementations
sourceimpl Clone for RelationType
impl Clone for RelationType
sourcefn clone(&self) -> RelationType
fn clone(&self) -> RelationType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RelationType
impl Debug for RelationType
sourceimpl Display for RelationType
impl Display for RelationType
sourceimpl<'a> FromValue<'a> for RelationType
impl<'a> FromValue<'a> for RelationType
type Checker = GenericValueTypeChecker<RelationType>
type Checker = GenericValueTypeChecker<RelationType>
Value type checker.
sourceunsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a Value
. Read more
sourceimpl Hash for RelationType
impl Hash for RelationType
sourceimpl Ord for RelationType
impl Ord for RelationType
sourceimpl PartialEq<RelationType> for RelationType
impl PartialEq<RelationType> for RelationType
sourcefn eq(&self, other: &RelationType) -> bool
fn eq(&self, other: &RelationType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RelationType) -> bool
fn ne(&self, other: &RelationType) -> bool
This method tests for !=
.
sourceimpl PartialOrd<RelationType> for RelationType
impl PartialOrd<RelationType> for RelationType
sourcefn partial_cmp(&self, other: &RelationType) -> Option<Ordering>
fn partial_cmp(&self, other: &RelationType) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl StaticType for RelationType
impl StaticType for RelationType
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
sourceimpl ToValue for RelationType
impl ToValue for RelationType
sourceimpl ValueType for RelationType
impl ValueType for RelationType
type Type = RelationType
type Type = RelationType
Type to get the Type
from. Read more
impl Copy for RelationType
impl Eq for RelationType
impl StructuralEq for RelationType
impl StructuralPartialEq for RelationType
Auto Trait Implementations
impl RefUnwindSafe for RelationType
impl Send for RelationType
impl Sync for RelationType
impl Unpin for RelationType
impl UnwindSafe for RelationType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a SendValue
clone of self
.