/*
* 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 a interface which defines the relationship between two accessible objects.
///
public interface IAccessibleRelation
{
AccessibleObject Target { get; set; }
int Type { get; }
}
///
/// To define label info for accessible object.
///
public class LabelledBy : IAccessibleRelation
{
///
/// Gets or sets the target object which is LabelledBy.
///
public AccessibleObject Target { get; set; }
///
/// Gets the LabelledBy type.
///
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_LABELLED_BY; }
}
}
///
/// To define label info for accessible object.
///
public class LabelFor : IAccessibleRelation
{
///
/// Gets or sets the target object which is LabelFor.
///
public AccessibleObject Target { get; set; }
///
/// Gets the LabelFor type.
///
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_LABEL_FOR; }
}
}
///
/// To define control relationship for accessible object.
///
public class ControllerFor : IAccessibleRelation
{
///
/// Gets or sets the target object which is ControllerFor.
///
public AccessibleObject Target { get; set; }
///
/// Gets the ControllerFor type.
///
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_CONTROLLER_FOR; }
}
}
///
/// To define control relationship for accessible object.
///
public class ControlledBy : IAccessibleRelation
{
///
/// Gets or sets the target object which is ControlledBy.
///
public AccessibleObject Target { get; set; }
///
/// Gets the ControlledBy type.
///
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_CONTROLLED_BY; }
}
}
///
/// To define member relationship for accessible object.
///
public class MemberOf : IAccessibleRelation
{
///
/// Gets or sets the target object which is MemberOf.
///
public AccessibleObject Target { get; set; }
///
/// Gets the MemberOf type.
///
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_MEMBER_OF; }
}
}
///
/// To define tooltip for accessible object.
///
public class TooltipFor : IAccessibleRelation
{
///
/// Gets or sets the target object which is TooltipFor.
///
public AccessibleObject Target { get; set; }
///
/// Gets the TooltipFor type.
///
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_TOOLTIP_FOR; }
}
}
///
/// To define child for accessible object.
///
public class ChildOf : IAccessibleRelation
{
///
/// Gets or sets the target object which is ChildOf.
///
public AccessibleObject Target { get; set; }
///
/// Gets the ChildOf type.
///
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_NODE_CHILD_OF; }
}
}
///
/// To define parent for accessible object.
///
public class ParentOf : IAccessibleRelation
{
///
/// Gets or sets the target object which is ParentOf.
///
public AccessibleObject Target { get; set; }
///
/// Gets the ParentOf type.
///
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_NODE_PARENT_OF; }
}
}
///
/// To define extend for accessible object.
///
public class Extended : IAccessibleRelation
{
///
/// Gets or sets the target object which is Extended.
///
public AccessibleObject Target { get; set; }
///
/// Gets the Extended type.
///
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_EXTENDED; }
}
}
///
/// To define the custom reading order.
///
public class FlowsTo : IAccessibleRelation
{
///
/// Gets or sets the target object which is FlowsTo.
///
public AccessibleObject Target { get; set; }
///
/// Gets the FlowsTo type.
///
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_FLOWS_TO; }
}
}
///
/// To define the custom reading order.
///
public class FlowsFrom : IAccessibleRelation
{
///
/// Gets or sets the target object which is FlowsFrom.
///
public AccessibleObject Target { get; set; }
///
/// Gets the FlowsFrom type.
///
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_FLOWS_FROM; }
}
}
///
/// To define subwindow for accessible object.
///
public class SubwindowOf : IAccessibleRelation
{
///
/// Gets or sets the target object which is SubwindowOf.
///
public AccessibleObject Target { get; set; }
///
/// Gets the SubwindowOf type.
///
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_SUBWINDOW_OF; }
}
}
///
/// To define embed for accessible object.
///
public class Embeds : IAccessibleRelation
{
///
/// Gets or sets the target object which is Embeds.
///
public AccessibleObject Target { get; set; }
///
/// Gets the Embeds type.
///
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_EMBEDS; }
}
}
///
/// To define embed for accessible object.
///
public class EmbeddedBy : IAccessibleRelation
{
///
/// Gets or sets the target object which is EmbeddedBy.
///
public AccessibleObject Target { get; set; }
///
/// Gets the EmbeddedBy type.
///
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_EMBEDDED_BY; }
}
}
///
/// To define popup for accessible object.
///
public class PopupFor : IAccessibleRelation
{
///
/// Gets or sets the target object which is PopupFor.
///
public AccessibleObject Target { get; set; }
///
/// Gets the PopupFor type.
///
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_POPUP_FOR; }
}
}
///
/// To define parent window for accessible object.
///
public class ParentWindowOf : IAccessibleRelation
{
///
/// Gets or sets the target object which is ParentWindowOf.
///
public AccessibleObject Target { get; set; }
///
/// Gets the ParentWindowOf type.
///
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_PARENT_WINDOW_OF; }
}
}
///
/// To define description for accessible object.
///
public class DescriptionFor : IAccessibleRelation
{
///
/// Gets or sets the target object which is DescriptionFor.
///
public AccessibleObject Target { get; set; }
///
/// Gets the DescriptionFor type.
///
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_DESCRIPTION_FOR; }
}
}
///
/// To define description for accessible object.
///
public class DescribedBy : IAccessibleRelation
{
///
/// Gets or sets the target object which is DescribedBy.
///
public AccessibleObject Target { get; set; }
///
/// Gets the DescribedBy type.
///
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_DESCRIBED_BY; }
}
}
}