2
* Copyright (C) 2010 Stefan Walter
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License as
6
* published by the Free Software Foundation; either version 2.1 of
7
* the License, or (at your option) any later version.
9
* This program is distributed in the hope that it will be useful, but
10
* WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Lesser General Public License for more details.
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20
#if !defined (__GCR_H_INSIDE__) && !defined (GCR_COMPILATION)
21
#error "Only <gcr/gcr.h> can be included directly."
24
#ifndef __GCR_KEY_RENDERER_H__
25
#define __GCR_KEY_RENDERER_H__
27
#include <glib-object.h>
30
#include "gcr-types.h"
34
#define GCR_TYPE_KEY_RENDERER (gcr_key_renderer_get_type ())
35
#define GCR_KEY_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCR_TYPE_KEY_RENDERER, GcrKeyRenderer))
36
#define GCR_KEY_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCR_TYPE_KEY_RENDERER, GcrKeyRendererClass))
37
#define GCR_IS_KEY_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCR_TYPE_KEY_RENDERER))
38
#define GCR_IS_KEY_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCR_TYPE_KEY_RENDERER))
39
#define GCR_KEY_RENDERER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCR_TYPE_KEY_RENDERER, GcrKeyRendererClass))
41
typedef struct _GcrKeyRenderer GcrKeyRenderer;
42
typedef struct _GcrKeyRendererClass GcrKeyRendererClass;
43
typedef struct _GcrKeyRendererPrivate GcrKeyRendererPrivate;
45
struct _GcrKeyRenderer {
47
GcrKeyRendererPrivate *pv;
50
struct _GcrKeyRendererClass {
51
GObjectClass parent_class;
54
GType gcr_key_renderer_get_type (void);
56
GcrKeyRenderer* gcr_key_renderer_new (const gchar *label,
57
GckAttributes *attrs);
59
void gcr_key_renderer_set_attributes (GcrKeyRenderer *self,
60
GckAttributes *attrs);
62
GckAttributes* gcr_key_renderer_get_attributes (GcrKeyRenderer *self);
66
#endif /* __GCR_KEY_RENDERER_H__ */