Skip to main content

Crate gpui_hooks

Crate gpui_hooks 

Source
Expand description

GPUI Hooks - 为GPUI组件添加hook系统的库

这个库提供了 #[hook_element] 属性宏,可以为结构体自动添加hooks字段和相关方法。

Modules§

hooks

Traits§

HookedElement
HookedElement trait - 管理组件的hooks 使用内部可变性模式,使得hooks可以在&self上调用
HookedRender
HookedRender trait - 在GPUI的Render后执行钩子代码

Functions§

execute_hooked_render
执行HookedRender的完整流程,在Render实现中调用

Attribute Macros§

hook_element