Atk::Hyperlink Class Reference

Encapsulates a link or set of links in a hypertext document. More...

Inherits Glib::Object, and Atk::Action.

Collaboration diagram for Atk::Hyperlink:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~Hyperlink ()
AtkHyperlink* gobj ()
 Provides access to the underlying C GObject.
const AtkHyperlink* gobj () const
 Provides access to the underlying C GObject.
AtkHyperlink* gobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
Glib::ustring get_uri (int i) const
 Get a the URI associated with the anchor specified by i of link.
Glib::RefPtr< Atk::Objectget_object (int i)
 Returns the item associated with this hyperlinks nth anchor.
Glib::RefPtr< const Atk::Objectget_object (int i) const
 Returns the item associated with this hyperlinks nth anchor.
int get_end_index () const
 Gets the index with the hypertext document at which this link ends.
int get_start_index () const
 Gets the index with the hypertext document at which this link begins.
bool is_valid () const
 Since the document that a link is associated with may have changed this method returns true if the link is still valid (with respect to the document it references) and false otherwise.
bool is_inline () const
 Indicates whether the link currently displays some or all of its content inline.
int get_n_anchors () const
 Gets the number of anchors associated with this hyperlink.
bool is_selected_link () const
 Determines whether this AtkHyperlink is selected.
Glib::SignalProxy0< void > signal_link_activated ()
Glib::PropertyProxy_ReadOnly
< bool > 
property_selected_link () const
 Specifies whether the AtkHyperlink object is selected.
Glib::PropertyProxy_ReadOnly< int > property_number_of_anchors () const
 The number of anchors associated with the AtkHyperlink object.
Glib::PropertyProxy_ReadOnly< int > property_end_index () const
 The end index of the AtkHyperlink object.
Glib::PropertyProxy_ReadOnly< int > property_start_index () const
 The start index of the AtkHyperlink object.

Protected Member Functions

virtual gchar* get_uri_vfunc (int i) const
virtual Glib::RefPtr< Atk::Objectget_object_vfunc (int i)
virtual int get_end_index_vfunc () const
virtual int get_start_index_vfunc () const
virtual bool is_valid_vfunc () const
virtual int get_n_anchors_vfunc () const
virtual guint link_state_vfunc () const
virtual bool is_selected_link_vfunc () const
virtual void on_link_activated ()

Related Functions

(Note that these are not member functions.)



Glib::RefPtr< Atk::Hyperlinkwrap (AtkHyperlink* object, bool take_copy=false)
 A Glib::wrap() method for this object.

Detailed Description

Encapsulates a link or set of links in a hypertext document.


Constructor & Destructor Documentation

virtual Atk::Hyperlink::~Hyperlink (  )  [virtual]

Member Function Documentation

int Atk::Hyperlink::get_end_index (  )  const

Gets the index with the hypertext document at which this link ends.

Returns:
The index with the hypertext document at which this link ends.
virtual int Atk::Hyperlink::get_end_index_vfunc (  )  const [protected, virtual]
int Atk::Hyperlink::get_n_anchors (  )  const

Gets the number of anchors associated with this hyperlink.

Returns:
The number of anchors associated with this hyperlink.
virtual int Atk::Hyperlink::get_n_anchors_vfunc (  )  const [protected, virtual]
Glib::RefPtr<const Atk::Object> Atk::Hyperlink::get_object ( int  i  )  const

Returns the item associated with this hyperlinks nth anchor.

For instance, the returned Atk::Object will implement Atk::Text if link is a text hyperlink, Atk::Image if link is an image hyperlink etc.

Multiple anchors are primarily used by client-side image maps.

Parameters:
i A (zero-index) integer specifying the desired anchor.
Returns:
An Atk::Object associated with this hyperlinks i-th anchor.
Glib::RefPtr<Atk::Object> Atk::Hyperlink::get_object ( int  i  ) 

Returns the item associated with this hyperlinks nth anchor.

For instance, the returned Atk::Object will implement Atk::Text if link is a text hyperlink, Atk::Image if link is an image hyperlink etc.

Multiple anchors are primarily used by client-side image maps.

Parameters:
i A (zero-index) integer specifying the desired anchor.
Returns:
An Atk::Object associated with this hyperlinks i-th anchor.
virtual Glib::RefPtr<Atk::Object> Atk::Hyperlink::get_object_vfunc ( int  i  )  [protected, virtual]
int Atk::Hyperlink::get_start_index (  )  const

Gets the index with the hypertext document at which this link begins.

Returns:
The index with the hypertext document at which this link begins.
virtual int Atk::Hyperlink::get_start_index_vfunc (  )  const [protected, virtual]
Glib::ustring Atk::Hyperlink::get_uri ( int  i  )  const

Get a the URI associated with the anchor specified by i of link.

Multiple anchors are primarily used by client-side image maps.

Parameters:
i A (zero-index) integer specifying the desired anchor.
Returns:
A string specifying the URI.
virtual gchar* Atk::Hyperlink::get_uri_vfunc ( int  i  )  const [protected, virtual]
const AtkHyperlink* Atk::Hyperlink::gobj (  )  const [inline]

Provides access to the underlying C GObject.

Reimplemented from Atk::Action.

AtkHyperlink* Atk::Hyperlink::gobj (  )  [inline]

Provides access to the underlying C GObject.

Reimplemented from Atk::Action.

AtkHyperlink* Atk::Hyperlink::gobj_copy (  ) 

Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.

bool Atk::Hyperlink::is_inline (  )  const

Indicates whether the link currently displays some or all of its content inline.

Ordinary HTML links will usually return false, but an inline <src> HTML element will return true. a *

Returns:
Whether or not this link displays its content inline.
bool Atk::Hyperlink::is_selected_link (  )  const

Determines whether this AtkHyperlink is selected.

Since gtkmm 1.4:

Deprecated: This method is deprecated since ATK version 1.8. Please use ATK_STATE_SELECTED to indicate when a hyperlink within a Hypertext container is selected.

Returns:
True is the AtkHyperlink is selected, False otherwise.
virtual bool Atk::Hyperlink::is_selected_link_vfunc (  )  const [protected, virtual]
bool Atk::Hyperlink::is_valid (  )  const

Since the document that a link is associated with may have changed this method returns true if the link is still valid (with respect to the document it references) and false otherwise.

Returns:
Whether or not this link is still valid.
virtual bool Atk::Hyperlink::is_valid_vfunc (  )  const [protected, virtual]
virtual guint Atk::Hyperlink::link_state_vfunc (  )  const [protected, virtual]
virtual void Atk::Hyperlink::on_link_activated (  )  [protected, virtual]
Glib::PropertyProxy_ReadOnly<int> Atk::Hyperlink::property_end_index (  )  const

The end index of the AtkHyperlink object.

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.
Glib::PropertyProxy_ReadOnly<int> Atk::Hyperlink::property_number_of_anchors (  )  const

The number of anchors associated with the AtkHyperlink object.

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.
Glib::PropertyProxy_ReadOnly<bool> Atk::Hyperlink::property_selected_link (  )  const

Specifies whether the AtkHyperlink object is selected.

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.
Glib::PropertyProxy_ReadOnly<int> Atk::Hyperlink::property_start_index (  )  const

The start index of the AtkHyperlink object.

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.
Glib::SignalProxy0< void > Atk::Hyperlink::signal_link_activated (  ) 
Prototype:
void on_my_link_activated()

Friends And Related Function Documentation

Glib::RefPtr< Atk::Hyperlink > wrap ( AtkHyperlink *  object,
bool  take_copy = false 
) [related]

A Glib::wrap() method for this object.

Parameters:
object The C instance.
take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns:
A C++ instance that wraps this C instance.

The documentation for this class was generated from the following file:

Generated on Tue May 4 13:21:42 2010 for gtkmm by  doxygen 1.6.1