kigadgets.point¶
Classes¶
Module Contents¶
- class kigadgets.point.Point(x: float, y: float)¶
Bases:
digraph inheritance4e2941d434 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "BaseUnitTuple" [URL="../units/index.html#kigadgets.units.BaseUnitTuple",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Base class to provide mm, inch, mil properties."]; "Point" [URL="#kigadgets.point.Point",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "BaseUnitTuple" -> "Point" [arrowsize=0.5,style="setlinewidth(0.5)"]; }kigadgets.units.BaseUnitTuple- static build_from(t: kigadgets.units.CoordinateLike) Point¶
Return a point object from a tuple.
It can transparently receive either a Point or a tuple, and a Point object will always be returned.
- static native_from(t: kigadgets.units.CoordinateLike) Any¶
Return a native C++/old API object from a tuple/Point.
Generally not to be used, but provided for compatibility when migrating from old API code.
- property native_obj: Any¶
Returns the native wxPoint object Point is wrapping.
- rotate(angle: float, around: kigadgets.units.CoordinateLike = (0, 0)) None¶
Rotate the point.
- Parameters:
angle – rotation angle in degrees.
around – rotation center.