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