1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

150 Commits

Author SHA1 Message Date
Delyan Angelov
b2391424d9
examples: add examples/gg/random.v demonstrating how to stream images/pixels 2021-06-24 17:45:14 +03:00
Delyan Angelov
cc91d9bee3
gg: keep/update commonly used event state inside the gg.Context 2021-06-24 11:14:57 +03:00
kahsa
f1c4753cc0
gg: fix draw_line (#10534) 2021-06-21 20:30:03 +03:00
KJ Lawrence
123682dffb
gg: add a draw_line_with_config method (#10513) 2021-06-19 21:32:08 +03:00
KJ Lawrence
22214c73e3
gg: apply ctx.scale to circle pos (#10512) 2021-06-19 09:07:34 +03:00
Delyan Angelov
98613036c1 gg: fix draw_line on m1 2021-06-07 21:31:24 +03:00
KJ Lawrence
452a51c8fe
gg: render text if we fell back to system default (#10307) 2021-06-02 16:00:14 +03:00
KJ Lawrence
465860e418
gg: fix ctx.scale for circles (#10210) 2021-05-28 22:37:02 +03:00
KJ Lawrence
9fab4af3f1
gg: update the mouse click callback to pass what mouse button was clicked too (#10225) 2021-05-28 12:46:23 +03:00
Wertzui123
a095a27d00
gg: change vid to ved in a comment (#10218) 2021-05-27 20:14:36 +03:00
KJ Lawrence
6cdc7646b8
gg: add quit fn (#10223) 2021-05-27 17:56:18 +03:00
Uwe Krüger
d26ac5692e
all: various fixes for [heap]/auto-heap handling (#10033) 2021-05-07 15:58:48 +03:00
R cqls
8af6237e28
gg: fix width and height in draw_rounded_rect primitive (#9926) 2021-04-29 10:58:57 +03:00
Don Park
aebb551e93
cgen: do full struct initialisation for V structs, fixes invalid data from map[string]Struct{}['unknown'] (#9878) 2021-04-27 08:18:48 +03:00
kahsa
f36e46bfde
gg:fix draw_line for android (#9882) 2021-04-26 10:01:55 +03:00
spaceface
73352583e7
ci: fix all -cstrict warnings with gcc and clang (#9792) 2021-04-19 15:38:48 +03:00
Larpon
8caabf0e9e
sokol: update to floooh/sokol@c602d83 (#9607) 2021-04-07 20:39:23 +02:00
Alexander Medvednikov
1716e8dd04 gg: byteptr fixes 2021-04-04 18:05:01 +03:00
Alexander Medvednikov
cbf4715804 gg: ui mode fixes 2021-03-27 13:03:19 +03:00
Lukas Neubert
a67d49050c
math: add a pure V math.mathutil, with generic min, max and abs functions (#9176), and use it consistently 2021-03-12 11:28:04 +02:00
Alexander Medvednikov
845e8decce x64: basic mach-o and arm64 support 2021-03-05 17:52:39 +03:00
spaceface
b712af56fd
all: bring back panic(err.msg) -> panic(err) (#9022) 2021-03-01 00:18:14 +01:00
spaceface
d63b7bc35a
all: update repo to use the new error handling syntax (#8950) 2021-02-28 23:20:21 +03:00
penguindark
1d69a0bd22
gg: window_size_real_pixels that for 3D without dpi scaling (#9004) 2021-02-27 22:11:26 +01:00
spaceface
b4dc6c83cd
gg: handle Android's own native dpi scaling factor (#8908) 2021-02-22 21:24:18 +02:00
R cqls
68972fcec6
gg: ensure window_size does not do / 0 (#8907) 2021-02-22 19:00:10 +02:00
Delyan Angelov
ab6517c5fc
gg: support passing down the state of pressed mouse buttons in mouse moves events 2021-02-17 20:14:37 +02:00
Alexander Medvednikov
d4a05bebde gg: use gg types for Events instead of sapp 2021-02-17 06:44:01 +01:00
Christopher Dieringer
94429c8fd8
gg: window_size: normalize dpi scaling (#8738) 2021-02-16 12:41:21 +01:00
Nick Treleaven
4a0367a63c
vlib: add [unsafe] tag to more functions: tos, string_from_wide, strings.Builder: write_bytes, free (#8766) 2021-02-15 17:15:52 +02:00
Lucas Hernán Tarche
7813ecbb75
gg: add draw_convex_poly/2 and draw_empty_poly/2 methods (#8487) 2021-02-01 18:18:23 +02:00
Larpon
85c5df23cf
gg: add window_size() function (#8409) 2021-01-29 12:11:03 +02:00
shadowninja55
f4baa3f39c
gg: add draw_square, draw_empty_square, and set_pixel (#8375) 2021-01-27 22:39:11 +02:00
Alexander Medvednikov
3dae3f786d gg: Context.resize() 2021-01-24 22:27:27 +01:00
Alexander Medvednikov
d991712b3c gg: native rendering mode on macOS 2021-01-23 10:25:43 +01:00
shadowninja55
a569dc17e8
gg: allow fonts loaded with $embed_file() to be used (#8263) 2021-01-21 23:07:47 +02:00
Lukas Neubert
ac2c3847af
all: update copyright to 2019-2021 (#8029) 2021-01-18 13:20:06 +01:00
zakuro
33694665f0
fmt: align each contiguous field of struct. not the whole. (#7981) 2021-01-12 04:38:43 +01:00
Swastik Baranwal
9291fb5e0c
checker: disallow comparison between enum and int (#7886) 2021-01-08 17:41:52 +01:00
Nick Treleaven
8fc33bc27d
checker: warn when casting number or a voidptr to reference type outside unsafe (#7900) 2021-01-05 20:07:45 +02:00
zakuro
dd516858d4
fmt: align struct field comments (#7632) 2021-01-03 21:10:25 +01:00
spaceface
480d78de2e
examples/2048: make tiles have rounded corners (#7763) 2021-01-01 13:04:51 +02:00
spaceface
214290d55b
fmt: add a space around single-line unsafe expressions (#7505) 2020-12-23 19:13:42 +01:00
Lukas Neubert
d59c5b01e1
fmt: intelligent line wrap for trailing struct syntax (#7309) 2020-12-14 05:03:17 +01:00
Delyan Angelov
ed9aa873c1
gg: use gg.system_font_path() as a fallback when a font can not be found 2020-12-07 21:40:24 +02:00
Delyan Angelov
0efdc7bbe8
gg: print a diagnostic message when a requested font file is not found 2020-12-07 21:28:41 +02:00
Lukas Neubert
02ba923ba7
fmt: do not add braces for trailing struct arg (#7072) 2020-12-04 11:22:26 +02:00
Alexander Medvednikov
cae3bd7f32 gg: vfmt gg.v 2020-12-04 01:27:40 +01:00
Alexander Medvednikov
e160f6e7d2 gg: screen_size() 2020-12-03 23:17:00 +01:00
Alexander Medvednikov
0ddf0a4b92 gg: custom bold font path 2020-12-01 16:30:25 +01:00