|
Eidolon
|
Inherits object.

Public Member Functions | |
| def | __init__ (self, x, y, w, h, text, parent) |
| def | pos (self) |
| def | isClicked (self, x, y) |
| def | draw (self, p) |
Public Attributes | |
| x | |
| y | |
| w | |
| h | |
| text | |
| parent | |
A simple class implementing a small button drawn as a rectangle with a text label in the center.
| def __init__ | ( | self, | |
| x, | |||
| y, | |||
| w, | |||
| h, | |||
| text, | |||
| parent | |||
| ) |
| def draw | ( | self, | |
| p | |||
| ) |

| def isClicked | ( | self, | |
| x, | |||
| y | |||
| ) |

| def pos | ( | self | ) |

| h |
| parent |
| text |
| w |
| x |
| y |
1.8.13