File: template-callback-async-ret-value.rs

package info (click to toggle)
rust-gtk4-macros 0.10.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 268 kB
  • sloc: makefile: 2
file content (14 lines) | stat: -rw-r--r-- 273 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Take a look at the license at the top of the repository in the LICENSE file.

struct Callbacks;

#[gtk::template_callbacks]
impl Callbacks {
    #[template_callback]
    async fn on_clicked(_widget: gtk::Widget) -> String {
        "Hello".into()
    }
}

fn main() {}