[][src]Enum atk::RelationType

#[non_exhaustive]pub enum RelationType {
    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
}

Describes the type of the relation

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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 RelationType::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 RelationType::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 RelationType::LabelledBy. For an on-screen error message, use RelationType::ErrorMessage. For lengthy extended descriptive information contained in an on-screen object, consider using RelationType::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 RelationType::DescribedBy. Indicates that this object provides descriptive information about the target object(s). See also RelationType::DetailsFor and RelationType::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 RelationType::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 RelationType::DescribedBy. If the detailed information describes an error condition, RelationType::ErrorFor should be used instead. Since: ATK-2.26.

DetailsFor

Reciprocal of RelationType::Details. Indicates that this object provides a detailed or extended description about the target object(s). See also RelationType::DescriptionFor and RelationType::ErrorFor. Since: ATK-2.26.

ErrorMessage

Reciprocal of RelationType::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 RelationType::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.

Trait Implementations

impl Clone for RelationType[src]

impl Copy for RelationType[src]

impl Debug for RelationType[src]

impl Display for RelationType[src]

impl Eq for RelationType[src]

impl<'a> FromValue<'a> for RelationType[src]

impl<'a> FromValueOptional<'a> for RelationType[src]

impl Hash for RelationType[src]

impl Ord for RelationType[src]

impl PartialEq<RelationType> for RelationType[src]

impl PartialOrd<RelationType> for RelationType[src]

impl SetValue for RelationType[src]

impl StaticType for RelationType[src]

impl StructuralEq for RelationType[src]

impl StructuralPartialEq for RelationType[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.