Ejemplo n.º 1
0
/* Note:
 * This is just a sample piece of code that shows how to use some structs -
 * it may not even run.
 */


#include <geos.h>

static const graphicStr myString = {
	MOVEPENTO (0,0),
	LINETO(100,100),
	RECTANGLETO(50,50),
	NEWPATTERN(3),
	FRAME_RECTO(50,50),
	PEN_X_DELTA(10),
	PEN_Y_DELTA(10),
	PEN_XY_DELTA(10,10),
	GSTR_END
	};

int main (void)
{

    GraphicsString(&myString);
}

Ejemplo n.º 2
0
/*
    This is an example program for GEOS.
    It reads GEOS serial number and prints it on the screen.

    Maciej 'YTM/Elysium' Witkowiak <*****@*****.**>
    05.03.2004
*/


#include <stdlib.h>
#include <geos.h>
#include <conio.h>

const graphicStr Table = {
    NEWPATTERN(0), MOVEPENTO(0, 0), RECTANGLETO(320, 199), GSTR_END
};

void Exit(void)
{
    exit(0);
}

void Menu = {
    (char)0, (char)14, (int)0, (int)28, (char)(HORIZONTAL|1),
    CBOLDON "quit", (char)MENU_ACTION, &Exit
};

int main(void)
{
    dispBufferOn = ST_WR_FORE;