| |
- builtins.tuple(builtins.object)
-
- CornerScalar
- enum.Enum(builtins.object)
-
- RectangleCorner
class CornerScalar(builtins.tuple) |
|
CornerScalar(from_origin: svgen.cartesian.mutate.Translation, vector: svgen.cartesian.mutate.Translation)
A collection of attributes for a rectangle's corner. |
|
- Method resolution order:
- CornerScalar
- builtins.tuple
- builtins.object
Methods defined here:
- __eq__(self, other) -> bool
- Determine if this corner scalar is equivalent to another.
- __getnewargs__(self)
- Return self as a plain tuple. Used by copy and pickle.
- __hash__(self) -> int
- Get a suitable hash for this corner scalar.
- __repr__(self)
- Return a nicely formatted representation string
- __str__(self) -> str
- Get a suitable string for this corner scalar.
- _asdict(self)
- Return a new dict which maps field names to their values.
- _replace(self, /, **kwds)
- Return a new CornerScalar object replacing specified fields with new values
Class methods defined here:
- _make(iterable) from builtins.type
- Make a new CornerScalar object from a sequence or iterable
Static methods defined here:
- __new__(_cls, from_origin: svgen.cartesian.mutate.Translation, vector: svgen.cartesian.mutate.Translation)
- Create new instance of CornerScalar(from_origin, vector)
Readonly properties defined here:
- horizontal
- Determine if this vector is horizontal.
- vertical
- Determine if this vector is vertical.
Data descriptors defined here:
- from_origin
- Alias for field number 0
- vector
- Alias for field number 1
Data and other attributes defined here:
- __annotations__ = {'from_origin': <class 'svgen.cartesian.mutate.Translation'>, 'vector': <class 'svgen.cartesian.mutate.Translation'>}
- __match_args__ = ('from_origin', 'vector')
- __orig_bases__ = (<function NamedTuple>,)
- _field_defaults = {}
- _fields = ('from_origin', 'vector')
Methods inherited from builtins.tuple:
- __add__(self, value, /)
- Return self+value.
- __contains__(self, key, /)
- Return bool(key in self).
- __ge__(self, value, /)
- Return self>=value.
- __getattribute__(self, name, /)
- Return getattr(self, name).
- __getitem__(self, key, /)
- Return self[key].
- __gt__(self, value, /)
- Return self>value.
- __iter__(self, /)
- Implement iter(self).
- __le__(self, value, /)
- Return self<=value.
- __len__(self, /)
- Return len(self).
- __lt__(self, value, /)
- Return self<value.
- __mul__(self, value, /)
- Return self*value.
- __ne__(self, value, /)
- Return self!=value.
- __rmul__(self, value, /)
- Return value*self.
- count(self, value, /)
- Return number of occurrences of value.
- index(self, value, start=0, stop=9223372036854775807, /)
- Return first index of value.
Raises ValueError if the value is not present.
Class methods inherited from builtins.tuple:
- __class_getitem__(...) from builtins.type
- See PEP 585
|
class RectangleCorner(enum.Enum) |
|
RectangleCorner(*values)
An enumeration of the corners of a rectangle. |
|
- Method resolution order:
- RectangleCorner
- enum.Enum
- builtins.object
Data and other attributes defined here:
- BOTTOM_LEFT = <RectangleCorner.BOTTOM_LEFT: CornerScalar(from_....0, dy=1.0), vector=Translation(dx=1.0, dy=0.0))>
- BOTTOM_RIGHT = <RectangleCorner.BOTTOM_RIGHT: CornerScalar(from...0, dy=1.0), vector=Translation(dx=0.0, dy=-1.0))>
- TOP_LEFT = <RectangleCorner.TOP_LEFT: CornerScalar(from_ori....0, dy=0.0), vector=Translation(dx=0.0, dy=1.0))>
- TOP_RIGHT = <RectangleCorner.TOP_RIGHT: CornerScalar(from_or...0, dy=0.0), vector=Translation(dx=-1.0, dy=0.0))>
Data descriptors inherited from enum.Enum:
- name
- The name of the Enum member.
- value
- The value of the Enum member.
Methods inherited from enum.EnumType:
- __contains__(value) from enum.EnumType
- Return True if `value` is in `cls`.
`value` is in `cls` if:
1) `value` is a member of `cls`, or
2) `value` is the value of one of the `cls`'s members.
- __getitem__(name) from enum.EnumType
- Return the member matching `name`.
- __iter__() from enum.EnumType
- Return members in definition order.
- __len__() from enum.EnumType
- Return the number of members (no aliases)
Readonly properties inherited from enum.EnumType:
- __members__
- Returns a mapping of member name->value.
This mapping lists all enum members, including aliases. Note that this
is a read-only view of the internal mapping.
| |