/* CTK - The GIMP Toolkit
 * ctklinkbutton.h - an hyperlink-enabled button
 *
 * Copyright (C) 2005 Emmanuele Bassi <ebassi@gmail.com>
 * All rights reserved.
 *
 * Based on gnome-href code by:
 * 	James Henstridge <james@daa.com.au>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef __CTK_LINK_BUTTON_H__
#define __CTK_LINK_BUTTON_H__

#if !defined (__CTK_H_INSIDE__) && !defined (CTK_COMPILATION)
#error "Only <ctk/ctk.h> can be included directly."
#endif

#include <ctk/ctkbutton.h>

G_BEGIN_DECLS

#define CTK_TYPE_LINK_BUTTON		(ctk_link_button_get_type ())
#define CTK_LINK_BUTTON(obj)		(G_TYPE_CHECK_INSTANCE_CAST ((obj), CTK_TYPE_LINK_BUTTON, CtkLinkButton))
#define CTK_IS_LINK_BUTTON(obj)		(G_TYPE_CHECK_INSTANCE_TYPE ((obj), CTK_TYPE_LINK_BUTTON))
#define CTK_LINK_BUTTON_CLASS(klass)	(G_TYPE_CHECK_CLASS_CAST ((klass), CTK_TYPE_LINK_BUTTON, CtkLinkButtonClass))
#define CTK_IS_LINK_BUTTON_CLASS(klass)	(G_TYPE_CHECK_CLASS_TYPE ((klass), CTK_TYPE_LINK_BUTTON))
#define CTK_LINK_BUTTON_GET_CLASS(obj)	(G_TYPE_INSTANCE_GET_CLASS ((obj), CTK_TYPE_LINK_BUTTON, CtkLinkButtonClass))

typedef struct _CtkLinkButton		CtkLinkButton;
typedef struct _CtkLinkButtonClass	CtkLinkButtonClass;
typedef struct _CtkLinkButtonPrivate	CtkLinkButtonPrivate;

/**
 * CtkLinkButton:
 *
 * The #CtkLinkButton-struct contains only
 * private data and should be accessed using the provided API.
 */
struct _CtkLinkButton
{
  /*< private >*/
  CtkButton parent_instance;

  CtkLinkButtonPrivate *priv;
};

/**
 * CtkLinkButtonClass:
 * @activate_link: class handler for the #CtkLinkButton::activate-link signal
 *
 * The #CtkLinkButtonClass contains only
 * private data.
 */
struct _CtkLinkButtonClass
{
  /*< private >*/
  CtkButtonClass parent_class;

  /*< public >*/
  gboolean (* activate_link) (CtkLinkButton *button);

  /*< private >*/
  /* Padding for future expansion */
  void (*_ctk_padding1) (void);
  void (*_ctk_padding2) (void);
  void (*_ctk_padding3) (void);
  void (*_ctk_padding4) (void);
};

CDK_AVAILABLE_IN_ALL
GType                 ctk_link_button_get_type          (void) G_GNUC_CONST;

CDK_AVAILABLE_IN_ALL
CtkWidget *           ctk_link_button_new               (const gchar   *uri);
CDK_AVAILABLE_IN_ALL
CtkWidget *           ctk_link_button_new_with_label    (const gchar   *uri,
						         const gchar   *label);

CDK_AVAILABLE_IN_ALL
const gchar *         ctk_link_button_get_uri           (CtkLinkButton *link_button);
CDK_AVAILABLE_IN_ALL
void                  ctk_link_button_set_uri           (CtkLinkButton *link_button,
						         const gchar   *uri);

CDK_AVAILABLE_IN_ALL
gboolean              ctk_link_button_get_visited       (CtkLinkButton *link_button);
CDK_AVAILABLE_IN_ALL
void                  ctk_link_button_set_visited       (CtkLinkButton *link_button,
                                                         gboolean       visited);


G_END_DECLS

#endif /* __CTK_LINK_BUTTON_H__ */
