(C) 1998 AROS - The Amiga Research OS


NAME
#include <graphics/rastport.h>
#include <intuition/intuition.h>
#include <proto/intuition.h>

void DrawBorder (rp , border , leftOffset , topOffset)

LOCATION
In IntuitionBase at offset 18

SYNOPSIS
struct RastPort * rp
struct Border * border
LONG leftOffset
LONG topOffset

FUNCTION
Draws one or more borders in the specified RastPort. Rendering will start at the position which you get when you add the offsets leftOffset and topOffset to the LeftEdge and TopEdge specified in the Border structure. All coordinates are relative to that point.

INPUTS
rp
The RastPort to render into
border
Information what and how to render
leftOffset, topOffset
Initial starting position

RESULT
None.

EXAMPLE
// Draw a house with one stroke
// The drawing starts at the lower left edge
WORD XY[] =
{
    10, -10,
    10,   0,
     0, -10,
    10, -10,
     5, -15,
     0, -10,
     0,   0,
    10,   0,
};
struct Border demo =
{
    100, 100,	// Position
    1, 2,	// Pens
    JAM1,	// Drawmode
    8,		// Number of pairs in XY
    XY, 	// Vector offsets
    NULL	// No next border
};

// Render the house with the bottom left edge at 150, 50
DrawBorder (rp, &demo, 50, -50);
SEE ALSO

NOTES

BUGS

INTERNALS

HISTORY