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

316 Commits

Author SHA1 Message Date
d60ceb45cd gg: make create_image() return !Image 2023-03-29 19:04:41 +02:00
6756d28595 all: 2023 copyright 2023-03-28 22:55:57 +02:00
cd00beb099 gg: add toggle_fullscreen and is_fullscreen (#17371) 2023-02-20 21:58:04 +02:00
791ef4b4a6 gg: fix gg.scissor_rect behavior on Android (#17229) 2023-02-06 12:26:20 +02:00
988aed0353 ci: fix broken tests after 322eb81 2023-02-01 23:30:48 +02:00
26b9464f51 gg: setup ctx.window.user_data and ctx.user_data on ctx.run(), instead of in gg.new_context, to allow for embedding gg.Context in ui (#17169) 2023-01-31 18:22:20 +02:00
1470eb6fa4 gg: fix native image rendering with with/height=0 2023-01-30 16:06:18 +01:00
868908b80d checker: require unsafe for Struct(voidptr) casts 2023-01-06 09:28:11 +03:00
88e33a83de gg: fix draw_image on macos native; vcreate: vweb template 2022-12-21 19:33:37 +03:00
6e24f7e13a gg: always use 4 channels in init_sokol_image (#16564) 2022-12-01 18:54:37 +03:00
017ace6ea7 vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
37583b04b4 gg: make create_image's receiver immutable 2022-11-14 17:25:42 +03:00
5bb058e35b gg: revamp the Context pipeline for more effects, implement an additive effect (#16394) 2022-11-12 09:39:18 +02:00
b52b8429d4 vfmt: implement support for // vfmt off and // vfmt on, with it, v fmt -w . now works. (#16335) 2022-11-05 09:08:01 +03:00
3c25f506ed Revert "stbi: fix loading image from memory (#15981); breaks UI's rectangle example on macos, probably others too"
This reverts commit 07d5612347.
2022-10-10 10:39:32 +03:00
07d5612347 stbi: fix loading image from memory (#15981) 2022-10-07 17:20:35 +03:00
b584e1df98 checker: allow EnumName(number) casts only inside unsafe{} blocks (#15932) 2022-10-02 22:39:11 +03:00
711bb6def7 gg: rename Context.set_cfg() -> Context.set_text_cfg() (#15904) 2022-09-29 15:24:16 +03:00
816e9319d7 cgen: remove the need for [console] for gg or ui programs on windows (#15912) 2022-09-29 15:02:50 +03:00
66249b8c45 gg: radius_to_segments() should use Context.scale (#15906) 2022-09-28 10:40:40 +03:00
089e89f865 gg: improve arc/slice drawing (#15856) 2022-09-25 15:22:10 +03:00
7e69619add builtin, compiler: replace isnil(x) calls with x == unsafe { nil } (a little faster without -prod) (#15759) 2022-09-15 14:59:37 +03:00
8b962f8446 checker: fix nested struct reference type field initialized check. (fix: #15741) (#15752) 2022-09-15 07:59:31 +03:00
5a3a145e99 gg: fix native draw_circle on macos 2022-07-25 17:25:47 +03:00
9099594a49 all: wrap up unsafe { nil } (p. 3) 2022-07-21 21:01:30 +03:00
dc79f1392b all: voidptr(0) => unsafe { nil } (p.2) 2022-07-21 20:51:54 +03:00
caa0c2f153 vfmt: voidptr(0) => unsafe { nil } (p.1) 2022-07-21 20:46:01 +03:00
041e90b2e2 checker, cgen: fix interface embedding smartcast (fix #13296) (#15127) 2022-07-19 16:36:16 +03:00
f0ce7fb9d3 Revert "gg: fix android compilation for ~/.vmodules/ui/examples/rectangles.v"
This reverts commit f1a855e6d2.
2022-07-06 16:19:40 +03:00
f1a855e6d2 gg: fix android compilation for ~/.vmodules/ui/examples/rectangles.v 2022-07-06 16:02:50 +03:00
0dd5050b29 os: clean up usage of ANativeActivity, allow access to fields (#14948) 2022-07-05 16:30:10 +03:00
b6b611aa82 v: support better separation of general Android vs Termux specific code (part 2) 2022-07-01 13:18:31 +03:00
71ff221cff gg: update draw polygon test (#14880) 2022-06-30 21:21:12 +03:00
28068e8ecf gg: add draw_polygon_filled test (#14871) 2022-06-28 08:30:45 +03:00
6b2d3a826b gg: add draw_polygon_filled fn with rotation parameter (#14867) 2022-06-27 21:34:43 +03:00
d42aadda0f gg: fix draw arch functions alpha color (#14850) 2022-06-26 00:03:43 +03:00
139c34c07d gg: optimise app.gg.show_fps() (cache ctx.text_size() results, round frame to int without interpolation, center text inside the background rectangle) 2022-06-12 16:07:00 +03:00
4682e17ac1 gg: fix v -d show_fps run examples/gg/stars.v 2022-06-12 15:17:04 +03:00
7e06203da8 gg: support -d show_fps for all gg apps 2022-06-12 14:20:32 +03:00
f58e5a94c2 gg: fire resize event before init if necessary on Android (#14725) 2022-06-08 21:43:20 +03:00
d679146a80 fmt: remove space in front of ? and ! (#14366) 2022-05-13 06:56:21 +03:00
eb03fad934 gg: improve some loops in draw_rounded_rect* methods (#14195) 2022-04-27 22:57:48 +03:00
85f616877f gg: fix gg.draw_rounded_rect_empty() graphical abnormalities and some optimizations (#14186) 2022-04-27 11:22:57 +03:00
c26b7666c7 gg: some stuff required to have svg and png screenshots working on v ui (#14180) 2022-04-26 20:59:36 +03:00
03d21a727e gg: fix gg.draw_rounded_rect_filled() graphical abnormalities (#14128) 2022-04-22 00:16:10 +03:00
1c6f63ac0a tests: use u8 everywhere 2022-04-15 18:34:15 +03:00
fbb9e65c0f all: ~500 more byte=>u8 2022-04-15 18:25:45 +03:00
fb192d949b all: replace []byte with []u8 2022-04-15 15:35:35 +03:00
d4a0d6f73c all: byte => u8 2022-04-15 14:58:56 +03:00
56e6fd01c5 gg: document pub functions in text_rendering and m4/vector (#13961) 2022-04-06 19:34:02 +03:00