Module Expr Str ImportFrom alias alias alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Num body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Return Call NameLoad BinOpAdd BinOpDiv Call NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad NameLoad NameLoad BinOpAdd BinOpDiv Call NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad NameLoad NameLoad BinOpSub BinOpDiv Call NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad NameLoad BinOpMult Num NameLoad BinOpSub BinOpDiv Call NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad NameLoad BinOpMult Num NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListComp Call NameLoad BinOpDiv Num AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call NameLoad ListComp Call NameLoad BinOpDiv Num AttributeLoad NameLoad attr comprehension NameStore NameLoad Return TupleLoad SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Index Num SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore Dict Assign TupleStore NameStore NameStore Call NameLoad NameLoad For NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Return NameLoad decorator_list
N/A N/A 
This module provides some routines for performing layout
calculations to organize rectangular windows in a larger canvas
 __future__ absolute_import division print_function collections Counter glue.external six Rectangle N/A object N/A __init__ N/A N/A self x y w h N/A N/A N/A  A rectangle (obviously).

        :param x: Left edge
        :param y: Bottom edge
        :param w: Width
        :param h: Height
         N/A N/A self x x N/A N/A self y y N/A N/A self w w N/A N/A self h h N/A __eq__ N/A N/A self other N/A N/A N/A N/A N/A N/A self x N/A other x N/A N/A self y N/A other y N/A N/A self w N/A other w N/A N/A self h N/A other h N/A N/A N/A six PY3 N/A N/A __hash__ N/A object __hash__ __str__ N/A N/A self N/A N/A N/A N/A repr self N/A __repr__ N/A N/A self N/A N/A N/A N/A Rectangle(%f, %f, %f, %f) N/A N/A self x N/A self y N/A self w N/A self h N/A snap N/A N/A self xstep ystep padding N/A None 0.0 N/A N/A 
        Snap the rectangle onto a grid, with optional padding.

        :param xstep: The number of intervals to split the x=[0, 1] range into.
        :param ystep: The number of intervals to split the y=[0, 1] range into.
        :param padding: Uniform padding to add around the result. This shrinks
                        the result so that the edges + padding line up with the
                        grid.

        :returns: A new Rectangle, obtained by snapping self onto the grid,
                  and applying padding
         N/A N/A ystep None N/A N/A ystep xstep N/A N/A Rectangle N/A N/A N/A round N/A N/A self x xstep xstep padding N/A N/A N/A round N/A N/A self y ystep ystep padding N/A N/A N/A round N/A N/A self w xstep xstep N/A 2 padding N/A N/A N/A round N/A N/A self h ystep ystep N/A 2 padding N/A N/A _snap_size N/A N/A rectangles N/A N/A N/A x N/A Counter N/A N/A round N/A 1 N/A r w N/A r rectangles N/A y N/A Counter N/A N/A round N/A 1 N/A r h N/A r rectangles N/A N/A N/A N/A N/A N/A x most_common N/A 0 N/A 0 N/A N/A N/A N/A y most_common N/A 0 N/A 0 N/A snap_to_grid N/A N/A rectangles padding N/A 0.0 N/A N/A 
    Snap a collection of rectangles onto a grid, in a sensible fashion

    :param rectangles: List of Rectangle instances
    :returns: A dictionary mapping each input rectangle to a snapped position
     N/A result N/A N/A N/A xs ys N/A _snap_size rectangles N/A r rectangles N/A N/A N/A result N/A r N/A N/A r snap xs ys padding padding N/A result N/A