Get the parameters of bounding box of the UI element. Returns: :obj:`list` <:obj:`float`>: 4-list (top, right, bottom, left) coordinates related to the edge of screen in NormalizedCoordinate system
(self)
| 824 | |
| 825 | @volatile_attribute |
| 826 | def get_bounds(self): |
| 827 | """ |
| 828 | Get the parameters of bounding box of the UI element. |
| 829 | |
| 830 | Returns: |
| 831 | :obj:`list` <:obj:`float`>: 4-list (top, right, bottom, left) coordinates related to the edge of screen in |
| 832 | NormalizedCoordinate system |
| 833 | """ |
| 834 | |
| 835 | size = self.get_size() |
| 836 | top_left = self.get_position([0, 0]) |
| 837 | |
| 838 | # t, r, b, l |
| 839 | bounds = [top_left[1], top_left[0] + size[0], top_left[1] + size[1], top_left[0]] |
| 840 | return bounds |
| 841 | |
| 842 | def __str__(self): |
| 843 | if six.PY2: |
nothing calls this directly
no test coverage detected