Commit graph

77 commits

Author SHA1 Message Date
amrbashir 6f1c8cc9c9
fix(windows): draw menubar for window after changes 2022-06-07 18:53:42 +02:00
Amr Bashir 0201895d74
feat: add menu hide, show and remove (#8) 2022-06-07 18:32:10 +02:00
Amr Bashir 6b98160e49
feat: accelerators (#6)
* feat: accelerators

* add accelerators on windows
2022-06-07 13:05:20 +02:00
amrbashir 68f16f15a3
refactor(linux): use Rc<RefCell> instead of Arc<Mutex> 2022-06-06 14:42:35 +02:00
amrbashir 6cb2ce1c7a
feat(linux): document requirements and return gtk::Box 2022-06-06 14:36:22 +02:00
amrbashir c8dcb40d56
chore: rename wchar_ptr_to_string to decode_wide 2022-06-05 15:42:18 +02:00
amrbashir fc7b519b6a
chore: switch to tao branch that disables gtk menu creation 2022-06-05 15:13:56 +02:00
amrbashir f5fb8b1df6
fix(macos): fix returning BOOL instead of bool 2022-06-05 15:05:42 +02:00
Jason Tsai 125628b1ff
Implement macOS Submenu label, enabled (#3)
* fix panic in label better

* implement macos Submenu `enabled` state
2022-05-20 12:22:46 +08:00
Jason Tsai 1ab9c9b9e8
feat: implement label and enabled in macOS TextMenuItem (#2)
* feat: implement label, enabled methods for macos TextMenuItem

* fix: using lossy version of from_utf8 and change the way we convert UTF8String to String
2022-05-16 14:11:19 +02:00
amrbashir a7b7b0cf34
typo 2022-05-08 19:36:39 +02:00
Yu-Wei Wu 1e33121a8f
Fix winit example 2022-05-08 19:39:00 +08:00
Yu-Wei Wu 413358ed85
Add init_for_nsapp 2022-05-08 14:32:31 +08:00
Ngo Iok Ui (Wu Yu Wei) b5886fe6b1
Merge pull request #1 from wusyong/macos
Add macos port

Co-authored-by: Jason Tsai <jason@pews.dev>
2022-05-07 21:52:52 +08:00
Yu-Wei Wu b2f1a3ab4f
Add macos port
Some configurations haven't implemented yet or just seem not possible.

Co-authored-by: Jason Tsai <jason@pews.dev>
2022-05-07 21:28:11 +08:00
amrbashir cadb53087b
rename crate to muda 2022-05-07 11:19:58 +02:00
amrbashir 7021b6c585
update crate metadata 2022-05-07 01:02:52 +02:00
amrbashir 31e2624ada
rename crate to minit 2022-05-07 00:52:41 +02:00
amrbashir 17ae5366c7
add documentation 2022-05-06 22:57:58 +02:00
amrbashir 2ccd400497
use native apis for getters on windows 2022-05-06 19:37:49 +02:00
amrbashir 832e4964e7
implement windows 2022-05-06 18:38:39 +02:00
amrbashir bac4dbd1ab
add title & enabled getters 2022-05-06 17:18:34 +02:00
amrbashir 0fbc8cf4f4
simplify and leave some comments for the future 2022-05-06 17:08:49 +02:00
amrbashir fbef2d8a40
use an event channel instead of callbacks 2022-05-06 16:25:45 +02:00
amrbashir b5598554a0
update exmaples 2022-05-05 17:30:35 +02:00
amrbashir cff1103cf4
add menu item handler on linux 2022-05-05 17:04:48 +02:00
amrbashir a46c53dbe9
init - initial linux support 2022-05-05 13:50:22 +02:00