Commit graph

479 commits

Author SHA1 Message Date
Admin
6b5773eea5 async networking scripting 2025-10-30 15:54:14 +01:00
Admin
3d6e4c4a4b typecheck arg 2025-10-30 10:26:40 +01:00
Admin
f75f7adc9a default to cx for script macro 2025-10-30 10:17:14 +01:00
Admin
c6b76a4566 fix + to autodetect concat 2025-10-30 09:31:39 +01:00
admin
fcb8fa8faf first fs apis working 2025-10-29 17:26:31 +01:00
Admin
255c0b4d88 script interface for httprequest complete! 2025-10-29 14:02:29 +01:00
Admin
25e0d31aea add json parser 2025-10-28 17:55:42 +01:00
Admin
45068fbb25 add string to vec mappings 2025-10-28 12:46:50 +01:00
Stevo
7435852986
Fix X11 Linux compilation errors (#804)
- Fixed missing comma after CopyToClipboard match arm
- Fixed premature closing brace in match statement
- Corrected OpenglCx import path from opengl_x11 to opengl_cx
- Fixed incorrect use of 'self' instead of 'cx' in ShowTextIME, CheckPermission, and RequestPermission handlers

These changes resolve compilation errors that prevented building makepad-studio on Linux X11.
2025-10-27 20:21:03 +01:00
Admin
3c1d9c29d4 splitting off typed arrays 2025-10-27 09:30:44 +01:00
Admin
5c7a718924 make sure strings have singular rep 2025-10-26 10:30:59 +01:00
Admin
de86ff4028 make types longer 2025-10-25 21:21:49 +02:00
Admin
12d7b8f2ab make types longer 2025-10-25 21:19:30 +02:00
Admin
2176889023 Fused Id and LiveId 2025-10-25 20:53:30 +02:00
Julián Montes de Oca
f8cd9e6683
Enhance touch handling by using touch radius across platforms. (#801)
- Updated hit testing to account for finger size
- added touch size retrieval in iOS and Android
2025-10-25 19:42:18 +02:00
Julián Montes de Oca
4f221544f4
Fix macOS high CPU usage during idle (#798)
- Main loop timer is no longer running unconditionally but rather armed/disarmed on demand
- Removed unnecessary repaint_windows() call
- File watcher is now only included for debug builds
2025-10-25 19:41:10 +02:00
Drin
8a33f8c37e
feat: a native wayland backend (#793)
* initialize the event loop for wayland backend

Signed-off-by: drindr <dreamchancn@qq.com>

* feat: hidpi wayland and mouse event
- hidpi support with wayland
- mouse event support
- refactor some code

Signed-off-by: drindr <dreamchancn@qq.com>

* wayland xkbcommon for key pressing event

Signed-off-by: drindr <dreamchancn@qq.com>

* add support for IME in with wayland

---------

Signed-off-by: drindr <dreamchancn@qq.com>
Co-authored-by: makepaddev <20386332+makepaddev@users.noreply.github.com>
2025-10-25 19:35:58 +02:00
Julián Montes de Oca
c659a7da56
Add audio input permission handling and example project (#792)
* Add permission handling for audio input

- Introduced `CheckPermission` and `RequestPermission` operations in `CxOsOp` for managing audio input permissions.
- Implemented permission status checks and requests across iOS, macOS, and Android.
- Added a new `Permission` module to define permission types and statuses.
- Updated event handling to include permission results in the event system.
- Updated manifest files to include necessary permissions for audio input on Android.

* Add audio example project

- Added a new example project for audio processing and permission handling
- Implemented UI components for audio device selection, microphone capture, and playback controls.
- Integrated permission handling for audio input and updated the workspace configuration to include the new example.

* Implement audio permission in Web, catch up Linux and Windows

* Refactor iOS permission handling to avoid ios_app re-entrancy

* Implement iOS mic capture and add sample rate to AudioInfo

* Ensure iOS audio output uses loudspeaker, only when not using external devices

* Enhance audio example by handling sample rates and resampling
2025-10-25 19:15:57 +02:00
Julián Montes de Oca
ef8502d3a3
Fix double borrowing if IOS_APP during window geometry check (#791)
Co-authored-by: Julian Montes de Oca <joulei@buriza.local>
2025-10-25 19:15:44 +02:00
Julián Montes de Oca
d85f0b1778
Fix websockets drop panic (#790) 2025-10-25 19:15:22 +02:00
Guocork
a71c71a7de
Change XStoreName to Xutf8SetWMProperties (#742)
* Fix bug in text centering

* change XStoreName to Xutf8SetWMProperties

---------

Co-authored-by: Eddy Bruel <me@eddybruel.com>
Co-authored-by: Admin <info@makepad.nl>
Co-authored-by: makepaddev <20386332+makepaddev@users.noreply.github.com>
2025-10-25 18:57:22 +02:00
Admin
8741f03d20 vec and option 2025-10-25 17:03:17 +02:00
Admin
5cb44bd4c9 vec and option 2025-10-25 16:39:23 +02:00
Admin
7fb9ec7525 prepare procmacros 2025-10-21 10:26:39 +02:00
Admin
601ef508ef fixed tests 2025-10-17 21:58:13 +02:00
Admin
192714f3ff clean up heap 2025-10-17 08:38:43 +02:00
Admin
b4e2dda008 add script dep to platform 2025-10-16 13:04:49 +02:00
Admin
dd90bc1c88 add script macro 2025-10-13 13:50:09 +02:00
makepaddev
86422fb774 wasm elide warnings removed 2025-09-09 22:24:18 +02:00
makepaddev
6a9b75c601 fix elided lifetime warnings 2025-09-09 21:37:52 +02:00
Admin
0e77401bbc longer timeouts on macos urlsession 2025-09-09 09:30:29 +02:00
Lyda
252f4e328a
Implement IME composition handling in WasmWebBrowser (#772)
* Implement IME composition handling in WasmWebBrowser

This update introduces support for handling Input Method Editor (IME) composition events in the WasmWebBrowser class. The changes include:

- Added event listeners for `compositionstart`, `compositionupdate`, and `compositionend` to manage the composition state and data.
- Skipped normal input events during composition to prevent interference.
- Sent the final IME input result to the WebAssembly module upon composition end, ensuring proper handling of user input.

These enhancements improve the text input experience for users utilizing IME, particularly for languages requiring composition.

* chore: remove log
2025-07-29 09:27:27 +02:00
Kevin Boos
7513acdf3f
Update old windows-targets dep version to reduce lockfile duplicates (#780)
All other crates in the Rust ecosystem depend on `windows-targets`
v0.52.*, so this small change vastly reduces the number of duplicate
`windows-*` crate dependencies that cargo must download and track in the lockfile.

Also address minor compiler warnings in AdaptiveView.
2025-07-12 02:10:51 +02:00
okapii
727f6b9d14 Adding min/max support to DSL expressions 2025-07-10 11:21:38 +02:00
Eddy Bruel
ad8891a4be Further cleanup 2025-07-09 15:04:16 +02:00
alanpoon
836d042c45
Persistent and restoration of Window State (#770)
* Added create_window, remove is_created check

* Added Event::Shutdown for window when shutting down

* reduce code redundancy with assignment

Co-authored-by: Kevin Boos <1139460+kevinaboos@users.noreply.github.com>

* allow macos fullscreen

* add window_fullscreen

* window_fullscreen

* linux_x11, support set fullscreen during initalisation

---------

Co-authored-by: Kevin Boos <1139460+kevinaboos@users.noreply.github.com>
2025-06-20 20:49:55 +02:00
Guocork
792011702e
impl set_position on Linux (#748)
* impl  set_position

* remove set value

* finish set_position
2025-06-20 20:49:03 +02:00
Julián Montes de Oca
432dd2207a
Implement data directory handling for mobile platforms (#769)
- Add `get_data_dir` method to `CxOsApi` for retrieving writable data directory paths on mobile platforms.
2025-06-20 20:48:48 +02:00
Julián Montes de Oca
9f93aea7cd
AdaptiveView Improvements (some regression fixes) (#764)
* Fix DrawList generation mismatch in overlay cleanup

Prevents "Drawlist id generation wrong index" errors when AdaptiveView
switches between variants by using checked_index() instead of direct
indexing to safely handle recycled DrawList IDs in overlay.end().

* Dispatch WindowGeomChange on web upon CreateWindow

* Move display context updates to window and improve default selector in AdaptiveView
2025-06-03 22:11:55 +02:00
Admin
d48585604d fix up openxr anchors 2025-05-31 21:38:42 +02:00
Admin
b44537fdbb fix up quest xr demo 2025-05-31 20:23:19 +02:00
Admin
5b3130e624 fix IME backspace on macos regression 2025-05-15 21:53:46 +02:00
Admin
0abdc02f22 1.0.0 2025-05-15 16:46:16 +02:00
Admin
750221451c fix webgl 2025-05-15 16:46:16 +02:00
Admin
a1868e19d3 remove shader cache dir warning 2025-05-13 09:23:58 +02:00
Admin
227f3aa152 websocket closed unexpectedly 2025-05-13 09:09:57 +02:00
Admin
b07dd40d7c studio keepalive 2025-05-13 08:42:40 +02:00
Admin
64fdec5b64 fix tint uizoo windows 2025-05-13 08:34:23 +02:00
Admin
ab846774bf keepalive websocket 2025-05-13 08:07:59 +02:00
Admin
8ecf0d9265 fix linux stdin timers 2025-05-13 07:59:32 +02:00