IView

Namespace: WellFired

Description

Properties

bool ValidRectRequest { get; set; }
IView Content { get; set; }
UIRect RectRequest { get; set; }
UIRect ContentRectRequest { get; set; }
string Id { get; set; }
UIPadding Padding { get; set; }
INativeRenderer NativeRenderer { get; set; }
UISize MinSize { get; set; }
UISize MaxSize { get; set; }
LayoutOptions HorizontalLayout { get; set; }
LayoutOptions VerticalLayout { get; set; }

Public Methods

void SetStyleDictionary ( IStyleDictionary styleDictionary )

Breakdown

  • UIPadding Padding { get; set; }

    Description

    Padding between the view RectRequest and its Content.

  • bool ValidRectRequest { get; set; }

    Description

    Flag to determine if RectRequest should be recalculated or not. This is used for optimization purpose to avoid recalculating the size requested by a view if there is no reason for it to have changed.

  • UIRect RectRequest { get; set; }

    Description

    Value used to place a view when rendering it. It is calculated while doing layouting of the different views. When layouting, we first set this value to the size requested by the view, this requested size includes the padding of the view. Then based on the available space we clamp it.

  • UIRect ContentRectRequest { get; set; }

    Description

    Define the space available to the content. It may be different from RectRequest if for example the content of the view is centered, or if the parent view has some padding.

  • string Id { get; set; }

    Description

    This is the id of the view. Most algorithm using it will consider this value to be unique for each views. So it is recommended to assign it with a random and unique fashion (GUID, incremental value), or with an arbitrary value for debugging purpose.

  • IView Content { get; set; }

    Description

    Child view usually rendered inside the bound of the parent view and on top of it.

  • UISize MinSize { get; set; }

    Description

    The minimum size a view can have with padding included.

  • UISize MaxSize { get; set; }

    Description

    The maximum size a view can have with padding included.

  • LayoutOptions HorizontalLayout { get; set; }

    Description

    How the view fills the available space on its horizontal axis

  • LayoutOptions VerticalLayout { get; set; }

    Description

    How the view fills the available space on its vertical axis

  • void SetStyleDictionary ( IStyleDictionary styleDictionary )

    Description

    Applies the styles defined by a dictionary to the view’s content and all its children.

    Parameters

    styleDictionary