CastTextFlowBox (クラス)
public CastTextFlowBox {inherits BasicTextFlowBox}
インポート元: CURL.GUI.STANDARD. package 内で定義されています CURL.GUI.BASE.

Graphic 以外の Visual (テキストなど) を Box に直接追加したときに取得される TextFlowBox

説明

このクラスのパフォーマンスの特徴は、DefaultTextFlowBox とは異なります。特に、このオブジェクトでは、キャッシングはほとんど行われません。これは、内容のサイズが小さいことが前提です。

このクラスを直接インスタンス化することも可能ですが、本来の目的は、暗黙的に作成されるオブジェクトのタイプを提供することです。

コンストラクタ
clone-appearance-from:このタイプの新しいオブジェクトを作成するために Visual.clone-appearance が使用するコンストラクタ。
コンストラクタ protected {CastTextFlowBox.clone-appearance-from
other:CastTextFlowBox,
fixup:#{proc-type {Visual, Visual}:Visual}
}
default:すべての引数を基本クラスのコンストラクタに渡すことによって CastTextFlowBox を初期化します。
コンストラクタ public {CastTextFlowBox.default ...}

プロパティ
clonable-class?:当該クラスがクローン化可能である場合は、true を返します。その他の場合は false を返します。
アクセサ protected CastTextFlowBox.clonable-class?:bool
プロパティ 継承 BasicTextFlowBox: completely-clonable-children?, display-context, last-request-layout-epoch, text-selectable?
プロパティ 継承 TextFlowBox: color, font-family, font-size, font-style, font-weight, graphical-children, paragraph-after-spacing, paragraph-before-spacing, paragraph-first-line-offset, paragraph-justify, paragraph-left-indent, paragraph-line-spacing, paragraph-right-indent, style-element, text-bottom-margin, text-breakable?, text-left-margin, text-line-through?, text-preserve-whitespace?, text-right-margin, text-top-margin, text-underline?, viewport-width
プロパティ 継承 GetBoundsBox: layout-locally-valid?, layout-valid?
プロパティ 継承 Box: clip-child-shadows?, 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?, 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, cursor, data-source, dragee, graphical-parent, has-key-focus?, input-method-enabled?, input-method-keyboard-mode, name, options, style-class, 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

メソッド
clone-appearance-helper:クローンを作成し、クローン自体を返します。
protected {CastTextFlowBox.clone-appearance-helper
fixup:#{proc-type {Visual, Visual}:Visual}
}:Visual
メソッド 継承 BasicTextFlowBox: add, calculate-width-preference, clear, constrain-width, draw, draw-range-as-selected, end-pagination, get-composition-width, get-display-context, get-height-preference, get-range-as-selected-text, get-width-preference, make-gui-mark, notify-option-children, paginate, pick-child, register-options, search-next-here, search-prev-here, set-size
メソッド 継承 TextFlowBox: find-graphic-at, find-test-children, get-gui-path-to-child, get-text, note-attached, note-detaching
メソッド 継承 BasicBox: contains-point?, handle-crossing, on-pointer-envelope-event, pointer-enter-occurred, pointer-leave-occurred
メソッド 継承 GetBoundsBox: get-bounds, get-elastic-bounds-into, get-nonparent-bounds-into, propagate-request-layout, request-layout, validate-layout
メソッド 継承 Box: compare-children, get-delimited-child-text-selection, get-visible-rect-in-root-into, graphical-child-visible-at
メソッド 継承 Graphic: after-reposition, attempt-revalidate-layout, before-reposition, constrain-height, create-pagination-state, detach, draw-shadow, find-ancestor, find-graphical-ancestor, fire-inferior-crossing-event, get-graphical-root, get-gui-path, get-origin-in-graphical-ancestor, get-origin-in-root, get-pagination-state, get-top-left-in-ancestor, get-visible-bounds-into, on-drag-enter, on-inspection, on-pointer-enter, option-changed, 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-from-init-args, animate, change-cursor, clonable-appearance?, clone-appearance, get-focus-manager, get-layout-context, get-test-parent, get-test-property, 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
メソッド 継承 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, option-change-notify, option-lookup, option-lookup-here, option-propagate-notify, option-set?, propagate-option-change, 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 {CastTextFlowBox.clone-appearance-from
other:CastTextFlowBox,
fixup:#{proc-type {Visual, Visual}:Visual}
}

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



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

すべての引数を基本クラスのコンストラクタに渡すことによって CastTextFlowBox を初期化します。




プロパティ詳細
clonable-class? (アクセサ)
アクセサ protected CastTextFlowBox.clonable-class?:bool

当該クラスがクローン化可能である場合は、true を返します。その他の場合は false を返します。

オーバーライド

既定の実装は false を返します。クローン化機能を提供するクラスは、{type-of self} == {compile-time-type-of self} を返すためには、このゲッターをオーバーライドする必要があります。クローン化可能な Visual が必ずしもクローン化可能であるとは限らないので、単に true を返すだけでは正しくありません。
このメソッドをオーバーライドする場合は、Visual.clone-appearance-helper もオーバーライドする必要があります。





メソッド詳細
clone-appearance-helper (メソッド)
protected {CastTextFlowBox.clone-appearance-helper
fixup:#{proc-type {Visual, Visual}:Visual}
}:Visual

クローンを作成し、クローン自体を返します。

オーバーライド

既定の実装はエラーをスローします。クローン化機能を提供するクラスは、
{{compile-time-type-of self}.clone-appearance-from self, fixup}
を返すためには、このゲッターをオーバーライドする必要があります。