2013-09-23 19:18:41 +00:00
|
|
|
/* gswe-planet-data.h: Planetary positions
|
|
|
|
*
|
|
|
|
* Copyright © 2013 Gergely Polonkai
|
|
|
|
*
|
|
|
|
* SWE-GLib is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* SWE-GLib 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 General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this library; if not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
#ifndef __SWE_GLIB_GSWE_PLANET_DATA_H__
|
|
|
|
#define __SWE_GLIB_GSWE_PLANET_DATA_H__
|
|
|
|
|
|
|
|
#include <glib-object.h>
|
|
|
|
|
|
|
|
#include "gswe-types.h"
|
2013-09-23 22:00:58 +00:00
|
|
|
#include "gswe-planet-info.h"
|
2013-09-23 22:42:42 +00:00
|
|
|
#include "gswe-sign-info.h"
|
2013-09-23 19:18:41 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GswePlanetData:
|
|
|
|
*
|
|
|
|
* <structname>GswePlanetData</structname> is an opaque structure whose members
|
|
|
|
* cannot be accessed directly.
|
|
|
|
*
|
|
|
|
* Since: 1.1
|
|
|
|
*/
|
|
|
|
typedef struct _GswePlanetData GswePlanetData;
|
|
|
|
|
|
|
|
GType gswe_planet_data_get_type(void);
|
|
|
|
#define GSWE_TYPE_PLANET_DATA (gswe_planet_data_get_type())
|
|
|
|
|
2013-09-30 20:13:37 +00:00
|
|
|
GswePlanetData *gswe_planet_data_new(void);
|
|
|
|
|
|
|
|
GswePlanetData *gswe_planet_data_ref(GswePlanetData *planet_data);
|
2014-07-08 08:43:54 +00:00
|
|
|
|
2013-09-30 20:13:37 +00:00
|
|
|
void gswe_planet_data_unref(GswePlanetData *planet_data);
|
|
|
|
|
2014-07-08 08:43:54 +00:00
|
|
|
void gswe_planet_data_set_planet(
|
|
|
|
GswePlanetData *planet_data,
|
|
|
|
GswePlanet planet,
|
|
|
|
GError **err);
|
|
|
|
|
2013-09-23 19:18:41 +00:00
|
|
|
GswePlanet gswe_planet_data_get_planet(GswePlanetData *planet_data);
|
2013-09-30 20:13:37 +00:00
|
|
|
|
2014-07-08 08:43:54 +00:00
|
|
|
void gswe_planet_data_set_planet_info(
|
|
|
|
GswePlanetData *planet_data,
|
|
|
|
GswePlanetInfo *planet_info);
|
|
|
|
|
2013-09-23 19:18:41 +00:00
|
|
|
GswePlanetInfo *gswe_planet_data_get_planet_info(GswePlanetData *planet_data);
|
2013-09-30 20:13:37 +00:00
|
|
|
|
2013-09-23 19:18:41 +00:00
|
|
|
gdouble gswe_planet_data_get_position(GswePlanetData *planet_data);
|
2014-07-08 08:43:54 +00:00
|
|
|
|
2013-09-23 19:18:41 +00:00
|
|
|
gboolean gswe_planet_data_get_retrograde(GswePlanetData *planet_data);
|
2014-07-08 08:43:54 +00:00
|
|
|
|
2013-09-30 20:13:37 +00:00
|
|
|
guint gswe_planet_data_get_house(GswePlanetData *planet_data);
|
2014-07-08 08:43:54 +00:00
|
|
|
|
2013-09-30 20:13:37 +00:00
|
|
|
GsweZodiac gswe_planet_data_get_sign(GswePlanetData *planet_data);
|
2014-07-08 08:43:54 +00:00
|
|
|
|
2013-09-30 20:13:37 +00:00
|
|
|
GsweSignInfo *gswe_planet_data_get_sign_info(GswePlanetData *planet_data);
|
2013-09-23 19:18:41 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __SWE_GLIB_GSWE_PLANET_DATA_H__ */
|
|
|
|
|