#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) |
Copyright (C) 2008 Gary Birkett
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
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.
self | The parent cell whose children are to be arranged |
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.
self | The parent vcell | |
viscolcount | Column count | |
visrowcount | Row count |