Blame gladeui/glade-property-label.h

Packit 1e8aac
/*
Packit 1e8aac
 * Copyright (C) 2013 Tristan Van Berkom.
Packit 1e8aac
 *
Packit 1e8aac
 * This library is free software; you can redistribute it and/or modify it
Packit 1e8aac
 * under the terms of the GNU Lesser General Public License as
Packit 1e8aac
 * published by the Free Software Foundation; either version 2.1 of
Packit 1e8aac
 * the License, or (at your option) any later version.
Packit 1e8aac
 *
Packit 1e8aac
 * This library is distributed in the hope that it will be useful, but
Packit 1e8aac
 * WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 1e8aac
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 1e8aac
 * Lesser General Public License for more details.
Packit 1e8aac
 *
Packit 1e8aac
 * You should have received a copy of the GNU Lesser General Public 
Packit 1e8aac
 * License along with this program; if not, write to the Free Software
Packit 1e8aac
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Packit 1e8aac
 *
Packit 1e8aac
 * Authors:
Packit 1e8aac
 *   Tristan Van Berkom <tvb@gnome.org>
Packit 1e8aac
 */
Packit 1e8aac
#ifndef __GLADE_PROPERTY_LABEL_H__
Packit 1e8aac
#define __GLADE_PROPERTY_LABEL_H__
Packit 1e8aac
Packit 1e8aac
#include <gtk/gtk.h>
Packit 1e8aac
#include <gladeui/glade-xml-utils.h>
Packit 1e8aac
#include <gladeui/glade-property-class.h>
Packit 1e8aac
#include <gladeui/glade-property.h>
Packit 1e8aac
Packit 1e8aac
G_BEGIN_DECLS
Packit 1e8aac
Packit 1e8aac
#define GLADE_TYPE_PROPERTY_LABEL            (glade_property_label_get_type ())
Packit 1e8aac
#define GLADE_PROPERTY_LABEL(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GLADE_TYPE_PROPERTY_LABEL, GladePropertyLabel))
Packit 1e8aac
#define GLADE_PROPERTY_LABEL_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GLADE_TYPE_PROPERTY_LABEL, GladePropertyLabelClass))
Packit 1e8aac
#define GLADE_IS_PROPERTY_LABEL(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GLADE_TYPE_PROPERTY_LABEL))
Packit 1e8aac
#define GLADE_IS_PROPERTY_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GLADE_TYPE_PROPERTY_LABEL))
Packit 1e8aac
#define GLADE_PROPERTY_LABEL_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GLADE_TYPE_PROPERTY_LABEL, GladePropertyLabelClass))
Packit 1e8aac
Packit 1e8aac
typedef struct _GladePropertyLabel             GladePropertyLabel;
Packit 1e8aac
typedef struct _GladePropertyLabelClass        GladePropertyLabelClass;
Packit 1e8aac
typedef struct _GladePropertyLabelPrivate      GladePropertyLabelPrivate;
Packit 1e8aac
Packit 1e8aac
struct _GladePropertyLabel
Packit 1e8aac
{
Packit 1e8aac
  /*< private >*/
Packit 1e8aac
  GtkEventBox box;
Packit 1e8aac
Packit 1e8aac
  GladePropertyLabelPrivate *priv;
Packit 1e8aac
};
Packit 1e8aac
Packit 1e8aac
struct _GladePropertyLabelClass
Packit 1e8aac
{
Packit 1e8aac
  GtkEventBoxClass parent_class;
Packit 1e8aac
};
Packit 1e8aac
Packit 1e8aac
GType          glade_property_label_get_type          (void) G_GNUC_CONST;
Packit 1e8aac
Packit 1e8aac
GtkWidget     *glade_property_label_new               (void);
Packit 1e8aac
Packit 1e8aac
void           glade_property_label_set_property_name (GladePropertyLabel *label,
Packit 1e8aac
						       const gchar        *property_name);
Packit 1e8aac
const gchar   *glade_property_label_get_property_name (GladePropertyLabel *label);
Packit 1e8aac
void           glade_property_label_set_append_colon  (GladePropertyLabel *label,
Packit 1e8aac
						       gboolean            append_colon);
Packit 1e8aac
gboolean       glade_property_label_get_append_colon  (GladePropertyLabel *label);
Packit 1e8aac
void           glade_property_label_set_packing       (GladePropertyLabel *label,
Packit 1e8aac
						       gboolean            packing);
Packit 1e8aac
gboolean       glade_property_label_get_packing       (GladePropertyLabel *label);
Packit 1e8aac
Packit 1e8aac
void           glade_property_label_set_custom_text   (GladePropertyLabel *label,
Packit 1e8aac
						       const gchar        *custom_text);
Packit 1e8aac
const gchar   *glade_property_label_get_custom_text   (GladePropertyLabel *label);
Packit 1e8aac
void           glade_property_label_set_custom_tooltip(GladePropertyLabel *label,
Packit 1e8aac
						       const gchar        *custom_tooltip);
Packit 1e8aac
const gchar   *glade_property_label_get_custom_tooltip(GladePropertyLabel *label);
Packit 1e8aac
Packit 1e8aac
void           glade_property_label_set_property      (GladePropertyLabel *label,
Packit 1e8aac
						       GladeProperty      *property);
Packit 1e8aac
GladeProperty *glade_property_label_get_property      (GladePropertyLabel *label);
Packit 1e8aac
Packit 1e8aac
G_END_DECLS
Packit 1e8aac
Packit 1e8aac
#endif /* __GLADE_PROPERTY_LABEL_H__ */