Back to index

lightdm  1.3.2
layout.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2010 Robert Ancell.
00003  * Author: Robert Ancell <robert.ancell@canonical.com>
00004  * 
00005  * This library is free software; you can redistribute it and/or modify it under
00006  * the terms of the GNU Lesser General Public License as published by the Free
00007  * Software Foundation; either version 3 of the License, or (at your option) any
00008  * later version. See http://www.gnu.org/copyleft/lgpl.html the full text of the
00009  * license.
00010  */
00011 
00012 #ifndef _LIGHTDM_LAYOUT_H_
00013 #define _LIGHTDM_LAYOUT_H_
00014 
00015 #include <glib-object.h>
00016 
00017 G_BEGIN_DECLS
00018 
00019 #define LIGHTDM_TYPE_LAYOUT            (lightdm_layout_get_type())
00020 #define LIGHTDM_LAYOUT(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIGHTDM_TYPE_LAYOUT, LightDMLayout));
00021 #define LIGHTDM_LAYOUT_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), LIGHTDM_TYPE_LAYOUT, LightDMLayoutClass))
00022 #define LIGHTDM_IS_LAYOUT(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIGHTDM_TYPE_LAYOUT))
00023 #define LIGHTDM_IS_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIGHTDM_TYPE_LAYOUT))
00024 #define LIGHTDM_LAYOUT_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), LIGHTDM_TYPE_LAYOUT, LightDMLayoutClass))
00025 
00026 typedef struct
00027 {
00028     GObject parent_instance;
00029 } LightDMLayout;
00030 
00031 typedef struct
00032 {
00033     GObjectClass parent_class;
00034 
00035        /* Reserved */
00036        void (*reserved1) (void);
00037        void (*reserved2) (void);
00038        void (*reserved3) (void);
00039        void (*reserved4) (void);
00040        void (*reserved5) (void);
00041        void (*reserved6) (void);
00042 } LightDMLayoutClass;
00043 
00044 GType lightdm_layout_get_type (void);
00045 
00046 GList *lightdm_get_layouts (void);
00047 
00048 void lightdm_set_layout (LightDMLayout *layout);
00049 
00050 LightDMLayout *lightdm_get_layout (void);
00051 
00052 const gchar *lightdm_layout_get_name (LightDMLayout *layout);
00053 
00054 const gchar *lightdm_layout_get_short_description (LightDMLayout *layout);
00055 
00056 const gchar *lightdm_layout_get_description (LightDMLayout *layout);
00057 
00058 G_END_DECLS
00059 
00060 #endif /* _LIGHTDM_LAYOUT_H_ */