3DCoat Python API
The 3DCoat Python API documentation.
|
Public Member Functions | |
__init__ (self) | |
__init__ (self, v=rect) | |
bool | __eq__ (self, _0=rect) |
bool | __ne__ (self, _0=rect) |
bool | Equals (_0=rect, _1=rect, Eps=float) |
Set (self, MinX=float, MinY=float, MaxX=float, MaxY=float) | |
Set (self, Min=vec2, Max=vec2) | |
float | x (self) |
float | y (self) |
float | width (self) |
float | height (self) |
SetLeft (self, Left=float) | |
AlignLeft (self, X=float) | |
SetTop (self, Top=float) | |
AlignTop (self, Y=float) | |
SetRight (self, Right=float) | |
AlignRight (self, X=float) | |
SetBottom (self, Bottom=float) | |
AlignBottom (self, Y=float) | |
AlignInside (self, Parent=rect) | |
vec2 | GetTopLeft (self) |
SetTopLeft (self, X=float, Y=float) | |
SetTopLeft (self, TopLeft=vec2) | |
AlignTopLeft (self, X=float, Y=float) | |
AlignTopLeft (self, TopLeft=vec2) | |
vec2 | GetTopCenter (self) |
AlignTopCenter (self, X=float, Y=float) | |
AlignTopCenter (self, TopCenter=vec2) | |
vec2 | GetTopRight (self) |
SetTopRight (self, X=float, Y=float) | |
SetTopRight (self, TopRight=vec2) | |
AlignTopRight (self, X=float, Y=float) | |
AlignTopRight (self, TopRight=vec2) | |
vec2 | GetMiddleLeft (self) |
AlignMiddleLeft (self, X=float, Y=float) | |
AlignMiddleLeft (self, MiddleLeft=vec2) | |
vec2 | GetMiddleCenter (self) |
AlignMiddleCenter (self, X=float, Y=float) | |
AlignMiddleCenter (self, MiddleCenter=vec2) | |
vec2 | GetMiddleRight (self) |
AlignMiddleRight (self, X=float, Y=float) | |
AlignMiddleRight (self, MiddleRight=vec2) | |
vec2 | GetBottomLeft (self) |
SetBottomLeft (self, X=float, Y=float) | |
SetBottomLeft (self, BottomLeft=vec2) | |
AlignBottomLeft (self, X=float, Y=float) | |
AlignBottomLeft (self, BottomLeft=vec2) | |
vec2 | GetBottomCenter (self) |
AlignBottomCenter (self, X=float, Y=float) | |
AlignBottomCenter (self, BottomCenter=vec2) | |
vec2 | GetBottomRight (self) |
SetBottomRight (self, X=float, Y=float) | |
SetBottomRight (self, BottomRight=vec2) | |
AlignBottomRight (self, X=float, Y=float) | |
AlignBottomRight (self, BottomRight=vec2) | |
vec2 | GetPoint (self, Align=int) |
AlignPoint (self, Align=int, X=float, Y=float) | |
AlignPoint (self, Align=int, With=vec2) | |
AlignPoint (self, Align=int, Parent=rect) | |
int | GetDockingAlign (self, Child=rect, DockingRegion=rect, RelPos=vec2) |
rect | GetDockingRegion (self, Child=rect, Align=int) |
int | GetDockingAlign (self, Child=vec2, DockingRegion=rect, RelPos=vec2) |
rect | GetDockingRegion (self, Child=vec2, Align=int) |
float | GetLeft (self) |
float | GetTop (self) |
float | GetRight (self) |
float | GetBottom (self) |
float | GetWidth (self) |
float | GetHeight (self) |
SetWidth (self, HoldPoint=int, Width=float) | |
SetHeight (self, HoldPoint=int, Height=float) | |
vec2 | GetSize (self) |
SetSize (self, MinX=float, MinY=float, Width=float, Height=float) | |
SetSize (self, Min=vec2, Size=vec2) | |
SetSize (self, HoldPoint=int, Width=float, Height=float) | |
SetSize (self, HoldPoint=int, Size=vec2) | |
SetSize (self, HoldPoint=int, Side=float) | |
float | GetCenterX (self) |
float | GetCenterY (self) |
AlignCenterX (self, X=float) | |
AlignCenterY (self, Y=float) | |
Inflate (self, DeltaXY=float) | |
Inflate (self, DeltaX=float, DeltaY=float) | |
Inflate (self, Delta=vec2) | |
SetToPoint (self, X=float, Y=float) | |
SetToPoint (self, P=vec2) | |
vec2 | ProjectPoint (self, _0=vec2) |
bool | AddPoint (self, X=float, Y=float) |
bool | AddPoint (self, P=vec2) |
bool | AddRect (self, Rc=rect) |
Translate (self, DeltaX=float, DeltaY=float) | |
Translate (self, Delta=vec2) | |
bool | Contains (self, X=float, Y=float) |
bool | Contains (self, P=vec2) |
bool | Contains (self, Rc=rect) |
rect | Union (l=rect, r=rect) |
rect | Intersect (l=rect, r=rect) |
bool | IntersectsWith (self, Rc=rect) |
Transform (self, R=mat3) | |
__imul__ (self, R=mat3) | |
Transform (self, T=mat4) | |
__imul__ (self, T=mat4) | |
rect | __mul__ (self, R=mat3) |
rect | __mul__ (self, T=mat4) |
rect | ToRound (self) |
Round (self) | |
bool | IsEmpty (self) |
SetEmpty (self) | |
SetZero (self) | |
rect | Inscribe (What=rect, Where=rect) |
Static Public Attributes | |
rect | Zero |
rect | Empty |
rect | Unit |
coat.rect.__init__ | ( | self | ) |
coat.rect.__init__ | ( | self, | |
v = rect |
|||
) |
bool coat.rect.__eq__ | ( | self, | |
_0 = rect |
|||
) |
coat.rect.__imul__ | ( | self, | |
R = mat3 |
|||
) |
coat.rect.__imul__ | ( | self, | |
T = mat4 |
|||
) |
bool coat.rect.__ne__ | ( | self, | |
_0 = rect |
|||
) |
bool coat.rect.AddPoint | ( | self, | |
P = vec2 |
|||
) |
bool coat.rect.AddPoint | ( | self, | |
X = float , |
|||
Y = float |
|||
) |
bool coat.rect.AddRect | ( | self, | |
Rc = rect |
|||
) |
coat.rect.AlignBottom | ( | self, | |
Y = float |
|||
) |
coat.rect.AlignBottomCenter | ( | self, | |
BottomCenter = vec2 |
|||
) |
coat.rect.AlignBottomCenter | ( | self, | |
X = float , |
|||
Y = float |
|||
) |
coat.rect.AlignBottomLeft | ( | self, | |
BottomLeft = vec2 |
|||
) |
coat.rect.AlignBottomLeft | ( | self, | |
X = float , |
|||
Y = float |
|||
) |
coat.rect.AlignBottomRight | ( | self, | |
BottomRight = vec2 |
|||
) |
coat.rect.AlignBottomRight | ( | self, | |
X = float , |
|||
Y = float |
|||
) |
coat.rect.AlignCenterX | ( | self, | |
X = float |
|||
) |
coat.rect.AlignCenterY | ( | self, | |
Y = float |
|||
) |
coat.rect.AlignInside | ( | self, | |
Parent = rect |
|||
) |
coat.rect.AlignLeft | ( | self, | |
X = float |
|||
) |
coat.rect.AlignMiddleCenter | ( | self, | |
MiddleCenter = vec2 |
|||
) |
coat.rect.AlignMiddleCenter | ( | self, | |
X = float , |
|||
Y = float |
|||
) |
coat.rect.AlignMiddleLeft | ( | self, | |
MiddleLeft = vec2 |
|||
) |
coat.rect.AlignMiddleLeft | ( | self, | |
X = float , |
|||
Y = float |
|||
) |
coat.rect.AlignMiddleRight | ( | self, | |
MiddleRight = vec2 |
|||
) |
coat.rect.AlignMiddleRight | ( | self, | |
X = float , |
|||
Y = float |
|||
) |
coat.rect.AlignPoint | ( | self, | |
Align = int , |
|||
Parent = rect |
|||
) |
coat.rect.AlignPoint | ( | self, | |
Align = int , |
|||
With = vec2 |
|||
) |
coat.rect.AlignPoint | ( | self, | |
Align = int , |
|||
X = float , |
|||
Y = float |
|||
) |
coat.rect.AlignRight | ( | self, | |
X = float |
|||
) |
coat.rect.AlignTop | ( | self, | |
Y = float |
|||
) |
coat.rect.AlignTopCenter | ( | self, | |
TopCenter = vec2 |
|||
) |
coat.rect.AlignTopCenter | ( | self, | |
X = float , |
|||
Y = float |
|||
) |
coat.rect.AlignTopLeft | ( | self, | |
TopLeft = vec2 |
|||
) |
coat.rect.AlignTopLeft | ( | self, | |
X = float , |
|||
Y = float |
|||
) |
coat.rect.AlignTopRight | ( | self, | |
TopRight = vec2 |
|||
) |
coat.rect.AlignTopRight | ( | self, | |
X = float , |
|||
Y = float |
|||
) |
bool coat.rect.Contains | ( | self, | |
P = vec2 |
|||
) |
bool coat.rect.Contains | ( | self, | |
Rc = rect |
|||
) |
bool coat.rect.Contains | ( | self, | |
X = float , |
|||
Y = float |
|||
) |
float coat.rect.GetBottom | ( | self | ) |
vec2 coat.rect.GetBottomCenter | ( | self | ) |
vec2 coat.rect.GetBottomLeft | ( | self | ) |
vec2 coat.rect.GetBottomRight | ( | self | ) |
float coat.rect.GetCenterX | ( | self | ) |
float coat.rect.GetCenterY | ( | self | ) |
float coat.rect.GetHeight | ( | self | ) |
float coat.rect.GetLeft | ( | self | ) |
vec2 coat.rect.GetMiddleCenter | ( | self | ) |
vec2 coat.rect.GetMiddleLeft | ( | self | ) |
vec2 coat.rect.GetMiddleRight | ( | self | ) |
vec2 coat.rect.GetPoint | ( | self, | |
Align = int |
|||
) |
float coat.rect.GetRight | ( | self | ) |
vec2 coat.rect.GetSize | ( | self | ) |
float coat.rect.GetTop | ( | self | ) |
vec2 coat.rect.GetTopCenter | ( | self | ) |
vec2 coat.rect.GetTopLeft | ( | self | ) |
vec2 coat.rect.GetTopRight | ( | self | ) |
float coat.rect.GetWidth | ( | self | ) |
float coat.rect.height | ( | self | ) |
coat.rect.Inflate | ( | self, | |
Delta = vec2 |
|||
) |
coat.rect.Inflate | ( | self, | |
DeltaX = float , |
|||
DeltaY = float |
|||
) |
coat.rect.Inflate | ( | self, | |
DeltaXY = float |
|||
) |
bool coat.rect.IntersectsWith | ( | self, | |
Rc = rect |
|||
) |
bool coat.rect.IsEmpty | ( | self | ) |
coat.rect.Round | ( | self | ) |
coat.rect.Set | ( | self, | |
MinX = float , |
|||
MinY = float , |
|||
MaxX = float , |
|||
MaxY = float |
|||
) |
coat.rect.SetBottom | ( | self, | |
Bottom = float |
|||
) |
coat.rect.SetBottomLeft | ( | self, | |
BottomLeft = vec2 |
|||
) |
coat.rect.SetBottomLeft | ( | self, | |
X = float , |
|||
Y = float |
|||
) |
coat.rect.SetBottomRight | ( | self, | |
BottomRight = vec2 |
|||
) |
coat.rect.SetBottomRight | ( | self, | |
X = float , |
|||
Y = float |
|||
) |
coat.rect.SetEmpty | ( | self | ) |
coat.rect.SetHeight | ( | self, | |
HoldPoint = int , |
|||
Height = float |
|||
) |
coat.rect.SetLeft | ( | self, | |
Left = float |
|||
) |
coat.rect.SetRight | ( | self, | |
Right = float |
|||
) |
coat.rect.SetSize | ( | self, | |
HoldPoint = int , |
|||
Side = float |
|||
) |
coat.rect.SetSize | ( | self, | |
HoldPoint = int , |
|||
Size = vec2 |
|||
) |
coat.rect.SetSize | ( | self, | |
HoldPoint = int , |
|||
Width = float , |
|||
Height = float |
|||
) |
coat.rect.SetSize | ( | self, | |
MinX = float , |
|||
MinY = float , |
|||
Width = float , |
|||
Height = float |
|||
) |
coat.rect.SetTop | ( | self, | |
Top = float |
|||
) |
coat.rect.SetTopLeft | ( | self, | |
TopLeft = vec2 |
|||
) |
coat.rect.SetTopLeft | ( | self, | |
X = float , |
|||
Y = float |
|||
) |
coat.rect.SetToPoint | ( | self, | |
P = vec2 |
|||
) |
coat.rect.SetToPoint | ( | self, | |
X = float , |
|||
Y = float |
|||
) |
coat.rect.SetTopRight | ( | self, | |
TopRight = vec2 |
|||
) |
coat.rect.SetTopRight | ( | self, | |
X = float , |
|||
Y = float |
|||
) |
coat.rect.SetWidth | ( | self, | |
HoldPoint = int , |
|||
Width = float |
|||
) |
coat.rect.SetZero | ( | self | ) |
rect coat.rect.ToRound | ( | self | ) |
coat.rect.Transform | ( | self, | |
R = mat3 |
|||
) |
coat.rect.Transform | ( | self, | |
T = mat4 |
|||
) |
coat.rect.Translate | ( | self, | |
Delta = vec2 |
|||
) |
coat.rect.Translate | ( | self, | |
DeltaX = float , |
|||
DeltaY = float |
|||
) |
float coat.rect.width | ( | self | ) |
float coat.rect.x | ( | self | ) |
float coat.rect.y | ( | self | ) |
|
static |
|
static |
|
static |