ILayoutChildren¶
Namespace: WellFired.Guacamole
Description¶
Layouting is a three step process.
Public Methods¶
UIRect | CalculateValidRectRequest ( IEnumerable< ILayoutable > layoutables, UISize minSize ) |
void | AttemptToFullfillRequests ( ICollection< ILayoutable > children, UIRect availableSpace, UIPadding containerPadding, LayoutOptions horizontalLayout, LayoutOptions verticalLayout ) |
void | Layout ( ICollection< ILayoutable > layoutables, UIRect availableSpace, UIPadding containerPadding ) |
Breakdown¶
UIRect CalculateValidRectRequest ( IEnumerable< ILayoutable > layoutables, UISize minSize )
Parameters
layoutables The things we are going to calculate the size on. minSize The minimum total size that these children can take up.
void AttemptToFullfillRequests ( ICollection< ILayoutable > children, UIRect availableSpace, UIPadding containerPadding, LayoutOptions horizontalLayout, LayoutOptions verticalLayout )
Parameters
children The Children that we will layout. availableSpace The space that is available for these children to be layouted in. containerPadding The parents padding. horizontalLayout verticalLayout
void Layout ( ICollection< ILayoutable > layoutables, UIRect availableSpace, UIPadding containerPadding )
Parameters
layoutables The layoutables that we will layout. availableSpace The space available to these objects. Please be aware that this may have changed since AttemptToFullfillRequests was called. containerPadding The parents padding.