denise-forms 0.31.0

Loads a DeniseUI form file into a widget tree at runtime: the engine behind .dform.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! The other half: a `match` on the generated enum stops being exhaustive the
//! moment the form gains a message.
//!
//! `hello.dform` emits one message, `greet`. This matches a variant that is not
//! there — which is the shape of the error an application gets when a message is
//! *removed*; and the missing-arm error is what it gets when one is added.

include!("hello_form.rs");

fn main() {
    let message = HelloMessage::Greet;
    match message {
        HelloMessage::Greet => {}
        HelloMessage::Cancel => {}
    }
}