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

ほとんどすべての種類の Box で役立つメソッドを含むクラス。

説明

BasicBox は、FrameSequenceBox、および TextFlowBox など、Curl グラフィック システムで定義されるすべての Box に共通のスーパークラスです。BasicBox の任意の子オブジェクトに関連付けられる Layout オブジェクトも、EventForwarder から継承されなければなりません。実際には、これは Layout オブジェクトが BasicLayout のサブクラスでなければならないことを意味します。

コンストラクタ
clone-appearance-from:このタイプの新しいオブジェクトを作成するために Visual.clone-appearance が使用するコンストラクタ。
コンストラクタ protected {BasicBox.clone-appearance-from other:BasicBox}
default:このクラスの新しいオブジェクトを作成します。
コンストラクタ public {BasicBox.default ...}

プロパティ
プロパティ 継承 GetBoundsBox: layout-locally-valid?, layout-valid?
プロパティ 継承 Box: clip-child-shadows?, completely-clonable-children?, graphical-children, ordered-children, reverse-ordered-children
プロパティ 継承 Graphic: avoid-page-break?, background, border-color, border-spec, border-style, border-width, cell-border-spec, cell-border-width, cell-margin, discrete-select-in-range?, display-context, enabled?, graphic-selectable, height, horigin, is-paginating?, layout, margin, opaque-to-events?, option-parent, outside-margin, pagination-state, parent, possibly-displayed?, selection-context, shadow-color, shadow-spec, visible?, visual-parent, vorigin, width
プロパティ 継承 Visual: _style-element, clonable-class?, cursor, data-source, dragee, font-size, graphical-parent, has-key-focus?, input-method-enabled?, input-method-keyboard-mode, name, options, style-class, style-element, style-manager, style-options, test-child?, test-description, test-name, test-parent?, test-type-name, test-visible?, tooltip, user-data
プロパティ 継承 DataBindingTarget: data-binding-context, data-bindings
プロパティ 継承 EventTarget: event-handlers
プロパティ 継承 OptionListInterface: option-register-proc, options-present-here, registered-option-keys

メソッド
contains-point?:指定されたポイントで発生するイベントが、ターゲット ボックスと、そのいずれかのグラフィカルな子のどちらに関するものかを判断します。
public {BasicBox.contains-point? x:Distance, y:Distance}:bool
find-graphic-at:指定ポイントをカバーし、指定テストの条件を満たす Graphic を見つけます。
public {BasicBox.find-graphic-at
x:Distance,
y:Distance,
test:{proc-type {Graphic}:bool}
}:#Graphic
handle-crossing:ポインタ イベントe についての通知に応じて、必要な場合に PointerCrossing イベントを発生させます。
protected {BasicBox.handle-crossing
c:#EventForwarder,
e:GuiInputEvent,
entered?:bool = false,
left?:bool = false
}:void
on-pointer-envelope-event:PointerEnvelopeEventスタティック イベント ハンドラ
public {BasicBox.on-pointer-envelope-event e:PointerEnvelopeEvent}:void
pick-child:指定された点 (x, y) を覆う BasicBox の子をピックアップします。
public abstract {BasicBox.pick-child}:#EventForwarder
pointer-enter-occurred:このオブジェクトで PointerLeafEnter を発生させます。
public {BasicBox.pointer-enter-occurred e:GuiInputEvent}:void
pointer-leave-occurred:このオブジェクトで PointerLeafLeave を発生させます。
public {BasicBox.pointer-leave-occurred e:GuiInputEvent}:void
メソッド 継承 GetBoundsBox: get-bounds, get-elastic-bounds-into, get-nonparent-bounds-into, propagate-request-layout, request-layout, set-size, validate-layout
メソッド 継承 Box: clear, compare-children, find-test-children, get-delimited-child-text-selection, get-gui-path-to-child, get-range-as-selected-text, get-visible-rect-in-root-into, graphical-child-visible-at, make-gui-mark, note-attached, note-detaching, search-next-here, search-prev-here
メソッド 継承 Graphic: after-reposition, attempt-revalidate-layout, before-reposition, constrain-height, constrain-width, create-pagination-state, detach, draw, draw-range-as-selected, draw-shadow, end-pagination, find-ancestor, find-graphical-ancestor, fire-inferior-crossing-event, get-graphical-root, get-gui-path, get-height-preference, get-origin-in-graphical-ancestor, get-origin-in-root, get-pagination-state, get-top-left-in-ancestor, get-visible-bounds-into, get-width-preference, on-drag-enter, on-inspection, on-pointer-enter, option-changed, paginate, paint-with-decorations, replace-with, request-draw, request-draw-rect, request-pointer-trace, search-next, search-prev, set-layout, start-pagination, xy-offset-to
メソッド 継承 Visual: add, add-from-init-args, animate, change-cursor, clonable-appearance?, clone-appearance, clone-appearance-helper, get-focus-manager, get-layout-context, get-test-parent, get-test-property, get-text, get-view, maybe-fire-attach-event, maybe-fire-detach-event, non-keyword-init-arg, note-caret-position, on-drag-leave, on-pointer-leave, pop-cursor, prepare-test-object, prepare-test-parent, push-cursor, quantize-width, refresh-style-options, release-key-focus, request-key-focus, scroll-to-include, test-record, test-run, transform-from-display-coordinates, transform-from-graphical-root-coordinates, transform-to-display-coordinates, transform-to-graphical-root-coordinates
メソッド 継承 GraphicOptions: any-to-Distance, get-display-context
メソッド 継承 GuiEventTarget: handle-delegate-event, handle-event, on-action, on-cancel-mode, on-command-changed, on-commit, on-composition-change-event, on-composition-result-event, on-context-menu-event, on-current-record-change-request, on-current-record-changed, on-destroy-notify, on-destroy-requested, on-drag-over, on-drag-pointer, on-drag-started, on-drop, on-end-composition-event, on-focus-event, on-focus-in, on-focus-out, on-gesture, on-gesture-begin, on-gesture-end, on-gesture-magnify, on-gesture-pan, on-gesture-rotate, on-gesture-swipe, on-gesture-tap, on-gesture-touch, on-grab-release, on-gui-event, on-input-method-event, on-key-event, on-key-press, on-pointer-button, on-pointer-crossing, on-pointer-event, on-pointer-motion, on-pointer-press, on-pointer-release, on-pointer-scroll, on-raw-key-event, on-raw-key-press, on-raw-key-release, on-reset, on-selectable-added, on-selectable-removed, on-selection-changed, on-selection-context-activated, on-selection-context-deactivated, on-selection-event, on-start-composition-event, on-start-event, on-stop-event, on-view-activate, on-view-deactivate, on-window-close, remove-event-handlers-for-event-class
メソッド 継承 DataBindingTarget: add-data-binding, get-data-binding, refresh-data-binding, remove-data-binding, unset-property, update-data-binding, validate-data-binding
メソッド 継承 EventTarget: accepts-event-class?, add-event-handler, event-handler-present?, remove-event-handler, verify-event
メソッド 継承 OptionListInterface: add-option, add-style-option, change-option-parent-notify, clone-options, get-option, get-option-by-name, keyword-init-arg, local-add-notify, local-remove-notify, name-to-option-key, new-option-item, notify-option-children, option-change-notify, option-lookup, option-lookup-here, option-propagate-notify, option-set?, propagate-option-change, register-options, remove-option, remove-style-option, remove-styles, set-option-by-name, set-style-option-by-name, unset-option-by-name, unset-style-option-by-name
メソッド 継承 BasicEventTarget: enqueue-event
メソッド 継承 InitRestArgParser: process-rest-args
メソッド 継承 Object: object-describe, object-describe-for-debugging, object-serialize



コンストラクタ詳細
clone-appearance-from (コンストラクタ)
protected {BasicBox.clone-appearance-from other:BasicBox}

このタイプの新しいオブジェクトを作成するために Visual.clone-appearance が使用するコンストラクタ。

other: クローンする BasicBox

注意事項

クローン化をサポートする BasicBox のサブクラスには、このコンストラクタを呼び出すコンストラクタが必要です。ただし、これらのコンストラクタがそれぞれ自身のオプションをクローン化する場合は、その限りではありません。


default (コンストラクタ)
public {BasicBox.default ...}

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




プロパティ詳細


メソッド詳細
contains-point? (メソッド)
public {BasicBox.contains-point? x:Distance, y:Distance}:bool

指定されたポイントで発生するイベントが、ターゲット ボックスと、そのいずれかのグラフィカルな子のどちらに関するものかを判断します。

x, y: ポイントの座標。ターゲット オブジェクトの起点を基準として表現します。

プログラミング注意事項

このメソッドは、通常は、ポインタ イベントをグラフィカルな子に転送するかどうかを決定するためなど、主として内部目的で用意されています。

注意事項

このメソッドは、ポイントがグラフィカルな子によって占められる領域内 (境界を含む) にある場合は、グラフィカルな子が以下のプロパティを持っていると判断して true を返します。

一般に、ボックス内のターゲット ポイントがボックスの可視部分として描画されていない場合、このメソッドは false を返します。

TextFlowBox に選択可能なテキストが含まれている場合 (つまりプロパティ text-selectable? が値 true である場合) は、ポイントが境界ボックス内にある限り、メソッドは true を返します。これは、その領域内の任意のイベントが、ボックス内のテキスト選択に関連付けられる可能性があるからです。それ以外の場合は、TextFlowBox は前述したように、他のボックスと同じように扱われます。


find-graphic-at (メソッド)
public {BasicBox.find-graphic-at
x:Distance,
y:Distance,
test:{proc-type {Graphic}:bool}
}:#Graphic

指定ポイントをカバーし、指定テストの条件を満たす Graphic を見つけます。

x, y: self の座標フレームを基準にしたポイントの座標。
test: テスト。Graphic を引数として与えると test が true を返す場合、Graphic はこのテストの条件を満たしているといえます。

戻り値

このオブジェクトが test の条件を満たす場合はこれを返します。その他の場合、このメソッドは最初に点 (xy) を含むこのオブジェクトの子 (存在する場合)、次にこのオブジェクトの孫の順序で、test の条件を満たすオブジェクトを探します。このようなオブジェクトで最初に見つかったものが返されます。見つからない場合は null が返されます。

プログラミング注意事項

このメソッドは、ポインタ イベントを他のオブジェクトにリダイレクトするグラフィカル オブジェクトで使います。このメソッドによりポインタ イベントの転送先オブジェクトを見つけます。

オーバーライド

通常はオーバーライドされません。


handle-crossing (メソッド)
protected {BasicBox.handle-crossing
c:#EventForwarder,
e:GuiInputEvent,
entered?:bool = false,
left?:bool = false
}:void

ポインタ イベントe についての通知に応じて、必要な場合に PointerCrossing イベントを発生させます。

c: (e.x,e.y) が位置する、子のレイアウト オブジェクト。そのような子が存在しない場合、c は NULL になります。
e: ポインタ座標 e.x および e.y を含むイベント。
entered?: ポインタがこのオブジェクトに入っている場合は true になります。
left?: ポインタがこのオブジェクトから出ると true になります。

説明

このメソッドは、提供される引数による指定どおりに、また e 自体がドラッグ操作に関連付けられているかどうかに応じて、PointerEnterPointerLeaveDragEnterDragLeavePointerLeafEnter などの PointerCrossing イベントを発生させます。PointerLeave などのポインタが出るイベントは、出た self に子がある場合にその子で発生します。PointerLeafEnter などのリーフ交差イベントは、必要に応じて self で発生します。最後に、 PointerEnter などのポインタが入るイベントは、入った self に子がある場合に、その子で発生します。

プログラミング注意事項

このメソッドが呼び出されるのは、PointerEnvelopeEventself で発生したとき、または self.pointer-enter-occurred または self.pointer-leave-occurred が呼び出されたときです。


on-pointer-envelope-event (メソッド)
public {BasicBox.on-pointer-envelope-event e:PointerEnvelopeEvent}:void

PointerEnvelopeEventスタティック イベント ハンドラ

説明

スタティック イベント ハンドラの一般的な情報については、GuiEventTarget.on-pointer-event を参照してください。


pick-child (メソッド)
public abstract {BasicBox.pick-child}:#EventForwarder

指定された点 (x, y) を覆う BasicBox の子をピックアップします。

x, y: ポイントの座標です。

戻り値

この点を覆う子。該当する子がない場合は NULL を返します。

プログラミング注意事項

このメソッドは、PointerEvent を転送する場合やその他の類似の状況で使用されます。

注意事項

このメソッドの実装では、xy の最新の値を、これらの値について返された答えと合わせてキャッシュすることが推奨されます。このメソッドはたいてい同じ入力で連続して複数回呼び出されるからです。

オーバーライド

このメソッドは、適切な戻り値を計算するコードを持つ、BasicBox の具象サブクラスでオーバーライドする必要があります。


pointer-enter-occurred (メソッド)
public {BasicBox.pointer-enter-occurred e:GuiInputEvent}:void

このオブジェクトで PointerLeafEnter を発生させます。

プログラミング注意事項

ポインタがオブジェクトに入ると Graphic.on-pointer-enter で呼び出されます。
e: このオブジェクトが入ったことを示す座標を持つ GuiInputEvent

オーバーライド

通常はオーバーライドされません。


pointer-leave-occurred (メソッド)
public {BasicBox.pointer-leave-occurred e:GuiInputEvent}:void

このオブジェクトで PointerLeafLeave を発生させます。

プログラミング注意事項

ポインタがオブジェクトを出ると Graphic.on-pointer-leave で呼び出されます。
e: このオブジェクトが出たことを示す座標を持つ GuiInputEvent

オーバーライド

通常はオーバーライドされません。