mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
test-cleancode: check some of the examples too
This commit is contained in:
@ -480,17 +480,18 @@ fn event(e &ui.Event, x voidptr) {
|
||||
app.event(e)
|
||||
}
|
||||
|
||||
// main
|
||||
mut app := &App{}
|
||||
app.tui = ui.init(
|
||||
user_data: app
|
||||
init_fn: init
|
||||
frame_fn: frame
|
||||
cleanup_fn: cleanup
|
||||
event_fn: event
|
||||
fail_fn: fail
|
||||
capture_events: true
|
||||
hide_cursor: true
|
||||
frame_rate: 60
|
||||
)
|
||||
app.tui.run() ?
|
||||
fn main() {
|
||||
mut app := &App{}
|
||||
app.tui = ui.init(
|
||||
user_data: app
|
||||
init_fn: init
|
||||
frame_fn: frame
|
||||
cleanup_fn: cleanup
|
||||
event_fn: event
|
||||
fail_fn: fail
|
||||
capture_events: true
|
||||
hide_cursor: true
|
||||
frame_rate: 60
|
||||
)
|
||||
app.tui.run() ?
|
||||
}
|
||||
|
Reference in New Issue
Block a user