vworld/widgets/liqvcells.c File Reference

Output a tree of all of the vcells and their children. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "vcell.h"
#include "vcell_prop.h"
#include "vcell_easyrun.h"
#include "vcell_easypaint.h"
#include "vcell_mk_star.h"
#include "vcell_easyhandler.h"
#include "liqbase.h"

Data Structures

struct  split_r

Functions

split_r * strsplit (char *buf, char *token)
void vcell_printline (vcell *self, int linenum, int ypos, int fonth, liqfont *font, char *color, char *msg)
vcell * vcell_tree_output (vcell *node, int depth, liqfont *font)
vcell * uitoolbar_create (char *key, char *caption,...)
vcell * uitoolitem_create (char *key, char *caption, char *imagefilename, void(*handler)())
vcell * vcell_child_multiinsert (vcell *self,...)
vcell * vcell_child_multiappend (vcell *self,...)
vcell * liqvcells_create ()

Variables

vcell * universe
vcell * mirror


Detailed Description

Output a tree of all of the vcells and their children.

Author:
Zach Habersang, based on liqreader by 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

vcell* liqvcells_create (  ) 

Liqvcells widget constructor.

Returns:
vcell The newly created fullscreen vcell with liqvcell's content

DON'T BUILD THE TREE YET! SHOWN HANDLER BUILDS THE TREE WHEN THIS IS FIRST SHOWN.

split_r * strsplit ( char *  buf,
char *  token 
)

Splitting a string at a given token.

Parameters:
char* The string to split
char* The token to split at
Returns:
split_r The structure with the split strings and count

vcell * uitoolbar_create ( char *  key,
char *  caption,
  ... 
)

Create a horizontal toolbar with many toolitems.

Parameters:
key The name of the toolbar
caption Caption name
... va_args that hold vcells of the toolitems

vcell * uitoolitem_create ( char *  key,
char *  caption,
char *  imagefilename,
void(*)()  handler 
)

Create a tool item that goes on a toolbar.

Parameters:
key The name of the toolitem
caption Caption of the toolitem
imagefilename The background image of the toolitem
handler The handler to run when the toolitem is clicked

vcell * vcell_child_multiappend ( vcell *  self,
  ... 
)

Append a group of cells.

Parameters:
self The parent to insert into
... Va-args, the vcells to insert into parent

vcell * vcell_child_multiinsert ( vcell *  self,
  ... 
)

Insert a group of cells.

Parameters:
self The parent to insert into
... Va-args, the vcells to insert into parent

void vcell_printline ( vcell *  self,
int  linenum,
int  ypos,
int  fonth,
liqfont *  font,
char *  color,
char *  msg 
)

Print a line by creating a vcell that acts as a line of specified height and fullscreen width.

Parameters:
self The content vcell to add a line to
linenum The line number
ypos Y-coordinate that the line will be located at
fonth Height of the font
msg The content to put on that line

vcell * vcell_tree_output ( vcell *  node,
int  depth,
liqfont *  font 
)

Use recursion and a loop to generate a vcell output tree.

Parameters:
self The base universe
depth The depth of the indent
Returns:
vcell* The vcell of the newly created line


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