From 24a0242794e5f8c1c22b46b5983b1961319be7f4 Mon Sep 17 00:00:00 2001 From: edgrif <edgrif> Date: Thu, 29 Jul 2010 10:07:39 +0000 Subject: [PATCH] add function to return background item size. --- .../items/zmapWindowContainerGroup.c | 20 +++++++++++++------ .../items/zmapWindowContainerGroup.h | 7 ++++--- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/src/zmapWindow/items/zmapWindowContainerGroup.c b/src/zmapWindow/items/zmapWindowContainerGroup.c index 8e53c163c..fd1342d2f 100755 --- a/src/zmapWindow/items/zmapWindowContainerGroup.c +++ b/src/zmapWindow/items/zmapWindowContainerGroup.c @@ -28,9 +28,9 @@ * * Exported functions: See XXXXXXXXXXXXX.h * HISTORY: - * Last edited: May 24 15:23 2010 (edgrif) + * Last edited: Jul 2 15:31 2010 (edgrif) * Created: Wed Dec 3 10:02:22 2008 (rds) - * CVS info: $Id: zmapWindowContainerGroup.c,v 1.15 2010-06-14 15:40:17 mh17 Exp $ + * CVS info: $Id: zmapWindowContainerGroup.c,v 1.16 2010-07-29 10:07:39 edgrif Exp $ *------------------------------------------------------------------- */ @@ -337,12 +337,12 @@ void zmapWindowContainerRequestReposition(ZMapWindowContainerGroup container) /*! - * \brief Simple, Set the vertical dimension for the background of the container. + * Simple, set/get the vertical dimension for the background of the container. * - * \param container The container that needs its size set. - * \param height The height the container needs to be. + * container The container that needs its size set. + * height The height the container needs to be. * - * \return void + * void */ void zmapWindowContainerGroupBackgroundSize(ZMapWindowContainerGroup container, double height) @@ -352,6 +352,14 @@ void zmapWindowContainerGroupBackgroundSize(ZMapWindowContainerGroup container, return ; } + +double zmapWindowContainerGroupGetBackgroundSize(ZMapWindowContainerGroup container) +{ + return container->height ; +} + + + /*! * \brief A ZMapWindowContainerGroup may need to redraw it's children. * This sets a flag so that it happens diff --git a/src/zmapWindow/items/zmapWindowContainerGroup.h b/src/zmapWindow/items/zmapWindowContainerGroup.h index 229b62ec1..9908a7bb7 100755 --- a/src/zmapWindow/items/zmapWindowContainerGroup.h +++ b/src/zmapWindow/items/zmapWindowContainerGroup.h @@ -28,9 +28,9 @@ * * Exported functions: See XXXXXXXXXXXXX.h * HISTORY: - * Last edited: May 20 11:13 2010 (edgrif) + * Last edited: Jul 2 15:30 2010 (edgrif) * Created: Wed Dec 3 08:21:03 2008 (rds) - * CVS info: $Id: zmapWindowContainerGroup.h,v 1.11 2010-06-14 15:40:17 mh17 Exp $ + * CVS info: $Id: zmapWindowContainerGroup.h,v 1.12 2010-07-29 10:07:39 edgrif Exp $ *------------------------------------------------------------------- */ #ifndef ZMAP_WINDOW_CONTAINER_GROUP_H @@ -153,7 +153,8 @@ ZMapWindowContainerGroup zmapWindowContainerGroupCreateFromFoo(FooCanvasGroup GdkColor *background_border_colour); gboolean zmapWindowContainerSetVisibility(FooCanvasGroup *container_parent, gboolean visible); void zmapWindowContainerRequestReposition(ZMapWindowContainerGroup container); -void zmapWindowContainerGroupBackgroundSize(ZMapWindowContainerGroup container, double height); +void zmapWindowContainerGroupBackgroundSize(ZMapWindowContainerGroup container, double height) ; +double zmapWindowContainerGroupGetBackgroundSize(ZMapWindowContainerGroup container) ; void zmapWindowContainerGroupChildRedrawRequired(ZMapWindowContainerGroup container, gboolean redraw_required); void zmapWindowContainerGroupSetBackgroundColour(ZMapWindowContainerGroup container, -- GitLab