3DCoat Python API
The 3DCoat Python API documentation.
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
coat.rect Class Reference

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
 

Constructor & Destructor Documentation

◆ __init__() [1/2]

coat.rect.__init__ (   self)

◆ __init__() [2/2]

coat.rect.__init__ (   self,
  v = rect 
)

Member Function Documentation

◆ __eq__()

bool coat.rect.__eq__ (   self,
  _0 = rect 
)

◆ __imul__() [1/2]

coat.rect.__imul__ (   self,
  R = mat3 
)

◆ __imul__() [2/2]

coat.rect.__imul__ (   self,
  T = mat4 
)

◆ __mul__() [1/2]

rect coat.rect.__mul__ (   self,
  R = mat3 
)

◆ __mul__() [2/2]

rect coat.rect.__mul__ (   self,
  T = mat4 
)

◆ __ne__()

bool coat.rect.__ne__ (   self,
  _0 = rect 
)

◆ AddPoint() [1/2]

bool coat.rect.AddPoint (   self,
  P = vec2 
)

◆ AddPoint() [2/2]

bool coat.rect.AddPoint (   self,
  X = float,
  Y = float 
)

◆ AddRect()

bool coat.rect.AddRect (   self,
  Rc = rect 
)

◆ AlignBottom()

coat.rect.AlignBottom (   self,
  Y = float 
)

◆ AlignBottomCenter() [1/2]

coat.rect.AlignBottomCenter (   self,
  BottomCenter = vec2 
)

◆ AlignBottomCenter() [2/2]

coat.rect.AlignBottomCenter (   self,
  X = float,
  Y = float 
)

◆ AlignBottomLeft() [1/2]

coat.rect.AlignBottomLeft (   self,
  BottomLeft = vec2 
)

◆ AlignBottomLeft() [2/2]

coat.rect.AlignBottomLeft (   self,
  X = float,
  Y = float 
)

◆ AlignBottomRight() [1/2]

coat.rect.AlignBottomRight (   self,
  BottomRight = vec2 
)

◆ AlignBottomRight() [2/2]

coat.rect.AlignBottomRight (   self,
  X = float,
  Y = float 
)

◆ AlignCenterX()

coat.rect.AlignCenterX (   self,
  X = float 
)

◆ AlignCenterY()

coat.rect.AlignCenterY (   self,
  Y = float 
)

◆ AlignInside()

coat.rect.AlignInside (   self,
  Parent = rect 
)

◆ AlignLeft()

coat.rect.AlignLeft (   self,
  X = float 
)

◆ AlignMiddleCenter() [1/2]

coat.rect.AlignMiddleCenter (   self,
  MiddleCenter = vec2 
)

◆ AlignMiddleCenter() [2/2]

coat.rect.AlignMiddleCenter (   self,
  X = float,
  Y = float 
)

◆ AlignMiddleLeft() [1/2]

coat.rect.AlignMiddleLeft (   self,
  MiddleLeft = vec2 
)

◆ AlignMiddleLeft() [2/2]

coat.rect.AlignMiddleLeft (   self,
  X = float,
  Y = float 
)

◆ AlignMiddleRight() [1/2]

coat.rect.AlignMiddleRight (   self,
  MiddleRight = vec2 
)

◆ AlignMiddleRight() [2/2]

coat.rect.AlignMiddleRight (   self,
  X = float,
  Y = float 
)

◆ AlignPoint() [1/3]

coat.rect.AlignPoint (   self,
  Align = int,
  Parent = rect 
)

◆ AlignPoint() [2/3]

coat.rect.AlignPoint (   self,
  Align = int,
  With = vec2 
)

◆ AlignPoint() [3/3]

coat.rect.AlignPoint (   self,
  Align = int,
  X = float,
  Y = float 
)

◆ AlignRight()

coat.rect.AlignRight (   self,
  X = float 
)

◆ AlignTop()

coat.rect.AlignTop (   self,
  Y = float 
)

◆ AlignTopCenter() [1/2]

coat.rect.AlignTopCenter (   self,
  TopCenter = vec2 
)

◆ AlignTopCenter() [2/2]

coat.rect.AlignTopCenter (   self,
  X = float,
  Y = float 
)

◆ AlignTopLeft() [1/2]

coat.rect.AlignTopLeft (   self,
  TopLeft = vec2 
)

◆ AlignTopLeft() [2/2]

coat.rect.AlignTopLeft (   self,
  X = float,
  Y = float 
)

◆ AlignTopRight() [1/2]

coat.rect.AlignTopRight (   self,
  TopRight = vec2 
)

◆ AlignTopRight() [2/2]

coat.rect.AlignTopRight (   self,
  X = float,
  Y = float 
)

◆ Contains() [1/3]

bool coat.rect.Contains (   self,
  P = vec2 
)

◆ Contains() [2/3]

bool coat.rect.Contains (   self,
  Rc = rect 
)

◆ Contains() [3/3]

bool coat.rect.Contains (   self,
  X = float,
  Y = float 
)

◆ Equals()

bool coat.rect.Equals (   _0 = rect,
  _1 = rect,
  Eps = float 
)

◆ GetBottom()

float coat.rect.GetBottom (   self)

◆ GetBottomCenter()

vec2 coat.rect.GetBottomCenter (   self)

◆ GetBottomLeft()

vec2 coat.rect.GetBottomLeft (   self)

◆ GetBottomRight()

vec2 coat.rect.GetBottomRight (   self)

◆ GetCenterX()

float coat.rect.GetCenterX (   self)

◆ GetCenterY()

float coat.rect.GetCenterY (   self)

◆ GetDockingAlign() [1/2]

int coat.rect.GetDockingAlign (   self,
  Child = rect,
  DockingRegion = rect,
  RelPos = vec2 
)

◆ GetDockingAlign() [2/2]

int coat.rect.GetDockingAlign (   self,
  Child = vec2,
  DockingRegion = rect,
  RelPos = vec2 
)

◆ GetDockingRegion() [1/2]

rect coat.rect.GetDockingRegion (   self,
  Child = rect,
  Align = int 
)

◆ GetDockingRegion() [2/2]

rect coat.rect.GetDockingRegion (   self,
  Child = vec2,
  Align = int 
)

◆ GetHeight()

float coat.rect.GetHeight (   self)

◆ GetLeft()

float coat.rect.GetLeft (   self)

◆ GetMiddleCenter()

vec2 coat.rect.GetMiddleCenter (   self)

◆ GetMiddleLeft()

vec2 coat.rect.GetMiddleLeft (   self)

◆ GetMiddleRight()

vec2 coat.rect.GetMiddleRight (   self)

◆ GetPoint()

vec2 coat.rect.GetPoint (   self,
  Align = int 
)

◆ GetRight()

float coat.rect.GetRight (   self)

◆ GetSize()

vec2 coat.rect.GetSize (   self)

◆ GetTop()

float coat.rect.GetTop (   self)

◆ GetTopCenter()

vec2 coat.rect.GetTopCenter (   self)

◆ GetTopLeft()

vec2 coat.rect.GetTopLeft (   self)

◆ GetTopRight()

vec2 coat.rect.GetTopRight (   self)

◆ GetWidth()

float coat.rect.GetWidth (   self)

◆ height()

float coat.rect.height (   self)

◆ Inflate() [1/3]

coat.rect.Inflate (   self,
  Delta = vec2 
)

◆ Inflate() [2/3]

coat.rect.Inflate (   self,
  DeltaX = float,
  DeltaY = float 
)

◆ Inflate() [3/3]

coat.rect.Inflate (   self,
  DeltaXY = float 
)

◆ Inscribe()

rect coat.rect.Inscribe (   What = rect,
  Where = rect 
)

◆ Intersect()

rect coat.rect.Intersect (   l = rect,
  r = rect 
)

◆ IntersectsWith()

bool coat.rect.IntersectsWith (   self,
  Rc = rect 
)

◆ IsEmpty()

bool coat.rect.IsEmpty (   self)

◆ ProjectPoint()

vec2 coat.rect.ProjectPoint (   self,
  _0 = vec2 
)

◆ Round()

coat.rect.Round (   self)

◆ Set() [1/2]

coat.rect.Set (   self,
  Min = vec2,
  Max = vec2 
)

◆ Set() [2/2]

coat.rect.Set (   self,
  MinX = float,
  MinY = float,
  MaxX = float,
  MaxY = float 
)

◆ SetBottom()

coat.rect.SetBottom (   self,
  Bottom = float 
)

◆ SetBottomLeft() [1/2]

coat.rect.SetBottomLeft (   self,
  BottomLeft = vec2 
)

◆ SetBottomLeft() [2/2]

coat.rect.SetBottomLeft (   self,
  X = float,
  Y = float 
)

◆ SetBottomRight() [1/2]

coat.rect.SetBottomRight (   self,
  BottomRight = vec2 
)

◆ SetBottomRight() [2/2]

coat.rect.SetBottomRight (   self,
  X = float,
  Y = float 
)

◆ SetEmpty()

coat.rect.SetEmpty (   self)

◆ SetHeight()

coat.rect.SetHeight (   self,
  HoldPoint = int,
  Height = float 
)

◆ SetLeft()

coat.rect.SetLeft (   self,
  Left = float 
)

◆ SetRight()

coat.rect.SetRight (   self,
  Right = float 
)

◆ SetSize() [1/5]

coat.rect.SetSize (   self,
  HoldPoint = int,
  Side = float 
)

◆ SetSize() [2/5]

coat.rect.SetSize (   self,
  HoldPoint = int,
  Size = vec2 
)

◆ SetSize() [3/5]

coat.rect.SetSize (   self,
  HoldPoint = int,
  Width = float,
  Height = float 
)

◆ SetSize() [4/5]

coat.rect.SetSize (   self,
  Min = vec2,
  Size = vec2 
)

◆ SetSize() [5/5]

coat.rect.SetSize (   self,
  MinX = float,
  MinY = float,
  Width = float,
  Height = float 
)

◆ SetTop()

coat.rect.SetTop (   self,
  Top = float 
)

◆ SetTopLeft() [1/2]

coat.rect.SetTopLeft (   self,
  TopLeft = vec2 
)

◆ SetTopLeft() [2/2]

coat.rect.SetTopLeft (   self,
  X = float,
  Y = float 
)

◆ SetToPoint() [1/2]

coat.rect.SetToPoint (   self,
  P = vec2 
)

◆ SetToPoint() [2/2]

coat.rect.SetToPoint (   self,
  X = float,
  Y = float 
)

◆ SetTopRight() [1/2]

coat.rect.SetTopRight (   self,
  TopRight = vec2 
)

◆ SetTopRight() [2/2]

coat.rect.SetTopRight (   self,
  X = float,
  Y = float 
)

◆ SetWidth()

coat.rect.SetWidth (   self,
  HoldPoint = int,
  Width = float 
)

◆ SetZero()

coat.rect.SetZero (   self)

◆ ToRound()

rect coat.rect.ToRound (   self)

◆ Transform() [1/2]

coat.rect.Transform (   self,
  R = mat3 
)

◆ Transform() [2/2]

coat.rect.Transform (   self,
  T = mat4 
)

◆ Translate() [1/2]

coat.rect.Translate (   self,
  Delta = vec2 
)

◆ Translate() [2/2]

coat.rect.Translate (   self,
  DeltaX = float,
  DeltaY = float 
)

◆ Union()

rect coat.rect.Union (   l = rect,
  r = rect 
)

◆ width()

float coat.rect.width (   self)

◆ x()

float coat.rect.x (   self)

◆ y()

float coat.rect.y (   self)

Member Data Documentation

◆ Empty

rect coat.rect.Empty
static

◆ Unit

rect coat.rect.Unit
static

◆ Zero

rect coat.rect.Zero
static

The documentation for this class was generated from the following file: