D2BS
Public Member Functions | Public Attributes

Line Class Reference

A 2d line. More...

List of all members.

Public Member Functions

 Line (int x=0, int y=0, int x2=0, int y2=0, int color=0, bool automap=false, ClickHandler click=null, HoverHandler hover=null)
 Create a Line hook with the given parameters.
void remove ()
 Remove the Line from the screen and destroy the corresponding object.

Public Attributes

int x
 The first x coordinate of the Line.
int y
 The first y coordinate of the Line.
int x2
 The second x coordinate of the Line.
int y2
 The second y coordinate of the Line.
bool visible
 Whether or not the Line is visible.
int color
 The color of the Line.
int zorder
 The z-order of the Line (what it covers up and is covered by).
ClickHandler click
 The click handler that gets called when the Line is clicked.
HoverHandler hover
 The hover handler that gets called when the Line gets hovered over.

Detailed Description

A 2d line.

Todo:
Verify all the documentation in this class.

Constructor & Destructor Documentation

Line::Line ( int  x = 0,
int  y = 0,
int  x2 = 0,
int  y2 = 0,
int  color = 0,
bool  automap = false,
ClickHandler  click = null,
HoverHandler  hover = null 
)

Create a Line hook with the given parameters.

Parameters:
xThe x coordinate (left) of the Line.
yThe y coordinate (top) of the Line.
x2The xsize (width) of the Line.
y2The ysize (height) of the Line.
colorSee The colors of screen hooks.

See: http://forums.d2botnet.org/viewtopic.php?f=18&t=1000

Parameters:
automapWhether the Line is in automap coordinate space (true) or screen coordinate space (false).
clickThe click handler that gets called when the Line is clicked.
hoverThe hover handler that gets called when the Line gets hovered over.

Member Data Documentation