typedef struct _Map Map;
-typedef struct
-{
- gint x;
- gint y;
- gint z;
-} ChamplainIntPoint;
-
struct _ChamplainBaseMarkerPrivate
{
gdouble lon;
typedef struct
{
- gint x;
- gint y;
+ gfloat x;
+ gfloat y;
gint width;
gint height;
} ChamplainRectangle;
diff.x = priv->anchor.x - old_anchor.x;
diff.y = priv->anchor.y - old_anchor.y;
- DEBUG("Relocating the viewport by %d, %d", diff.x, diff.y);
+ DEBUG("Relocating the viewport by %f, %f", diff.x, diff.y);
tidy_viewport_set_origin (TIDY_VIEWPORT (priv->viewport),
rect.x - diff.x, rect.y - diff.y, 0);
return;
priv->anchor.y = 0;
priv->anchor_zoom_level = priv->zoom_level;
}
- DEBUG ("New Anchor (%d, %d) for (%d, %d)", priv->anchor.x, priv->anchor.y, x, y);
+ DEBUG ("New Anchor (%f, %f) for (%d, %d)", priv->anchor.x, priv->anchor.y, x, y);
}
/**
TidyFingerScrollPrivate *priv = scroll->priv;
if (clutter_actor_transform_stage_point (actor,
- CLUTTER_UNITS_FROM_DEVICE(event->x),
- CLUTTER_UNITS_FROM_DEVICE(event->y),
+ event->x,
+ event->y,
&x, &y))
{
TidyFingerScrollMotion *motion;
ClutterUnit x, y;
if (clutter_actor_transform_stage_point (actor,
- CLUTTER_UNITS_FROM_DEVICE(event->x),
- CLUTTER_UNITS_FROM_DEVICE(event->y),
+ event->x,
+ event->y,
&x, &y))
{
- ClutterUnit frac, x_origin, y_origin;
+ double frac, x_origin, y_origin;
GTimeVal release_time, motion_time;
TidyAdjustment *hadjust, *vadjust;
glong time_diff;
if ((bevent->button == 1) &&
(clutter_actor_transform_stage_point (actor,
- CLUTTER_UNITS_FROM_DEVICE(bevent->x),
- CLUTTER_UNITS_FROM_DEVICE(bevent->y),
+ bevent->x,
+ bevent->y,
&motion->x, &motion->y)))
{
g_get_current_time (&motion->time);
void
tidy_viewport_set_origin (TidyViewport *viewport,
- gint x,
- gint y,
- gint z)
+ float x,
+ float y,
+ float z)
{
TidyViewportPrivate *priv;
void
tidy_viewport_get_origin (TidyViewport *viewport,
- gint *x,
- gint *y,
- gint *z)
+ float *x,
+ float *y,
+ float *z)
{
TidyViewportPrivate *priv;
ClutterActor * tidy_viewport_new (void);
void tidy_viewport_set_origin (TidyViewport *viewport,
- gint x,
- gint y,
- gint z);
+ float x,
+ float y,
+ float z);
void tidy_viewport_get_origin (TidyViewport *viewport,
gfloat *x,