OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | __init__ (self, offset, size) |
def | __repr__ (self) |
def | from_region (cls, region) |
def | ofs_end (self) |
def | align (self) |
def | extend_left_to (self, window, max_size) |
def | extend_right_to (self, window, max_size) |
Data Fields | |
ofs | |
size | |
Utility type which is used to snap windows towards each other, and to adjust their size
def __init__ | ( | self, | |
offset, | |||
size | |||
) |
def __repr__ | ( | self | ) |
def align | ( | self | ) |
Assures the previous window area is contained in the new one
def extend_left_to | ( | self, | |
window, | |||
max_size | |||
) |
Adjust the offset to start where the given window on our left ends if possible, but don't make yourself larger than max_size. The resize will assure that the new window still contains the old window area
def extend_right_to | ( | self, | |
window, | |||
max_size | |||
) |
Adjust the size to make our window end where the right window begins, but don't get larger than max_size
def from_region | ( | cls, | |
region | |||
) |
:return: new window from a region
def ofs_end | ( | self | ) |
ofs |
size |