gdouble y,
gboolean checkpoint)
{
- gdouble dx, dy;
-
gl_debug (DEBUG_LABEL, "START");
g_return_if_fail (object && GL_IS_LABEL_OBJECT (object));
gl_label_checkpoint (object->priv->parent, _("Move"));
}
- dx = x - object->priv->x;
- dy = y - object->priv->y;
-
object->priv->x = x;
object->priv->y = y;
}
+/****************************************************************************/
+/* Set vertical text alignment for all text contained in object. */
+/****************************************************************************/
+void
+gl_label_object_set_text_valignment (glLabelObject *object,
+ glValignment text_valignment,
+ gboolean checkpoint)
+{
+ gl_debug (DEBUG_LABEL, "START");
+
+ g_return_if_fail (object && GL_IS_LABEL_OBJECT (object));
+
+ if ( GL_LABEL_OBJECT_GET_CLASS(object)->set_text_valignment != NULL )
+ {
+ /* We have an object specific method, use it */
+ GL_LABEL_OBJECT_GET_CLASS(object)->set_text_valignment (object, text_valignment, checkpoint);
+ }
+
+ gl_debug (DEBUG_LABEL, "END");
+}
+
+
/****************************************************************************/
/* Set text line spacing for all text contained in object. */
/****************************************************************************/
}
+/****************************************************************************/
+/* Get text alignment for all text contained in object. */
+/****************************************************************************/
+glValignment
+gl_label_object_get_text_valignment (glLabelObject *object)
+{
+ glValignment ret = GL_VALIGN_TOP;
+
+ gl_debug (DEBUG_LABEL, "START");
+
+ g_return_val_if_fail (object && GL_IS_LABEL_OBJECT (object), GL_VALIGN_TOP);
+
+ if ( GL_LABEL_OBJECT_GET_CLASS(object)->get_text_valignment != NULL )
+ {
+ /* We have an object specific method, use it */
+ ret = GL_LABEL_OBJECT_GET_CLASS(object)->get_text_valignment (object);
+ }
+
+ gl_debug (DEBUG_LABEL, "END");
+
+ return ret;
+}
+
+
/****************************************************************************/
/* Get text line spacing for all text contained in object. */
/****************************************************************************/
{
return GL_LABEL_OBJECT_HANDLE_P2;
}
-
+
/* P1 */
- create_handle_path (cr, object, 0, h);
+ create_handle_path (cr, object, 0, 0);
if (cairo_in_fill (cr, x, y))
{
return GL_LABEL_OBJECT_HANDLE_P1;