Test if x and y are contained within a tabs region
(self, tab, x, y)
| 1089 | return None |
| 1090 | |
| 1091 | def TabHitTest(self, tab, x, y): |
| 1092 | """ Test if x and y are contained within a tabs region """ |
| 1093 | tabRegion = tab.GetTabRegion() |
| 1094 | tabPos = tab.GetPosition() |
| 1095 | tabPosX, tabPosY = tabPos |
| 1096 | tabRegion.Offset(round(tabPosX), round(tabPosY)) |
| 1097 | |
| 1098 | if tabRegion.Contains(x, y): |
| 1099 | return True |
| 1100 | |
| 1101 | return False |
| 1102 | |
| 1103 | def GetTabAtLeft(self, tab_index): |
| 1104 | return self.tabs[tab_index - 1] if tab_index > 0 else None |
no test coverage detected