Click or drag to resize

LineObject Class

X#
Create a LineObject object; this type of entity is part of the DrawObject hierarchy, which provides a means of displaying and manipulating various objects.
Inheritance Hierarchy
Object
  VObject
    DrawObject
      LineObject

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.21
Syntax
 CLASS LineObject INHERIT DrawObject
Request Example View Source

The LineObject type exposes the following members.

Constructors
  NameDescription
Public methodLineObject
Construct a LineObject object.
Top
Properties
  NameDescription
Public propertyBoundingBox
A bounding box representing the smallest rectangle that completely encloses this LineObject object.
(Overrides BoundingBox.)
Public propertyOrigin
A point, in canvas coordinates, representing the starting coordinate of the LineObject object on its owner window.
(Overrides Origin.)
Public propertyPen
A pen associated with this LineObject object.
Public propertyRasterOperation
A constant, indicating the raster operation in use for this DrawObject object:
(Inherited from DrawObject.)
Public propertySize
A dimension representing the size of this LineObject object.
(Overrides Size.)
Top
Methods
  NameDescription
Public methodDraw
Draw the LineObject object on a window.
(Overrides Draw.)
Public methodHandle
Return the handle for a DrawObject object.
(Inherited from DrawObject.)
Public methodHitTest
Determine if a given point lies within the bounding box of a DrawObject object.
(Inherited from DrawObject.)
Top
Fields
  NameDescription
Public fieldoCargo
Cargo slot.
(Inherited from VObject.)
Top
Examples
To draw a LineObject object, call Window:Draw() with the LineObject object as its argument. The window does the drawing by asking each object to draw itself—for example:
X#
1METHOD Expose(oEvent) CLASS MyWindow
2LOCAL oLine AS OBJECT
3oLine := LineObject{Point{10,10},Point{20,20}}
4SELF:Draw(oLine)
See Also

Reference