M5HBKVCED5GY7KC3AOMORMSD75BETBJP53UCDYDHMJINRPGO6GVQC
VU6Z6IPYWN5QA47GVKDPIYEDQZPX4O7U2R47P6CPVQXBD4TAKFLAC
ZGSCV5DIGFYUM6DUSPHZF5EOHOF63K4EMCWEPA45T7PBFSDMIBYQC
NSE6BLWA372T3TYEVMOKWWD725NRYQNLJGWEVXAIQ3EP6R2YNQ7QC
G2CHQAOPRFFDCYVNDXMTB5Y5J2FBRREJPMUAJJTVQDSZE3VFLP3QC
6ECOC7L5ZARQZIDELJODXFZQK5JJKRS5C6IVC3S7V2WDBTOBX3ZAC
in-out property <bool> is-selected: false; touch := TouchArea { clicked => { is-selected = true; } }
in-out property <bool> is-selected: false;
touch := TouchArea {
clicked => {
is-selected = true;
}
in property <bool> is-selected: false; in property <bool> has-hover: false;
in property <bool> is-selected: false;
in property <bool> has-hover: false;
lowlighted when !is-selected && touch.has-hover: {
lowlighted when has-hover: {
off when !is-selected && !touch.has-hover: {
off when true: {
in-out property <int> selected: -1; callback selection-changed(/*new selection*/ int);
in-out property <int> selected: -1;
callback selection-changed(/*new selection*/ int);
is-selected: selected == index; has-hover: touch.has-hover; touch := TouchArea { clicked => { root.selected = index; root.selection-changed(index); } }
is-selected: selected == index;
has-hover: touch.has-hover;
root.selected = index;
root.selection-changed(index);