Alignment 構造体
矩形内の位置を中心からの正規化された相対座標で表す不変値です。
名前空間: FloatSoda.Geometrics
アセンブリ: FloatSoda.dll
public readonly record struct Alignment : IEquatable<Alignment>実装するインターフェイス
Section titled “実装するインターフェイス”継承したメンバー
Section titled “継承したメンバー”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
コンストラクター
Section titled “コンストラクター”Alignment(float, float)
Section titled “Alignment(float, float)”矩形内の位置を中心からの正規化された相対座標で表す不変値です。
public Alignment(float X = 0, float Y = 0)パラメーター
Section titled “パラメーター”X float
水平方向の相対位置。-1は左端、0は中央、1は右端です。既定値は0です。
Y float
垂直方向の相対位置。-1は上端、0は中央、1は下端です。既定値は0です。
Offset
BottomCenter
Section titled “BottomCenter”下端中央を表す配置値を取得します。
public static readonly Alignment BottomCenterフィールドの値
Section titled “フィールドの値”BottomLeft
Section titled “BottomLeft”左下を表す配置値を取得します。
public static readonly Alignment BottomLeftフィールドの値
Section titled “フィールドの値”BottomRight
Section titled “BottomRight”右下を表す配置値を取得します。
public static readonly Alignment BottomRightフィールドの値
Section titled “フィールドの値”Center
Section titled “Center”中央を表す配置値を取得します。
public static readonly Alignment Centerフィールドの値
Section titled “フィールドの値”CenterLeft
Section titled “CenterLeft”左端中央を表す配置値を取得します。
public static readonly Alignment CenterLeftフィールドの値
Section titled “フィールドの値”CenterRight
Section titled “CenterRight”右端中央を表す配置値を取得します。
public static readonly Alignment CenterRightフィールドの値
Section titled “フィールドの値”TopCenter
Section titled “TopCenter”上端中央を表す配置値を取得します。
public static readonly Alignment TopCenterフィールドの値
Section titled “フィールドの値”TopLeft
Section titled “TopLeft”左上を表す配置値を取得します。
public static readonly Alignment TopLeftフィールドの値
Section titled “フィールドの値”TopRight
Section titled “TopRight”右上を表す配置値を取得します。
public static readonly Alignment TopRightフィールドの値
Section titled “フィールドの値”水平方向の相対位置。-1は左端、0は中央、1は右端です。既定値は0です。
public float X { get; init; }プロパティの値
Section titled “プロパティの値”垂直方向の相対位置。-1は上端、0は中央、1は下端です。既定値は0です。
public float Y { get; init; }プロパティの値
Section titled “プロパティの値”ComputeOffset(SKSize, SKSize)
Section titled “ComputeOffset(SKSize, SKSize)”親矩形内で子矩形をこの配置に置くための左上座標を算出します。
public Offset ComputeOffset(SKSize parent, SKSize child)パラメーター
Section titled “パラメーター”parent SKSize
親矩形の大きさ。単位は論理ピクセルです。
child SKSize
子矩形の大きさ。単位は論理ピクセルです。
Offset
親矩形の左上を原点とする、子矩形左上の論理ピクセル単位のオフセット。
FlipAll()
Section titled “FlipAll()”水平および垂直方向を中央に対して反転した配置値を返します。
public Alignment FlipAll()両成分の符号を反転した新しい配置値。
FlipX()
Section titled “FlipX()”水平方向を中央に対して反転した配置値を返します。
public Alignment FlipX()水平成分の符号だけを反転した新しい配置値。
FlipY()
Section titled “FlipY()”垂直方向を中央に対して反転した配置値を返します。
public Alignment FlipY()垂直成分の符号だけを反転した新しい配置値。
Pivot(SKSize)
Section titled “Pivot(SKSize)”指定された矩形サイズの中心を原点として、この配置が示す位置を算出します。
public Offset Pivot(SKSize size)パラメーター
Section titled “パラメーター”size SKSize
基準とする矩形の大きさ。単位は論理ピクセルです。
Offset
矩形中心から配置位置までの論理ピクセル単位のオフセット。
Offset