|
slot 0.0.1
A real time UI render framework
|
#include <TextNode.h>


Public 成员函数 | |
| TextNode () | |
| TextNode (std::string text) | |
| const char * | TypeName () const override |
| bool | SetProperty (const std::string &name, const std::string &value) override |
Public 成员函数 继承自 z8::ui::BaseNode | |
| BaseNode () | |
| ~BaseNode () override | |
| BaseNode (const BaseNode &)=delete | |
| BaseNode & | operator= (const BaseNode &)=delete |
| virtual bool | RoutesToScene () const |
| virtual BaseNode * | ContentHost () |
| bool | Contains (float x, float y) const |
| bool | Contains (MouseMovArgs args) const |
| virtual BaseNode * | AddChild (std::unique_ptr< BaseNode > child) |
| void | RemoveChildrenFrom (size_t first) |
| virtual void | OnAfterLayout () |
| virtual void | Synchronize () |
| virtual void | DispatchAfterLayout () |
Public 成员函数 继承自 z8::ui::IProperty | |
| virtual | ~IProperty ()=default |
Public 属性 | |
| std::string | Text |
| std::wstring | FontFamily |
| float | FontSize = 16.0f |
| DirectX::XMFLOAT4 | Color = {0.95f, 0.95f, 0.95f, 1.0f} |
| TextAlignment | Alignment = TextAlignment::Leading |
| bool | Wrap = false |
| std::vector< DirectX::XMFLOAT4 > | VisibleTextClips |
| bool | HasTextOcclusion = false |
Public 属性 继承自 z8::ui::BaseNode | |
| std::string | Key |
| LayoutStyle | Style |
| LayoutBox | Computed |
| BaseNode * | Parent = nullptr |
| std::vector< std::unique_ptr< BaseNode > > | Children |
| float | Left = 0.0f |
| float | Top = 0.0f |
| float | Width = 0.0f |
| float | Height = 0.0f |
| float | ChildOffsetX = 0.0f |
| float | ChildOffsetY = 0.0f |
| bool | ClipChildren = false |
| bool | Visible = true |
| bool | EffectiveVisible = true |
| bool | LayoutManaged = false |
| ClipRect | VisibleClip = {-100000.0f, -100000.0f, 100000.0f, 100000.0f} |
由文字渲染通道消费的纯布局节点。
TextNode 不创建矩形 UIObject,也不携带 Behavior;它只描述排版输入和布局后 的像素框,使 DirectWrite 可以在 DX12 UI 几何之后绘制清晰的系统文字。
| TextNode::TextNode | ( | ) |

|
explicit |
重载 z8::ui::BaseNode .
| TextAlignment z8::ui::TextNode::Alignment = TextAlignment::Leading |
| std::wstring z8::ui::TextNode::FontFamily |
| float z8::ui::TextNode::FontSize = 16.0f |
| std::string z8::ui::TextNode::Text |
| std::vector<DirectX::XMFLOAT4> z8::ui::TextNode::VisibleTextClips |
弹层相交时保存文字仍可绘制的矩形片段;空集合也可表示完全遮挡。