ClipFrameLayout (クラス)
public ClipFrameLayout {inherits FrameLayout}
インポート元: CURL.GUI.STANDARD. package 内で定義されています CURL.GUI.BASE.
直接継承しているサブクラス: ScrollingClipFrameLayout

ClipFrame 用の内部レイアウト。

説明

このオブジェクトは get-width-preferenceget-height-preference の実行中に子の寸法設定をキャッシュし、set-heightset-width の実行中には少なくともこれらの寸法が必ず渡されるようにします。

コンストラクタ
default:このクラスの新しいオブジェクトを作成します。
コンストラクタ public {ClipFrameLayout.default}

プロパティ
プロパティ 継承 BasicLayout: before-reposition-called?, bounds, cell-bounds, cell-height-preference, cell-width-preference, child-height-preference, child-width-preference, graphic, h, invalid-epoch, outside-margin-bounds, pagination-state, pagination-state-internal, shadow-bounds, v
プロパティ 継承 Layout: non-null-parent, option-parent, parent

メソッド
adjust-for-clipping:親が許可する子の寸法を調整して、必要な場合は子をクリップします。
protected {ClipFrameLayout.adjust-for-clipping
origin:Distance,
before:Distance,
after:Distance,
horiz?:bool
}:(origin:Distance, before:Distance, after:Distance )
get-height-preference:Graphic の高さのサイズ設定を計算して返します。
public {ClipFrameLayout.get-height-preference
lc:LayoutContext,
constrained?:bool = {value {mandatory-keyword-arg-missing} false}
}:OriginElastic
get-width-preference:Graphic の幅のサイズ設定を計算して返します。
public {ClipFrameLayout.get-width-preference
lc:LayoutContext,
constrained?:bool = {value {mandatory-keyword-arg-missing} false}
}:OriginElastic
set-height:Graphic の高さを設定します。
public {ClipFrameLayout.set-height
lc:LayoutContext,
origin:Distance,
ascent:Distance,
descent:Distance
}:void
set-width:Graphic の幅を設定します。
public {ClipFrameLayout.set-width
lc:LayoutContext,
origin:Distance,
lextent:Distance,
rextent:Distance
}:void
メソッド 継承 FrameLayout: detach
メソッド 継承 BasicLayout: after-reposition, allocate-layout-dimension, attach-graphic, attempt-revalidate-layout, before-reposition, bounds-valid?, contains-point?, draw, end-pagination, finish-layout, fire-crossing-event, fire-in-child, get-bounds, get-cell-bounds, get-origin-in-parent, get-outside-margin-bounds, get-shadow-bounds, get-visible-bounds-into, get-visible-rect-in-root-into, invalidate-cell, note-child-option-changed, paginate, paint-with-decorations, replace-with, request-draw, request-draw-child, request-draw-rect, request-layout, set-graphic, shift-x-origin, shift-y-origin, start-pagination, valid?, validate-layout
メソッド 継承 Layout: get-origin-in-root, note-graphic-to-be-removed
メソッド 継承 Object: object-describe, object-describe-for-debugging, object-serialize



コンストラクタ詳細
default (コンストラクタ)
public {ClipFrameLayout.default}

このクラスの新しいオブジェクトを作成します。




プロパティ詳細


メソッド詳細
adjust-for-clipping (メソッド)
protected {ClipFrameLayout.adjust-for-clipping
origin:Distance,
before:Distance,
after:Distance,
horiz?:bool
}:(origin:Distance, before:Distance, after:Distance )

親が許可する子の寸法を調整して、必要な場合は子をクリップします。

説明

set-widthset-height の実装では、スーパー実装を呼び出して子の寸法を実際に調節する前に、このメソッドを使ってその設定値を調整します。


get-height-preference (メソッド)
public {ClipFrameLayout.get-height-preference
lc:LayoutContext,
constrained?:bool = {value {mandatory-keyword-arg-missing} false}
}:OriginElastic

Graphic の高さのサイズ設定を計算して返します。

lc: 現在のレイアウト ネゴシエーションを調整する LayoutContext

戻り値

適正な高さ設定を示す OriginElastic オブジェクト。
constrained?: レイアウト ネゴシエーションが高さを先に処理する場合は false 、幅を先に処理する場合 (高さ設定を計算するときに BasicLayout.set-width に引数として与えられた計算済みの幅の値を制約として使用する必要があることを意味します) は true です。


get-width-preference (メソッド)
public {ClipFrameLayout.get-width-preference
lc:LayoutContext,
constrained?:bool = {value {mandatory-keyword-arg-missing} false}
}:OriginElastic

Graphic の幅のサイズ設定を計算して返します。

lc: 現在のレイアウト ネゴシエーションを調整する LayoutContext

戻り値

適正な幅の設定を示す OriginElastic オブジェクト。
constrained?: レイアウト ネゴシエーションで幅が先に処理される場合は false、高さが先に処理される場合 (幅の設定を計算するときに BasicLayout.set-height に引数として与えられた計算済みの高さの値を制約として使用する必要があることを意味します) は true です。


set-height (メソッド)
public {ClipFrameLayout.set-height
lc:LayoutContext,
origin:Distance,
ascent:Distance,
descent:Distance
}:void

Graphic の高さを設定します。

lc: 現在のレイアウト ネゴシエーションを調整する LayoutContext
origin: 子 Graphic の外側起点の y 座標。BasicLayout の親 Box の座標フレームを基準にしています。
ascent: 子 Graphic のセル境界で許容される origin の上の空白の量。
descent: 子 Graphic のセル境界で許容される origin の下の空白の量。


set-width (メソッド)
public {ClipFrameLayout.set-width
lc:LayoutContext,
origin:Distance,
lextent:Distance,
rextent:Distance
}:void

Graphic の幅を設定します。

lc: 現在のレイアウト ネゴシエーションを調整する LayoutContext
origin: 子 Graphic の外側起点の x 座標。BasicLayout の親 Box の座標フレームを基準にしています。
lextent: 子 Graphic のセル境界で許容される origin の左側の空白の量。
rextent: 子 Graphic のセル境界で許容される origin の右側の空白の量。