frame

Macro frame 

Source
macro_rules! frame {
    ( $e:expr ) => { ... };
}
Expand description

Make a Frame widget

§Syntax

§Stand-alone usage

When called as a stand-alone macro, frame!(inner) is just syntactic sugar for Frame::new(inner), and yes, this makes the macro pointless.

§Usage within widget layout syntax

When called within widget layout syntax, frame! may be evaluated as a recursive macro and the result does not have a specified type, except that methods map_any, align, pack and with_style are supported via emulation.

§Example

let my_widget = kas_widgets::frame!(kas_widgets::Label::new("content"));