Commit 4684e62c authored by claes's avatar claes

Function for double and half scale in ge

parent 77194615
/*
* Proview $Id: glow_growapi.cpp,v 1.29 2007-06-15 11:33:55 claes Exp $
* Proview $Id: glow_growapi.cpp,v 1.30 2007-06-29 09:32:16 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -4398,6 +4398,12 @@ int grow_GetNodeClassAnnotBackground( grow_tNodeClass nodeclass, glow_eDrawType
return ((GlowNodeClass *)nodeclass)->get_annot_background( 0, 0, background);
}
void grow_SetSelectScale( grow_tCtx ctx, double scale_x, double scale_y,
glow_eScaleType type)
{
ctx->set_select_scale( scale_x, scale_y, type);
}
/*@}*/
......
/*
* Proview $Id: glow_growapi.h,v 1.24 2007-05-07 14:35:03 claes Exp $
* Proview $Id: glow_growapi.h,v 1.25 2007-06-29 09:32:16 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -2842,6 +2842,8 @@ extern "C" {
void grow_GetOwner( grow_tCtx ctx, char *owner);
void grow_SetOwner( grow_tCtx ctx, char *owner);
int grow_GetNodeClassAnnotBackground( grow_tNodeClass nodeclass, glow_eDrawType *background);
void grow_SetSelectScale( grow_tCtx ctx, double scale_x, double scale_y,
glow_eScaleType type);
/*@}*/
#if defined __cplusplus
......
/*
* Proview $Id: glow_growctx.cpp,v 1.23 2007-06-15 11:34:43 claes Exp $
* Proview $Id: glow_growctx.cpp,v 1.24 2007-06-29 09:32:16 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -2858,6 +2858,14 @@ void GrowCtx::set_select_textfont( glow_eFont font)
}
}
void GrowCtx::set_select_scale( double scale_x, double scale_y, glow_eScaleType type)
{
for ( int i = 0; i < a_sel.size(); i++) {
((GrowText *)a_sel[i])->store_transform();
((GrowText *)a_sel[i])->set_scale( scale_x, scale_y, 0, 0, type);
}
}
void GrowCtx::set_move_restrictions( glow_eMoveRestriction restriction,
double max_limit, double min_limit, GlowArrayElem *object)
{
......
/*
* Proview $Id: glow_growctx.h,v 1.10 2007-05-07 14:35:03 claes Exp $
* Proview $Id: glow_growctx.h,v 1.11 2007-06-29 09:32:16 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -378,6 +378,8 @@ class GrowCtx : public GlowCtx {
/*! \param font Font. */
void set_select_textfont( glow_eFont font);
void set_select_scale( double scale_x, double scale_y, glow_eScaleType type);
//! Set background color of the window.
/*! \param color Background color. */
void set_background( glow_eDrawType color);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment