GRectangle class

A simple rectangle shape.

Inheritance
Available Extensions

Constructors

GRectangle(int x, int y, int width, int height, {int? strokeSize, PColor? color, PColor? backgroundColor})
GRectangle.fromJson(Map<String, dynamic> json)
factory

Properties

backgroundColor PColor?
getter/setter pair
className String
no setteroverride
color PColor?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
height int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shapeBoundingBox PRectangle
no setteroverride
shapeName String
no setteroverride
strokeSize int?
getter/setter pair
width int
getter/setter pair
x int
getter/setter pair
y int
getter/setter pair

Methods

containsPoint(Point p) bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(PCanvas pCanvas, [GraphicContext? graphicContext]) → void
override
resolveGraphicContext([GraphicContext? parentContext]) GraphicContext
override
selectShapesAtPoint(Point p, {bool recursive = false}) List<GShape>
inherited
toJson() Map<String, dynamic>
override
toJsonEncoded({bool pretty = false}) String
inherited
toString() String
A string representation of this object.
inherited
translate(Point p) → void
override

Operators

operator ==(Object other) bool
The equality operator.
inherited