vworld/vcell_arrange.c File Reference

This arrange module contains functions for arranging clusters of visual cells. More...

#include "vcell.h"
#include "vcell_prop.h"

Defines

#define ABS(X)   ((X)<0 ? -(X) : (X))
#define SGN(X)   ((X)<0 ? -(1) : (1))

Functions

void vcell_forceinboundparent (vcell *self)
int vcell_child_arrange_autoflow (vcell *self)
int vcell_child_arrange_nooverlap (vcell *self, vcell *currentselection)
int vcell_child_arrange_makegrid (vcell *self, int viscolcount, int visrowcount)
int vcell_child_arrange_easytile (vcell *self)
int vcell_child_arrange_easyrow (vcell *self)
int vcell_child_arrange_easycol (vcell *self)


Detailed Description

This arrange module contains functions for arranging clusters of visual cells.

Author:
Gary Birkett
Copyright (C) 2008 Gary Birkett

LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA


Function Documentation

int vcell_child_arrange_easytile ( vcell *  self  ) 

Determine and set the number of columns and rows. Based on the number of children vcells the parent has. This also set's childrens size and position in grid formation.

See also:
vcell_child_arrange_makegrid()
Parameters:
self The parent cell whose children are to be arranged
Returns:
int Success or Failure

int vcell_child_arrange_makegrid ( vcell *  self,
int  viscolcount,
int  visrowcount 
)

Set the position of the child vcell's in order to form a grid-like formation.

Parameters:
self The parent vcell
viscolcount Column count
visrowcount Row count
Returns:
int Success or Failure


Generated on Mon Apr 13 15:09:28 2009 for libliqbase by  doxygen 1.5.1