kigadgets.point¶
Module Contents¶
Classes¶
- class kigadgets.point.Point(x, y)¶
Bases:
kigadgets.units.BaseUnitTuple
- property native_obj¶
Returns the native wxPoint object Point is wrapping.
- static build_from(t)¶
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)¶
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.
- rotate(angle, around=(0, 0))¶
Rotate the point.
- Parameters:
angle – rotation angle in degrees.
around – rotation center.
- rotated(angle, around=(0, 0))¶
Generate a new Point.
- Parameters:
angle – rotation angle in degrees.
around – rotation center.
- Returns:
Point