tbapi.api.interfaces.ipoint
1from __future__ import annotations 2from typing import TYPE_CHECKING 3from tbapi.common.decorators import tb_interface 4from tbapi.common.converters import to_python_datetime, to_net_datetime 5from datetime import datetime 6from Tickblaze.Scripts.Api.Interfaces import IPoint as _IPoint 7from typing import Any, overload 8from abc import ABC, abstractmethod 9 10@tb_interface(_IPoint) 11class IPoint(): 12 """Defines properties for a point with X and Y coordinates.""" 13 14 @property 15 def x(self) -> float: 16 """The X coordinate of the point.""" 17 val = self._value.X 18 return val 19 @x.setter 20 def x(self, val: float): 21 tmp = self._value 22 tmp.X = val 23 self._value = tmp 24 @property 25 def y(self) -> float: 26 """The Y coordinate of the point.""" 27 val = self._value.Y 28 return val 29 @y.setter 30 def y(self, val: float): 31 tmp = self._value 32 tmp.Y = val 33 self._value = tmp
@tb_interface(_IPoint)
class
IPoint:
16@tb_interface(_IPoint) 17class IPoint(): 18 """Defines properties for a point with X and Y coordinates.""" 19 20 @property 21 def x(self) -> float: 22 """The X coordinate of the point.""" 23 val = self._value.X 24 return val 25 @x.setter 26 def x(self, val: float): 27 tmp = self._value 28 tmp.X = val 29 self._value = tmp 30 @property 31 def y(self) -> float: 32 """The Y coordinate of the point.""" 33 val = self._value.Y 34 return val 35 @y.setter 36 def y(self, val: float): 37 tmp = self._value 38 tmp.Y = val 39 self._value = tmp
Defines properties for a point with X and Y coordinates.