import { DisplayObject, Graphics, utils } from "pixi.js"; import { DBaseStateSet } from "./d-base-state-set"; import { DDynamicText } from "./d-dynamic-text"; import { DDynamicTextStyle } from "./d-dynamic-text-style"; import { DStateAwareOrValueMightBe } from "./d-state-aware"; import { DImagePieceLayouter } from "./d-image-piece-layouter"; import { DTextPiece, DTextPieceFormatter, DTextPieceOptions, DThemeTextPiece } from "./d-text-piece"; import { DApplicationTarget } from "./d-application-like"; import { DTextPieceAlign } from "./d-text-piece-align"; import { DTextPieceStyle } from "./d-text-piece-style"; import { DTextPieceStyleImpl } from "./d-text-piece-style-impl"; export interface DTextPieceImplParent extends DApplicationTarget { readonly state: DBaseStateSet; addChild(displayObject: DisplayObject): void; removeChild(displayObject: DisplayObject): void; toDirty(): void; getOverflowMask(): Graphics | null; } export declare class DTextPieceImpl extends utils.EventEmitter implements DTextPiece { protected _parent: DTextPieceImplParent; protected _theme: DThemeTextPiece; protected _object?: DDynamicText | null; protected _value?: DStateAwareOrValueMightBe; protected _computed?: VALUE; protected _color: DStateAwareOrValueMightBe; protected _alpha: DStateAwareOrValueMightBe; protected _style: DTextPieceStyleImpl; protected _dstyle: DDynamicTextStyle; protected _align: DTextPieceAlign; protected _formatter: DTextPieceFormatter; protected _isVisible: boolean; constructor(parent: DTextPieceImplParent, theme: DThemeTextPiece, options?: DTextPieceOptions | undefined); get value(): DStateAwareOrValueMightBe; set value(value: DStateAwareOrValueMightBe); getValue(): DStateAwareOrValueMightBe; setValue(value: DStateAwareOrValueMightBe, forcibly?: boolean): void; protected onValueChange(forcibly?: boolean): void; compute(forcibly?: boolean): void; get computed(): VALUE | undefined; get formatter(): DTextPieceFormatter; set formatter(formatter: DTextPieceFormatter); get color(): DStateAwareOrValueMightBe; set color(color: DStateAwareOrValueMightBe); get alpha(): DStateAwareOrValueMightBe; set alpha(alpha: DStateAwareOrValueMightBe); protected onColorChange(): void; get align(): DTextPieceAlign; get style(): DTextPieceStyle; get object(): DDynamicText | null | undefined; update(layouter: DImagePieceLayouter): void; protected updateObject(): boolean; protected newComputed(): VALUE | undefined; protected newColor(state: DBaseStateSet): number; protected newAlpha(state: DBaseStateSet): number; protected newObject(): DDynamicText; get visible(): boolean; set visible(visible: boolean); show(): this; hide(): this; isShown(): boolean; protected onComputedChange(): void; destroy(): this; }