接口参考

element.h · C++ API · 2/2

按同一接口文件归组浏览,展开条目查看声明、使用说明和版本边界。

阅读相关开发指南 →

这里保留接口声明及来源。逐项运行验证范围以条目记录为准;源文件中的内部实现候选不代表免费 SDK 的交付承诺。

include/kui/dom/element.h
Element::noteStyleUsesViewportUnits
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void noteStyleUsesViewportUnits(bool affectsDescendants)

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:190

反馈此接口问题 →
Element::offsetHeight
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
f32 offsetHeight() const;

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:394

反馈此接口问题 →
Element::offsetLeft
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
f32 offsetLeft() const;

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:396

反馈此接口问题 →
Element::offsetParent
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
Element* offsetParent() const;

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:397

反馈此接口问题 →
Element::offsetTop
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
f32 offsetTop() const;

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:395

反馈此接口问题 →
Element::offsetWidth
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
f32 offsetWidth() const;

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:393

反馈此接口问题 →
Element::outerHTML
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
String outerHTML() const;

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:436

反馈此接口问题 →
Element::partList
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
const std::vector<String>& partList() const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:495

反馈此接口问题 →
Element::pixelBuffer
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
const u32* pixelBuffer() const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:616

反馈此接口问题 →
Element::pixelBufferHeight
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
u32 pixelBufferHeight() const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:619

反馈此接口问题 →
Element::pixelBufferWidth
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
u32 pixelBufferWidth() const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:618

反馈此接口问题 →
Element::PositioningOptions::PositioningOptions
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
PositioningOptions(bool flipIn = true, bool clampToViewportIn = true, f32 offsetIn = 0.0f, f32 viewportMarginIn = 8.0f) : flip(flipIn), clampToViewport(clampToViewportIn), offset(offsetIn), viewportMargin(viewportMarginIn)

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:424

反馈此接口问题 →
Element::positionRelativeTo
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void positionRelativeTo(const Element* anchor, const String& placement, const PositioningOptions& opts = PositioningOptions());

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:430

反馈此接口问题 →
Element::previousElementSibling
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
Element* previousElementSibling() const;

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:226

反馈此接口问题 →
Element::querySelector
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
Element* querySelector(StringView selector) const;

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:217

反馈此接口问题 →
Element::querySelectorAll
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
RefPtr<NodeList> querySelectorAll(StringView selector) const;

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:219

反馈此接口问题 →
Element::releasePointerCapture
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void releasePointerCapture(i32 pointerId);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:473

反馈此接口问题 →
Element::removeAttribute
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void removeAttribute(const String& name);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:71

反馈此接口问题 →
Element::removeClass
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void removeClass(const String& cls);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:84

反馈此接口问题 →
Element::removeEventListener
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void removeEventListener(const String& type, u32 listenerId);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:448

反馈此接口问题 →
Element::removeEventListeners
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void removeEventListeners(const String& type);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:449

反馈此接口问题 →
Element::scopedStylesheet
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
const class Stylesheet* scopedStylesheet() const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:488

反馈此接口问题 →
Element::scopeRoot
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
Element* scopeRoot() const;

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:489

反馈此接口问题 →
Element::scrollAnchorState
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
ScrollAnchorState* scrollAnchorState() const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:370

反馈此接口问题 →
Element::scrollBy
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void scrollBy(f32 dx, f32 dy);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:391

反馈此接口问题 →
Element::scrollBy
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void scrollBy(f32 dx, f32 dy, ScrollBehavior behavior);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:392

反馈此接口问题 →
Element::scrollHeight
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
f32 scrollHeight() const;

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:357

反馈此接口问题 →
Element::scrollIntoView
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void scrollIntoView(bool alignToTop = true);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:383

反馈此接口问题 →
Element::scrollLeft
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
f32 scrollLeft() const;

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:359

反馈此接口问题 →
Element::scrollTo
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void scrollTo(f32 x, f32 y);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:384

反馈此接口问题 →
Element::scrollTo
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void scrollTo(f32 x, f32 y, ScrollBehavior behavior);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:390

反馈此接口问题 →
Element::scrollTop
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
f32 scrollTop() const;

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:358

反馈此接口问题 →
Element::scrollWidth
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
f32 scrollWidth() const;

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:356

反馈此接口问题 →
Element::setAttribute
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void setAttribute(const String& name, const String& value);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:70

反馈此接口问题 →
Element::setClassName
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void setClassName(const String& cls)

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:80

反馈此接口问题 →
Element::setComputedStyle
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void setComputedStyle(ComputedStyle* style);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:97

反馈此接口问题 →
Element::setDataset
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void setDataset(const String& key, const String& value);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:483

反馈此接口问题 →
Element::setForcedPseudoState
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void setForcedPseudoState(u8 flags)

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:653

反馈此接口问题 →
Element::setId
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void setId(const String& id)

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:76

反馈此接口问题 →
Element::setInnerHTML
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void setInnerHTML(const String& html);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:435

反馈此接口问题 →
Element::setMarkerColorOverride
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void setMarkerColorOverride(const Color& color, bool isExplicit = false)

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:144

反馈此接口问题 →
Element::setMarkerFontOverride
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void setMarkerFontOverride(const String& family, f32 size, f32 specifiedSize, u16 weight, u8 fontStyle, f32 lineHeightMultiplier)

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:154

反馈此接口问题 →
Element::setMarkerGridMetrics
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void setMarkerGridMetrics(f32 inlineSize, f32 firstTrackSize)

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:165

反馈此接口问题 →
Element::setMarkerSpacingOverrides
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void setMarkerSpacingOverrides(f32 letterSpacing, f32 wordSpacing)

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:150

反馈此接口问题 →
Element::setNativeWidgetBackgroundCascade
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void setNativeWidgetBackgroundCascade(bool authored, const Color& base)

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:100

反馈此接口问题 →
Element::setPart
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void setPart(const String& partNames);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:492

反馈此接口问题 →
Element::setPixelBuffer
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void setPixelBuffer(const u32* bgraPreMul, u32 w, u32 h);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:613

反馈此接口问题 →
Element::setPixelBufferRGBA
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void setPixelBufferRGBA(const u32* rgbaUnpremul, u32 w, u32 h);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:616

反馈此接口问题 →
Element::setPointerCapture
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void setPointerCapture(i32 pointerId);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:471

反馈此接口问题 →
Element::setScopedStylesheet
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void setScopedStylesheet(const String& css);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:485

反馈此接口问题 →
Element::setScrollLeft
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void setScrollLeft(f32 value);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:361

反馈此接口问题 →
Element::setScrollTop
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void setScrollTop(f32 value);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:360

反馈此接口问题 →
Element::setSurfaceSnapshot
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void setSurfaceSnapshot(void* surfacePtr)

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:623

反馈此接口问题 →
Element::setTextContent
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void setTextContent(const String& text) override;

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:53

反馈此接口问题 →
Element::smoothScrollTo
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void smoothScrollTo(f32 targetTop, f32 targetLeft, f64 durationMs = 300.0);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:605

反馈此接口问题 →
Element::startMomentumScroll
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void startMomentumScroll(f32 velocityX, f32 velocityY);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:606

反馈此接口问题 →
Element::style
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
const CSSStyleDeclaration* style() const;

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:91

反馈此接口问题 →
Element::style
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
CSSStyleDeclaration* style();

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:87

反馈此接口问题 →
Element::styleUsesInheritKeyword
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
bool styleUsesInheritKeyword() const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:215

反馈此接口问题 →
Element::styleUsesViewportUnits
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
bool styleUsesViewportUnits() const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:205

反馈此接口问题 →
Element::styleViewportUnitsAffectDescendants
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
bool styleViewportUnitsAffectDescendants() const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:206

反馈此接口问题 →
Element::surfaceSnapshot
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void* surfaceSnapshot() const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:625

反馈此接口问题 →
Element::tagId
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
HTMLTagID tagId() const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:57

反馈此接口问题 →
Element::tagName
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
const String& tagName() const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:55

反馈此接口问题 →
Element::textContent
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
String textContent() const override;

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:52

反馈此接口问题 →
Element::tickScrollAnimation
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
bool tickScrollAnimation(f64 nowMs);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:610

反馈此接口问题 →
Element::toggleClass
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
void toggleClass(const String& cls);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:85

反馈此接口问题 →
Element::totalEventListenerCount
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
size_t totalEventListenerCount() const noexcept

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:467

反馈此接口问题 →
Element::void
待核对3.61.7C++

dom 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

element.h
using EventCallback = Callback<void(Event&)>;

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/dom/element.h:444

反馈此接口问题 →
浏览同类接口 →