Commit 4a1a186b authored by claes's avatar claes

Scale added to get_annotation_info, and fixcolor added to GrowRect

parent f190a30f
...@@ -1228,6 +1228,11 @@ int grow_GetObjectAttrInfo( grow_tObject object, char *transtab, ...@@ -1228,6 +1228,11 @@ int grow_GetObjectAttrInfo( grow_tObject object, char *transtab,
attrinfo[i].type = glow_eType_Boolean; attrinfo[i].type = glow_eType_Boolean;
attrinfo[i++].size = sizeof( op->invisible); attrinfo[i++].size = sizeof( op->invisible);
strcpy( attrinfo[i].name, "fixcolor");
attrinfo[i].value_p = &op->fixcolor;
attrinfo[i].type = glow_eType_Boolean;
attrinfo[i++].size = sizeof( op->fixcolor);
strcpy( attrinfo[i].name, "disable_shadow"); strcpy( attrinfo[i].name, "disable_shadow");
attrinfo[i].value_p = &op->disable_shadow; attrinfo[i].value_p = &op->disable_shadow;
attrinfo[i].type = glow_eType_Boolean; attrinfo[i].type = glow_eType_Boolean;
...@@ -4244,9 +4249,10 @@ void grow_SetTrendData( grow_tObject object, double *data[3], int data_curves, i ...@@ -4244,9 +4249,10 @@ void grow_SetTrendData( grow_tObject object, double *data[3], int data_curves, i
} }
int grow_GetObjectAnnotInfo( grow_tObject object, int num, int *text_size, glow_eDrawType *text_drawtype, int grow_GetObjectAnnotInfo( grow_tObject object, int num, int *text_size, glow_eDrawType *text_drawtype,
glow_eDrawType *text_color, glow_eDrawType *bg_color) glow_eDrawType *text_color, glow_eDrawType *bg_color, double *scale)
{ {
return ((GrowNode *)object)->get_annotation_info( num, text_size, text_drawtype, text_color, bg_color); return ((GrowNode *)object)->get_annotation_info( num, text_size, text_drawtype, text_color, bg_color,
scale);
} }
void grow_GetMenuChar( grow_tObject menu, int *t_size, glow_eDrawType *fill_color, glow_eDrawType *t_drawtype, void grow_GetMenuChar( grow_tObject menu, int *t_size, glow_eDrawType *fill_color, glow_eDrawType *t_drawtype,
......
...@@ -2801,10 +2801,11 @@ typedef GlowTraceData glow_sTraceData; ...@@ -2801,10 +2801,11 @@ typedef GlowTraceData glow_sTraceData;
\param text_drawtype Annotation text drawtype. \param text_drawtype Annotation text drawtype.
\param text_color Annotation text color. \param text_color Annotation text color.
\param bg_color Annotation background color. \param bg_color Annotation background color.
\param scale Vertical scale.
\return 0 if annotation doesn't exist, else 1. \return 0 if annotation doesn't exist, else 1.
*/ */
int grow_GetObjectAnnotInfo( grow_tObject object, int num, int *text_size, glow_eDrawType *text_drawtype, int grow_GetObjectAnnotInfo( grow_tObject object, int num, int *text_size, glow_eDrawType *text_drawtype,
glow_eDrawType *text_color, glow_eDrawType *bg_color); glow_eDrawType *text_color, glow_eDrawType *bg_color, double *scale);
//! Get color, textsize and text colors for a menu. //! Get color, textsize and text colors for a menu.
/*! /*!
......
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