mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
fmt: fix alignment of struct init fields (#22025)
This commit is contained in:
parent
99da5726db
commit
c51d30bf53
671 changed files with 18817 additions and 18787 deletions
|
@ -19,17 +19,17 @@ fn main() {
|
|||
mut font_path := os.resource_abs_path(os.join_path('..', 'assets', 'fonts', 'RobotoMono-Regular.ttf'))
|
||||
mut app := &App{}
|
||||
app.gg = gg.new_context(
|
||||
bg_color: gx.rgb(174, 198, 255)
|
||||
width: 600
|
||||
height: 400
|
||||
bg_color: gx.rgb(174, 198, 255)
|
||||
width: 600
|
||||
height: 400
|
||||
window_title: 'Drag and drop'
|
||||
frame_fn: frame
|
||||
font_path: font_path
|
||||
user_data: app
|
||||
event_fn: my_event_manager
|
||||
frame_fn: frame
|
||||
font_path: font_path
|
||||
user_data: app
|
||||
event_fn: my_event_manager
|
||||
// drag & drop
|
||||
enable_dragndrop: true
|
||||
max_dropped_files: max_files
|
||||
enable_dragndrop: true
|
||||
max_dropped_files: max_files
|
||||
max_dropped_file_path_length: 2048
|
||||
)
|
||||
app.gg.run()
|
||||
|
@ -52,7 +52,7 @@ fn frame(mut app App) {
|
|||
mut txt_conf := gx.TextCfg{
|
||||
color: gx.black
|
||||
align: .left
|
||||
size: int(text_size * app.gg.scale + 0.5)
|
||||
size: int(text_size * app.gg.scale + 0.5)
|
||||
}
|
||||
app.gg.draw_text(12, 12, text, txt_conf)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue