Reference for the Mosaic class Core::QuadView

Core::QuadView
Point1
Point2
Point3
Point4
HasRectShape()
IsPointInside()
Core::View
Layout
Owner
StackingPriority
AdjustDrawingArea()
ArrangeView()
ChangeViewState()
CursorHitTest()
Draw()
GetClipping()
GetExtent()
GetRoot()
HandleEvent()
MoveView()

The class Core::QuadView provides more specialized base functionality for all view components with the shape of a quad (polygon consisting of 4 corners). It provides some few properties to get and set the coordinates of the quad corners Point1, Point2, Point3 and Point4.

The class Core::QuadView serves as base class for deriving quad components only. It doesn't define any particular behavior nor appearance.

method bool HasRectShape();

The method HasRectShape() evaluates the shape of the quad and returns 'true' if the quad has the shape of a rectangle. Otherwise 'false' is returned.

method bool IsPointInside
(
arg point aPoint
);

The method IsPointInside() verifies whether the specified position aPoint lies within the quad and returns 'true' if this is the case. If aPoint lies outside the quad, the method returns 'false'.

property point Point1 = <0,0>;

The property 'Point1' defines the position of the first corner of the quad in the coordinates of the corresponding Owner.

property point Point2 = <0,0>;

The property 'Point2' defines the position of the second corner of the quad in the coordinates of the corresponding Owner.

property point Point3 = <0,0>;

The property 'Point3' defines the position of the third corner of the quad in the coordinates of the corresponding Owner.

property point Point4 = <0,0>;

The property 'Point4' defines the position of the fourth corner of the quad in the coordinates of the corresponding Owner.