C# Class SIL.FieldWorks.SharpViews.LayoutInfo

Class that gathers all the info needed by a box Layout operation that typically needs to be passed down (sometimes with minor alterations) to child boxes.
Inheritance: LayoutTransform
Mostra file Open project: sillsdev/FieldWorks Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
GetRenderer ( int ws ) : IRenderEngine

Get a rendering engine for the specified ws and the current VwGraphics.

LayoutInfo ( LayoutTransform source, int maxWidth, IVwGraphics graphics, IRendererFactory rf ) : System
LayoutInfo ( int dx, int dy, int dpiX, int dpiY, int maxWidth, IVwGraphics graphics, IRendererFactory rf ) : System

This class represents the information needed to lay out part of the display.

WithMaxWidthOffsetBy ( int maxWidth, int dx, int dy ) : LayoutInfo

Answer an otherwise identical LayoutTransform with the specified maximum layout width, adjusted appropriately for a child box of a box with Left = dx, Top = dy. Should be consistent with LayoutTransform.OffsetBy.

Method Details

GetRenderer() public method

Get a rendering engine for the specified ws and the current VwGraphics.
public GetRenderer ( int ws ) : IRenderEngine
ws int
return IRenderEngine

LayoutInfo() public method

public LayoutInfo ( LayoutTransform source, int maxWidth, IVwGraphics graphics, IRendererFactory rf ) : System
source LayoutTransform
maxWidth int
graphics IVwGraphics
rf IRendererFactory
return System

LayoutInfo() public method

This class represents the information needed to lay out part of the display.
public LayoutInfo ( int dx, int dy, int dpiX, int dpiY, int maxWidth, IVwGraphics graphics, IRendererFactory rf ) : System
dx int
dy int
dpiX int
dpiY int
maxWidth int The maximum width available for layout (in units indicated by dpiX).
graphics IVwGraphics
rf IRendererFactory
return System

WithMaxWidthOffsetBy() public method

Answer an otherwise identical LayoutTransform with the specified maximum layout width, adjusted appropriately for a child box of a box with Left = dx, Top = dy. Should be consistent with LayoutTransform.OffsetBy.
public WithMaxWidthOffsetBy ( int maxWidth, int dx, int dy ) : LayoutInfo
maxWidth int
dx int
dy int
return LayoutInfo