Description of MUSHclient world function: world.WindowArc
Name
WindowArc
Type
Method
Summary
Draws an arc in a miniwindow
Prototype
long WindowArc(BSTR WindowName, long Left, long Top, long Right, long Bottom, long x1, long y1, long x2, long y2, long PenColour, long PenStyle, long PenWidth);
This draws an arc from x1,y1 to x2,y2 inside the box (Left,Top,Right,Bottom) with the designated pen.
Note that changes to miniwindows will not become visible until the output window is redrawn. This happens when new (visible) lines arrive from the MUD, or if you call WindowShow, or Redraw.
Parameters:
WindowName - the name of an existing miniwindow.
Left, Top, Right, Bottom - describes the rectangle into which the arc must fit.
x1, y2 - the starting point for the arc - this point does not have to lie exactly on the arc.
x2, y2 - the ending point for the arc - this point does not have to lie exactly on the arc.
You can use the following constants for the pen style:
miniwin.pen_solid = 0
miniwin.pen_dash = 1
miniwin.pen_dot = 2
miniwin.pen_dash_dot = 3
miniwin.pen_dash_dot_dot = 4
miniwin.pen_null = 5
miniwin.pen_inside_frame = 6
-- how lines join (eg. in polygons) (add this to the style)
miniwin.pen_join_round = 0
miniwin.pen_join_bevel = 4096
miniwin.pen_join_miter = 8192
-- how lines end (add this to the style)
miniwin.pen_endcap_round = 0
miniwin.pen_endcap_square = 256
miniwin.pen_endcap_flat = 512
Returns
eNoSuchWindow - no such miniwindow
ePenStyleNotValid - invalid pen style
eOK - completed OK