other-licenses/atk-1.0/atk/atkhyperlink.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/other-licenses/atk-1.0/atk/atkhyperlink.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,106 @@
     1.4 +/* ATK -  Accessibility Toolkit
     1.5 + * Copyright 2001 Sun Microsystems Inc.
     1.6 + *
     1.7 + * This library is free software; you can redistribute it and/or
     1.8 + * modify it under the terms of the GNU Library General Public
     1.9 + * License as published by the Free Software Foundation; either
    1.10 + * version 2 of the License, or (at your option) any later version.
    1.11 + *
    1.12 + * This library is distributed in the hope that it will be useful,
    1.13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.15 + * Library General Public License for more details.
    1.16 + *
    1.17 + * You should have received a copy of the GNU Library General Public
    1.18 + * License along with this library; if not, write to the
    1.19 + * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    1.20 + * Boston, MA 02111-1307, USA.
    1.21 + */
    1.22 +
    1.23 +#ifndef __ATK_HYPERLINK_H__
    1.24 +#define __ATK_HYPERLINK_H__
    1.25 +
    1.26 +#ifdef __cplusplus
    1.27 +extern "C" {
    1.28 +#endif /* __cplusplus */
    1.29 +
    1.30 +#include <atk/atkaction.h>
    1.31 +
    1.32 +/*
    1.33 + * AtkHyperlink encapsulates a link or set of links in a hypertext document.
    1.34 + *
    1.35 + * It implements the AtkAction interface.
    1.36 + */
    1.37 +
    1.38 +/**
    1.39 + *AtkHyperlinkStateFlags
    1.40 + *@ATK_HYPERLINK_IS_INLINE: Link is inline
    1.41 + *
    1.42 + *Describes the type of link
    1.43 + **/ 
    1.44 +typedef enum 
    1.45 +{
    1.46 +  ATK_HYPERLINK_IS_INLINE = 1 << 0
    1.47 +} AtkHyperlinkStateFlags;
    1.48 +
    1.49 +#define ATK_TYPE_HYPERLINK                        (atk_hyperlink_get_type ())
    1.50 +#define ATK_HYPERLINK(obj)                        (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_HYPERLINK, AtkHyperlink))
    1.51 +#define ATK_HYPERLINK_CLASS(klass)                (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_HYPERLINK, AtkHyperlinkClass))
    1.52 +#define ATK_IS_HYPERLINK(obj)                     (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_HYPERLINK))
    1.53 +#define ATK_IS_HYPERLINK_CLASS(klass)             (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_HYPERLINK))
    1.54 +#define ATK_HYPERLINK_GET_CLASS(obj)              (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_HYPERLINK, AtkHyperlinkClass))
    1.55 +
    1.56 +typedef struct _AtkHyperlink                      AtkHyperlink;
    1.57 +typedef struct _AtkHyperlinkClass                 AtkHyperlinkClass;
    1.58 +
    1.59 +struct _AtkHyperlink
    1.60 +{
    1.61 +  GObject parent;
    1.62 +};
    1.63 +
    1.64 +struct _AtkHyperlinkClass
    1.65 +{
    1.66 +  GObjectClass parent;
    1.67 +
    1.68 +  gchar*           (* get_uri)             (AtkHyperlink     *link_,
    1.69 +                                            gint             i);
    1.70 +  AtkObject*       (* get_object)          (AtkHyperlink     *link_,
    1.71 +                                            gint             i);
    1.72 +  gint             (* get_end_index)       (AtkHyperlink     *link_);
    1.73 +  gint             (* get_start_index)     (AtkHyperlink     *link_);
    1.74 +  gboolean         (* is_valid)            (AtkHyperlink     *link_);
    1.75 +  gint	           (* get_n_anchors)	   (AtkHyperlink     *link_);
    1.76 +  guint	           (* link_state)	   (AtkHyperlink     *link_);
    1.77 +  gboolean         (* is_selected_link)    (AtkHyperlink     *link_);
    1.78 +
    1.79 +  /* Signals */
    1.80 +  void             ( *link_activated)      (AtkHyperlink     *link_);
    1.81 +  AtkFunction      pad1;
    1.82 +};
    1.83 +
    1.84 +GType            atk_hyperlink_get_type             (void);
    1.85 +
    1.86 +gchar*           atk_hyperlink_get_uri              (AtkHyperlink     *link_,
    1.87 +                                                     gint             i);
    1.88 +
    1.89 +AtkObject*       atk_hyperlink_get_object           (AtkHyperlink     *link_,
    1.90 +                                                     gint             i);
    1.91 +
    1.92 +gint             atk_hyperlink_get_end_index        (AtkHyperlink     *link_);
    1.93 +
    1.94 +gint             atk_hyperlink_get_start_index      (AtkHyperlink     *link_);
    1.95 +
    1.96 +gboolean         atk_hyperlink_is_valid             (AtkHyperlink     *link_);
    1.97 +
    1.98 +gboolean         atk_hyperlink_is_inline             (AtkHyperlink     *link_);
    1.99 +
   1.100 +gint		 atk_hyperlink_get_n_anchors        (AtkHyperlink     *link_);
   1.101 +gboolean         atk_hyperlink_is_selected_link     (AtkHyperlink     *link_);
   1.102 +
   1.103 +
   1.104 +#ifdef __cplusplus
   1.105 +}
   1.106 +#endif /* __cplusplus */
   1.107 +
   1.108 +
   1.109 +#endif /* __ATK_HYPERLINK_H__ */

mercurial