/* * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ namespace ElmSharp.Accessible { /// /// IAccessibleRelation is an interface, which defines the relationship between two accessible objects. /// /// preview public interface IAccessibleRelation { /// /// Gets or sets the target object. /// /// preview AccessibleObject Target { get; set; } /// /// Gets the type. /// /// preview int Type { get; } } /// /// To define the label info for an accessible object. /// /// preview public class LabelledBy : IAccessibleRelation { /// /// Gets or sets the target object, which is LabelledBy. /// /// preview public AccessibleObject Target { get; set; } /// /// Gets the LabelledBy type. /// /// preview public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_LABELLED_BY; } } } /// /// To define the label info for an accessible object. /// /// preview public class LabelFor : IAccessibleRelation { /// /// Gets or sets the target object which is LabelFor. /// /// preview public AccessibleObject Target { get; set; } /// /// Gets the LabelFor type. /// /// preview public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_LABEL_FOR; } } } /// /// To define the control relationship for an accessible object. /// /// preview public class ControllerFor : IAccessibleRelation { /// /// Gets or sets the target object, which is ControllerFor. /// /// preview public AccessibleObject Target { get; set; } /// /// Gets the ControllerFor type. /// /// preview public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_CONTROLLER_FOR; } } } /// /// To define the control relationship for an accessible object. /// /// preview public class ControlledBy : IAccessibleRelation { /// /// Gets or sets the target object, which is ControlledBy. /// /// preview public AccessibleObject Target { get; set; } /// /// Gets the ControlledBy type. /// /// preview public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_CONTROLLED_BY; } } } /// /// To define the member relationship for an accessible object. /// /// preview public class MemberOf : IAccessibleRelation { /// /// Gets or sets the target object, which is MemberOf. /// /// preview public AccessibleObject Target { get; set; } /// /// Gets the MemberOf type. /// /// preview public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_MEMBER_OF; } } } /// /// To define the tooltip for an accessible object. /// /// preview public class TooltipFor : IAccessibleRelation { /// /// Gets or sets the target object, which is TooltipFor. /// /// preview public AccessibleObject Target { get; set; } /// /// Gets the TooltipFor type. /// /// preview public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_TOOLTIP_FOR; } } } /// /// To define the child for an accessible object. /// /// preview public class ChildOf : IAccessibleRelation { /// /// Gets or sets the target object, which is ChildOf. /// /// preview public AccessibleObject Target { get; set; } /// /// Gets the ChildOf type. /// /// preview public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_NODE_CHILD_OF; } } } /// /// To define the parent for an accessible object. /// /// preview public class ParentOf : IAccessibleRelation { /// /// Gets or sets the target object, which is ParentOf. /// /// preview public AccessibleObject Target { get; set; } /// /// Gets the ParentOf type. /// /// preview public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_NODE_PARENT_OF; } } } /// /// To define the extend for an accessible object. /// /// preview public class Extended : IAccessibleRelation { /// /// Gets or sets the target object, which is Extended. /// /// preview public AccessibleObject Target { get; set; } /// /// Gets the extended type. /// /// preview public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_EXTENDED; } } } /// /// To define the custom reading order. /// /// preview public class FlowsTo : IAccessibleRelation { /// /// Gets or sets the target object, which is FlowsTo. /// /// preview public AccessibleObject Target { get; set; } /// /// Gets the FlowsTo type. /// /// preview public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_FLOWS_TO; } } } /// /// To define the custom reading order. /// /// preview public class FlowsFrom : IAccessibleRelation { /// /// Gets or sets the target object, which is FlowsFrom. /// /// preview public AccessibleObject Target { get; set; } /// /// Gets the FlowsFrom type. /// /// preview public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_FLOWS_FROM; } } } /// /// To define the subwindow for an accessible object. /// /// preview public class SubwindowOf : IAccessibleRelation { /// /// Gets or sets the target object, which is SubwindowOf. /// /// preview public AccessibleObject Target { get; set; } /// /// Gets the SubwindowOf type. /// /// preview public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_SUBWINDOW_OF; } } } /// /// To define the embed for an accessible object. /// /// preview public class Embeds : IAccessibleRelation { /// /// Gets or sets the target object ,which is Embeds. /// /// preview public AccessibleObject Target { get; set; } /// /// Gets the Embeds type. /// /// preview public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_EMBEDS; } } } /// /// To define the embed for an accessible object. /// /// preview public class EmbeddedBy : IAccessibleRelation { /// /// Gets or sets the target object, which is EmbeddedBy. /// /// preview public AccessibleObject Target { get; set; } /// /// Gets the EmbeddedBy type. /// /// preview public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_EMBEDDED_BY; } } } /// /// To define the popup for an accessible object. /// /// preview public class PopupFor : IAccessibleRelation { /// /// Gets or sets the target object, which is PopupFor. /// /// preview public AccessibleObject Target { get; set; } /// /// Gets the PopupFor type. /// /// preview public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_POPUP_FOR; } } } /// /// To define the parent window for an accessible object. /// /// preview public class ParentWindowOf : IAccessibleRelation { /// /// Gets or sets the target object, which is ParentWindowOf. /// /// preview public AccessibleObject Target { get; set; } /// /// Gets the ParentWindowOf type. /// /// preview public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_PARENT_WINDOW_OF; } } } /// /// To define the description for an accessible object. /// /// preview public class DescriptionFor : IAccessibleRelation { /// /// Gets or sets the target object, which is DescriptionFor. /// /// preview public AccessibleObject Target { get; set; } /// /// Gets the DescriptionFor type. /// /// preview public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_DESCRIPTION_FOR; } } } /// /// To define the description for an accessible object. /// /// preview public class DescribedBy : IAccessibleRelation { /// /// Gets or sets the target object, which is DescribedBy. /// /// preview public AccessibleObject Target { get; set; } /// /// Gets the DescribedBy type. /// /// preview public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_DESCRIBED_BY; } } } }