接口参考

custom_element.h · C++ API

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

阅读相关开发指南 →

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

include/kui/component/custom_element.h
CustomElementDefinition::bool
待核对3.61.7C++

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

custom_element.h
using ImeEventCallback = std::function<bool(Element*, const ImeEventData&)>;

验证范围

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

include/kui/component/custom_element.h:111

反馈此接口问题 →
CustomElementDefinition::bool
待核对3.61.7C++

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

custom_element.h
using KeyEventCallback = std::function<bool(Element*, const KeyEventData&)>;

验证范围

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

include/kui/component/custom_element.h:108

反馈此接口问题 →
CustomElementDefinition::bool
待核对3.61.7C++

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

custom_element.h
using MouseEventCallback = std::function<bool(Element*, const MouseEventData&)>;

验证范围

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

include/kui/component/custom_element.h:109

反馈此接口问题 →
CustomElementDefinition::bool
待核对3.61.7C++

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

custom_element.h
using NeedsTickCallback = std::function<bool(Element*)>;

验证范围

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

include/kui/component/custom_element.h:64

反馈此接口问题 →
CustomElementDefinition::bool
待核对3.61.7C++

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

custom_element.h
using WheelEventCallback = std::function<bool(Element*, const WheelEventData&)>;

验证范围

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

include/kui/component/custom_element.h:110

反馈此接口问题 →
CustomElementDefinition::SizeInfo
待核对3.61.7C++

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

custom_element.h
using IntrinsicSizeCallback = std::function<SizeInfo(Element*, f32 availableWidth)>;

验证范围

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

include/kui/component/custom_element.h:61

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

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

custom_element.h
using AttributeCallback = std::function<void(Element*, const String& name, const String& oldValue, const String& newValue)>;

验证范围

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

include/kui/component/custom_element.h:33

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

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

custom_element.h
using LifecycleCallback = std::function<void(Element*)>;

验证范围

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

include/kui/component/custom_element.h:31

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

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

custom_element.h
using PaintCallback = std::function<void(PaintContext&)>;

验证范围

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

include/kui/component/custom_element.h:52

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

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

custom_element.h
using TickCallback = std::function<void(Element*, f64 deltaTime)>;

验证范围

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

include/kui/component/custom_element.h:55

反馈此接口问题 →
CustomElementRegistry::~CustomElementRegistry
待核对3.61.7C++

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

custom_element.h
~CustomElementRegistry();

验证范围

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

include/kui/component/custom_element.h:145

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

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

custom_element.h
CustomElementRegistry();

验证范围

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

include/kui/component/custom_element.h:144

反馈此接口问题 →
CustomElementRegistry::define
待核对3.61.7C++

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

custom_element.h
bool define(const String& tagName, CustomElementDefinition def);

验证范围

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

include/kui/component/custom_element.h:147

反馈此接口问题 →
CustomElementRegistry::get
待核对3.61.7C++

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

custom_element.h
const CustomElementDefinition* get(StringView tagName) const;

验证范围

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

include/kui/component/custom_element.h:151

反馈此接口问题 →
CustomElementRegistry::hasFrameVisualCallbacks
待核对3.61.7C++

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

custom_element.h
bool hasFrameVisualCallbacks() const;

验证范围

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

include/kui/component/custom_element.h:164

反馈此接口问题 →
CustomElementRegistry::isDefined
待核对3.61.7C++

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

custom_element.h
bool isDefined(StringView tagName) const;

验证范围

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

include/kui/component/custom_element.h:154

反馈此接口问题 →
CustomElementRegistry::notifyAttributeChanged
待核对3.61.7C++

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

custom_element.h
void notifyAttributeChanged(Element* elem, const String& name, const String& oldValue, const String& newValue) const;

验证范围

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

include/kui/component/custom_element.h:174

反馈此接口问题 →
CustomElementRegistry::notifyConnected
待核对3.61.7C++

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

custom_element.h
void notifyConnected(Element* elem) const;

验证范围

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

include/kui/component/custom_element.h:168

反馈此接口问题 →
CustomElementRegistry::notifyDisconnected
待核对3.61.7C++

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

custom_element.h
void notifyDisconnected(Element* elem) const;

验证范围

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

include/kui/component/custom_element.h:171

反馈此接口问题 →
CustomElementRegistry::registeredNames
待核对3.61.7C++

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

custom_element.h
std::vector<String> registeredNames() const;

验证范围

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

include/kui/component/custom_element.h:161

反馈此接口问题 →
CustomElementRegistry::undefine
待核对3.61.7C++

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

custom_element.h
bool undefine(const String& tagName);

验证范围

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

include/kui/component/custom_element.h:157

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