2 * Copyright (C) 2010 Robert Ancell.
3 * Author: Robert Ancell <robert.ancell@canonical.com>
5 * This library is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU Lesser General Public License as published by the Free
7 * Software Foundation; either version 2 or version 3 of the License.
8 * See http://www.gnu.org/copyleft/lgpl.html the full text of the license.
11 #ifndef LIGHTDM_LAYOUT_H_
12 #define LIGHTDM_LAYOUT_H_
14 #include <glib-object.h>
18 #define LIGHTDM_TYPE_LAYOUT (lightdm_layout_get_type())
19 #define LIGHTDM_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIGHTDM_TYPE_LAYOUT, LightDMLayout));
20 #define LIGHTDM_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIGHTDM_TYPE_LAYOUT, LightDMLayoutClass))
21 #define LIGHTDM_IS_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIGHTDM_TYPE_LAYOUT))
22 #define LIGHTDM_IS_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIGHTDM_TYPE_LAYOUT))
23 #define LIGHTDM_LAYOUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIGHTDM_TYPE_LAYOUT, LightDMLayoutClass))
27 GObject parent_instance;
32 GObjectClass parent_class;
35 void (*reserved1) (void);
36 void (*reserved2) (void);
37 void (*reserved3) (void);
38 void (*reserved4) (void);
39 void (*reserved5) (void);
40 void (*reserved6) (void);
43 GType lightdm_layout_get_type (void);
45 GList *lightdm_get_layouts (void);
47 void lightdm_set_layout (LightDMLayout *layout);
49 LightDMLayout *lightdm_get_layout (void);
51 const gchar *lightdm_layout_get_name (LightDMLayout *layout);
53 const gchar *lightdm_layout_get_short_description (LightDMLayout *layout);
55 const gchar *lightdm_layout_get_description (LightDMLayout *layout);
59 #endif /* LIGHTDM_LAYOUT_H_ */