Class LayoutPreset
A layout preset.
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class LayoutPreset : Dynamic
Constructors
LayoutPreset()
Initializes a new instance of the Layout
Declaration
public LayoutPreset()
Properties
Alignment
Gets or sets the alignment of the layout.
Defaults to Bottom
Declaration
public virtual LayoutAlignment Alignment { get; set; }
Property Value
Type | Description |
---|---|
Layout |
BlockHeight
Gets or sets the height of block elements in pixels.
Overrides Block
Declaration
public int BlockHeight { get; set; }
Property Value
Type | Description |
---|---|
System. |
BlockHeightPercent
Gets or sets the height of block elements as a percent
of the container height between 0.0 and 1.0.
Overrides Block
Declaration
public double BlockHeightPercent { get; set; }
Property Value
Type | Description |
---|---|
System. |
BlockMarginX
Gets or sets the X-margin between block elements and the layout
edge in pixels.
Overrides Block
Declaration
public int BlockMarginX { get; set; }
Property Value
Type | Description |
---|---|
System. |
BlockMarginXPercent
Gets or sets the X-margin between block elements and the layout
edge as a percent of the container width between 0.0 and 1.0.
Overrides Block
Declaration
public double BlockMarginXPercent { get; set; }
Property Value
Type | Description |
---|---|
System. |
BlockMarginY
Gets or sets the Y-margin between block elements and the layout
edge in pixels.
Overrides Block
Declaration
public int BlockMarginY { get; set; }
Property Value
Type | Description |
---|---|
System. |
BlockMarginYPercent
Gets or sets the Y-margin between block elements and the layout
edge as a percent of the container height between 0.0 and 1.0.
Overrides Block
Declaration
public double BlockMarginYPercent { get; set; }
Property Value
Type | Description |
---|---|
System. |
BlockWidth
Gets or sets the width of block elements in pixels.
Overrides Block
Declaration
public int BlockWidth { get; set; }
Property Value
Type | Description |
---|---|
System. |
BlockWidthPercent
Gets or sets the width of block elements as a percent
of the container width between 0.0 and 1.0.
Overrides Block
Declaration
public double BlockWidthPercent { get; set; }
Property Value
Type | Description |
---|---|
System. |
Direction
Gets or sets the direction of the layout flow. Defaults to Horizontal.
Declaration
public virtual LayoutDirection Direction { get; set; }
Property Value
Type | Description |
---|---|
Layout |
Facetime
Gets a Facetime-style layout preset.
Declaration
public static LayoutPreset Facetime { get; }
Property Value
Type | Description |
---|---|
Layout |
FloatHeight
Gets or sets the height of floating elements in pixels.
Overrides Float
Declaration
public int FloatHeight { get; set; }
Property Value
Type | Description |
---|---|
System. |
FloatHeightPercent
Gets or sets the height of floating elements as a percent
of the container height between 0.0 and 1.0.
Overrides Float
Declaration
public double FloatHeightPercent { get; set; }
Property Value
Type | Description |
---|---|
System. |
FloatMarginX
Gets or sets the X-margin between floating elements and the layout
edge in pixels.
Overrides Float
Declaration
public int FloatMarginX { get; set; }
Property Value
Type | Description |
---|---|
System. |
FloatMarginXPercent
Gets or sets the X-margin between floating elements and the layout
edge as a percent of the container width between 0.0 and 1.0.
Overrides Float
Declaration
public double FloatMarginXPercent { get; set; }
Property Value
Type | Description |
---|---|
System. |
FloatMarginY
Gets or sets the Y-margin between floating elements and the layout
edge in pixels.
Overrides Float
Declaration
public int FloatMarginY { get; set; }
Property Value
Type | Description |
---|---|
System. |
FloatMarginYPercent
Gets or sets the Y-margin between floating elements and the layout
edge as a percent of the container height between 0.0 and 1.0.
Overrides Float
Declaration
public double FloatMarginYPercent { get; set; }
Property Value
Type | Description |
---|---|
System. |
FloatWidth
Gets or sets the width of floating elements in pixels.
Overrides Float
Declaration
public int FloatWidth { get; set; }
Property Value
Type | Description |
---|---|
System. |
FloatWidthPercent
Gets or sets the width of floating elements as a percent
of the container width between 0.0 and 1.0.
Overrides Float
Declaration
public double FloatWidthPercent { get; set; }
Property Value
Type | Description |
---|---|
System. |
GoogleHangouts
Gets a Google Hangouts-style layout preset. Note that this will present differently on mobile devices.
Declaration
public static LayoutPreset GoogleHangouts { get; }
Property Value
Type | Description |
---|---|
Layout |
InlineMargin
Gets or sets the size of the margin in pixels to use between inline elements.
Declaration
public int InlineMargin { get; set; }
Property Value
Type | Description |
---|---|
System. |
Mode
Gets or sets the mode used by the layout engine.
Defaults to Float
Declaration
public virtual LayoutMode Mode { get; set; }
Property Value
Type | Description |
---|---|
Layout |
Skype
Gets a Skype-style layout preset. Note that this will present differently on mobile devices.
Declaration
public static LayoutPreset Skype { get; }
Property Value
Type | Description |
---|---|
Layout |
Methods
ApplyPreset(LayoutPreset)
Applies a preset.
Declaration
public void ApplyPreset(LayoutPreset preset)
Parameters
Type | Name | Description |
---|---|---|
Layout |
preset | The preset to apply. |
CalculateLayout(Int32, Int32, Boolean, Int32, LayoutOrigin, Size, Size[])
Gets a video frame layout.
Declaration
public Layout CalculateLayout(int layoutWidth, int layoutHeight, bool local, int remoteCount, LayoutOrigin origin, Size localVideoSize, Size[] remoteVideoSizes)
Parameters
Type | Name | Description |
---|---|---|
System. |
layoutWidth | The total width of the layout. |
System. |
layoutHeight | The total height of the layout. |
System. |
local | Whether a local frame is needed. |
System. |
remoteCount | The number of remote frames. |
Layout |
origin | The layout origin. |
Size | localVideoSize | The local video size. |
Size[] | remoteVideoSizes | The remote video sizes. |
Returns
Type | Description |
---|---|
Layout | The video frame layout. |
CalculateLayout(Int32, Int32, Int32, LayoutOrigin)
Gets a video frame layout.
Declaration
public Layout CalculateLayout(int layoutWidth, int layoutHeight, int remoteCount, LayoutOrigin origin)
Parameters
Type | Name | Description |
---|---|---|
System. |
layoutWidth | The total width of the layout. |
System. |
layoutHeight | The total height of the layout. |
System. |
remoteCount | The number of remote frames. |
Layout |
origin | The layout origin. |
Returns
Type | Description |
---|---|
Layout | The video frame layout. |
CopyToPreset(LayoutPreset)
Copies this preset's properties to another preset.
Declaration
public void CopyToPreset(LayoutPreset preset)
Parameters
Type | Name | Description |
---|---|---|
Layout |
preset | The target preset. |