Champlain
view release on metacpan or search on metacpan
xs/Champlain.xs view on Meta::CPAN
MICRO_VERSION ()
CODE:
RETVAL = CHAMPLAIN_MICRO_VERSION;
OUTPUT:
RETVAL
void
GET_VERSION_INFO (class)
PPCODE:
EXTEND (SP, 3);
PUSHs (sv_2mortal (newSViv (CHAMPLAIN_MAJOR_VERSION)));
PUSHs (sv_2mortal (newSViv (CHAMPLAIN_MINOR_VERSION)));
PUSHs (sv_2mortal (newSViv (CHAMPLAIN_MICRO_VERSION)));
PERL_UNUSED_VAR (ax);
gboolean
CHECK_VERSION (class, int major, int minor, int micro)
CODE:
xs/ChamplainBoundingBox.xs view on Meta::CPAN
OUTPUT:
RETVAL
void
champlain_bounding_box_get_center (ChamplainBoundingBox *box)
PREINIT:
gdouble lat, lon;
PPCODE:
champlain_bounding_box_get_center(box, &lat, &lon);
EXTEND(SP, 2);
PUSHs(sv_2mortal(newSVnv(lat)));
PUSHs(sv_2mortal(newSVnv(lon)));
xs/ChamplainMapSourceFactory.xs view on Meta::CPAN
champlain_map_source_factory_dup_default (class)
C_ARGS: /* No args */
void
champlain_map_source_factory_dup_list (ChamplainMapSourceFactory *factory)
PREINIT:
GSList *list = NULL;
GSList *item = NULL;
PPCODE:
list = champlain_map_source_factory_dup_list(factory);
for (item = list; item != NULL; item = item->next) {
ChamplainMapSourceDesc *desc = CHAMPLAIN_MAP_SOURCE_DESC(item->data);
XPUSHs(sv_2mortal(newSVChamplainMapSourceDesc(desc)));
}
g_slist_free(list);
xs/ChamplainMemphisTileSource.xs view on Meta::CPAN
void
champlain_memphis_tile_source_set_background_color (ChamplainMemphisTileSource *tile_source, const ClutterColor *color)
void
champlain_memphis_tile_source_get_rule_ids (ChamplainMemphisTileSource *tile_source)
PREINIT:
GList *list = NULL;
GList *item = NULL;
PPCODE:
list = champlain_memphis_tile_source_get_rule_ids(tile_source);
if (!list) {
XSRETURN_EMPTY;
}
for (item = list; item != NULL; item = item->next) {
gchar *id = (gchar *) item->data;
XPUSHs(sv_2mortal(newSVGChar(id)));
}
xs/ChamplainPolygon.xs view on Meta::CPAN
void
champlain_polygon_clear_points (ChamplainPolygon *polygon)
void
champlain_polygon_get_points (ChamplainPolygon *polygon)
PREINIT:
GList *item = NULL;
PPCODE:
item = champlain_polygon_get_points(polygon);
if (!item) {
XSRETURN_EMPTY;
}
for (; item != NULL; item = item->next) {
ChamplainPoint *point = CHAMPLAIN_POINT(item->data);
XPUSHs(sv_2mortal(newSVChamplainPoint(point)));
}
xs/ChamplainSelectionLayer.xs view on Meta::CPAN
ChamplainBaseMarker*
champlain_selection_layer_get_selected (ChamplainSelectionLayer *layer)
void
champlain_selection_layer_get_selected_markers (ChamplainSelectionLayer *layer)
PREINIT:
const GList *item = NULL;
PPCODE:
item = champlain_selection_layer_get_selected_markers(layer);
if (!item) {
XSRETURN_EMPTY;
}
for (; item != NULL; item = item->next) {
ChamplainBaseMarker *marker = CHAMPLAIN_BASE_MARKER(item->data);
XPUSHs(sv_2mortal(newSVChamplainBaseMarker(marker)));
}
xs/ChamplainTile.xs view on Meta::CPAN
const gchar*
champlain_tile_get_etag (ChamplainTile *self)
void
champlain_tile_get_modified_time (ChamplainTile *self)
PREINIT:
const GTimeVal *modified_time = NULL;
PPCODE:
modified_time = champlain_tile_get_modified_time(self);
if (modified_time) {
EXTEND(SP, 2);
PUSHs(sv_2mortal(newSViv(modified_time->tv_sec)));
PUSHs(sv_2mortal(newSViv(modified_time->tv_usec)));
}
else {
EXTEND(SP, 2);
PUSHs(sv_2mortal(&PL_sv_undef));
( run in 2.124 seconds using v1.01-cache-2.11-cpan-71847e10f99 )