Crate kas_macros

Crate kas_macros 

Source
Expand description

KAS macros

This crate extends impl-tools.

Macros§

cell_collection
Generate an anonymous struct which implements kas::CellCollection
collection
Generate an anonymous struct which implements kas::Collection
impl_anon
Construct a single-instance struct
impl_scope
Scope supporting impl Self and advanced attribute macros
widget_index
Index of a child widget
widget_set_rect
Macro to set the rect stored in the widget core

Attribute Macros§

autoimpl
A variant of the standard derive macro
derive_widget
Derive the Widget family of traits
extends
A trait implementation is an extension over some base
impl_default
Implement Default
impl_self
Implement a type with impl Self syntax
layout
Provide a default implementation of the Layout trait for a widget
widget
Attribute to implement the kas::Widget family of traits