Commit graph

43 commits

Author SHA1 Message Date
Emil Ernerfeldt
d4204f03c0 Refactor: break out Layout to own struct/file 2020-05-13 22:23:33 +02:00
Emil Ernerfeldt
7a1c97ccfe Simplify and unify queries about available space 2020-05-12 18:21:09 +02:00
Emil Ernerfeldt
8c0942bf1e Show menu bar in main window instead of in example window 2020-05-12 07:27:14 +02:00
Emil Ernerfeldt
71154edf9b Add a fractal clock example to showcase painting performance 2020-05-11 20:21:24 +02:00
Emil Ernerfeldt
6bee26ca59 Glium: persist window position and size 2020-05-10 21:16:24 +02:00
Emil Ernerfeldt
f1c57cb950 Improve example app 2020-05-10 19:04:10 +02:00
Emil Ernerfeldt
fa82e8d806 Rename Region to Ui (shorter, sweeter) 2020-05-08 22:42:31 +02:00
Emil Ernerfeldt
9f6e9c94d6 Merge struct Emigui into Context 2020-05-08 22:25:28 +02:00
Emil Ernerfeldt
87e3aacf35 enforce and fix a bunch of clippy issues 2020-05-07 10:47:03 +02:00
Emil Ernerfeldt
45564f952b Kinetic windows 2020-05-03 13:28:47 +02:00
Emil Ernerfeldt
bfbb669d02 Store/restore emigui memory state (window positions, sizes etc) 2020-05-02 11:37:12 +02:00
Emil Ernerfeldt
b73fbb33d8 Improve size negotiation code.
Better enfocred minimum sizes.
You can now have windows that expand to fit their content.
2020-05-01 02:08:01 +02:00
Emil Ernerfeldt
4c79064760 Move code from glium example into glium library 2020-04-29 21:58:14 +02:00
Emil Ernerfeldt
14db237b1d Basic text input support 2020-04-29 21:25:49 +02:00
Emil Ernerfeldt
89823ab617 Print frame times for glium and wasm excluding painting 2020-04-29 07:20:27 +02:00
Emil Ernerfeldt
1e685d1cb0 Add support for text input in emilib and glium.
Add input inspectors
2020-04-28 23:05:22 +02:00
Emil Ernerfeldt
154424384f Implement Window as collection of Floating + Frame + Resize 2020-04-25 22:49:57 +02:00
Emil Ernerfeldt
e26d08851f Add Floating and Frame containers as building blocks for windows 2020-04-25 15:26:24 +02:00
Emil Ernerfeldt
3a430c8fc7 Add new Resize container 2020-04-25 14:37:39 +02:00
Emil Ernerfeldt
8f879de9f5 minor glium app change 2020-04-25 11:12:00 +02:00
Emil Ernerfeldt
299cc76fcf silence clippy warning 2020-04-25 10:50:51 +02:00
Emil Ernerfeldt
b39555bb23 Add support for hyperlinks 2020-04-23 19:15:17 +02:00
Emil Ernerfeldt
fd8180cea4 Fix left alignment of widgets and tweak style slightly 2020-04-23 00:23:29 +02:00
Emil Ernerfeldt
a8d9c3fc42 Listen to scroll wheel (glium only) 2020-04-22 20:01:49 +02:00
Emil Ernerfeldt
4efbb94e1b Various small improvements 2020-04-21 20:48:31 +02:00
Emil Ernerfeldt
e9bdadb1da Some visual tweaks 2020-04-21 16:50:56 +02:00
Emil Ernerfeldt
0ed578341b Add time as input to emigui to enable animations 2020-04-21 14:46:42 +02:00
Emil Ernerfeldt
3a869aa5db Fix pixel vs points bug in logical screen size of glium window 2020-04-21 07:38:46 +02:00
Emil Ernerfeldt
2f02446f6f WIP: clip_rect 2020-04-20 23:48:55 +02:00
Emil Ernerfeldt
335b22d38d Create region.add_label shortcut 2020-04-20 23:45:05 +02:00
Emil Ernerfeldt
98178e9d69 Show resize mouse cursor when resizing windows 2020-04-20 10:01:13 +02:00
Emil Ernerfeldt
472e0b9afe Refactor Region: remember region rectangle
This will be used as a clip rectangle for generated paint commands.
2020-04-20 00:48:54 +02:00
Emil Ernerfeldt
6eae91e028 Distinguish ids that need to be unique and warn about name clashes 2020-04-19 11:13:24 +02:00
Emil Ernerfeldt
2170081221 Use new type Pos2 for positions (points) instead of Vec2 2020-04-19 01:05:49 +02:00
Emil Ernerfeldt
481af55ce5 Handle window paint order (click to bring to front etc) 2020-04-17 23:22:28 +02:00
Emil Ernerfeldt
f709423809 Rename Data to Context and move to own file 2020-04-17 15:33:52 +02:00
Emil Ernerfeldt
1d3836ba80 Add rudimentary support for gui windows that you can move around 2020-04-17 14:26:36 +02:00
Emil Ernerfeldt
d999962602 Refactor example code 2020-04-12 12:07:51 +02:00
Emil Ernerfeldt
9b862e9ec4 Update example_glium 2019-11-18 20:06:41 +01:00
Emil Ernerfeldt
1d6bc3baba Minor API improvements 2019-04-25 18:07:36 +02:00
Emil Ernerfeldt
4836860c7b Create emigui_glium library 2019-04-21 10:13:05 +02:00
Emil Ernerfeldt
2c2450e67b Fix retina resolution of example_glium 2019-03-16 12:57:44 +01:00
Emil Ernerfeldt
01862d07ae Add native glium backend 2019-03-12 22:59:55 +01:00