133 Commits

Author SHA1 Message Date
Nolan Darilek
49886802ce Emit Show/Hide events when a layout is shown or hidden. (#63) 2019-04-30 14:46:12 -04:00
Nolan Darilek
52a9f818d8 Implement Focus event. (#62)
* Implement `Focus` event.

* Add Blur event.
2019-04-23 12:19:17 -04:00
airstruck
967002a816 remove unpack from latest PR 2018-04-17 16:04:53 -04:00
Bernhard Liebl
03ad922a65 fixes for löve 11.0 (#60)
Changed all color values to be in the range 0-1, rather than 0-255
2018-04-17 15:22:16 -04:00
airstruck
3aa71d750b fix Backend.quit 2017-08-10 16:44:04 -04:00
Luka Vandervelden
aa7d02b757 Scancodes exposed to KeyPress and KeyRelease events. (#54) 2017-08-10 16:10:00 -04:00
airstruck
709c012b43 Fix #46 2016-08-18 14:08:13 -04:00
airstruck
774d2856c1 reorganize themes, see #42 2016-02-11 11:11:56 -05:00
nobody
c9a5811adc Launcher for the LuaJIT backend.
Looks for main.lua. Launch it like this:

    luajit myapp/lib/luigi/launch.lua

If luigi isn't inside the project directory, pass
the path containing main.lua as the second argument.
The path must end with a directory separator.

    luajit /opt/luigi/launch.lua ./myapp/

If the app prefixes luigi modules with something
other then 'luigi', pass that prefix as the third
argument.

    luajit /opt/luigi/launch.lua ./myapp/ lib.luigi
2016-02-10 16:11:29 -05:00
nobody
1a75af526e make slider slightly less ugly 2016-02-08 14:31:30 -05:00
nobody
a5f1a9b1da minor 2016-02-08 13:47:20 -05:00
airstruck
51e0321709 Remove printf from backend 2016-02-08 11:57:51 -05:00
airstruck
971afaf1e7 Text widget: intersect scissor.
Fixes a visual bug where text would display outside widget boundary.
Mved intersectScissor to Backend.
2016-02-08 11:52:10 -05:00
airstruck
a4a34ce787 First-class slices, fixes #6 2016-02-08 10:58:09 -05:00
airstruck
3ff76864d3 text widget: try to determine whether keypresses are related to text input, fix #40 2016-02-05 16:43:14 -05:00
airstruck
a7837d64db fix #41 2016-02-05 14:23:53 -05:00
airstruck
0b62db39ae fix scroll-to-caret in text widget, fixes #38 2016-02-05 00:37:55 -05:00
airstruck
cf42d88148 remap " " to "space" for love 0.9 2016-02-05 00:32:40 -05:00
airstruck
95ba34f7b1 text widget eats all keys except tab, fix #37 and #39 2016-02-05 00:28:56 -05:00
airstruck
2d5e4f953f minor 2016-01-31 14:26:22 -05:00
airstruck
206c500737 minor 2016-01-31 14:20:56 -05:00
Robert Machmer
8bb39acbd4 Use cmd abbreviation instead of command on OSX
This is how it is usually done in OSX programs.
2016-01-31 12:58:13 +01:00
airstruck
04fcd2c5f4 Fix regression in text widget 2016-01-30 15:35:00 -05:00
airstruck
4f03f6af52 make sure shortcut was pressed when handling release 2016-01-29 23:38:11 -05:00
airstruck
e53f470bb9 create "pseudo-widget" for option groups 2016-01-28 21:28:30 -05:00
airstruck
bbbdccb3b5 add horizontal scrolling, fix #3 2016-01-28 16:17:45 -05:00
airstruck
93e619862e Merge pull request #30 from rm-code/cleanup
Remove unused variable
2016-01-28 13:45:20 -05:00
airstruck
b0614e67f1 Display appropriate strings for shortcuts 2016-01-28 13:47:11 -05:00
Robert Machmer
f336250785 Remove unused variable 2016-01-28 19:38:36 +01:00
airstruck
d1501fca41 Add special 'mac-' and 'win-' modifiers, fixes #29 2016-01-28 12:02:56 -05:00
airstruck
f9a8ffa2e2 shortcut attrib: allow multiple shortcuts per widget 2016-01-27 16:56:39 -05:00
airstruck
0c33538de9 text widget: expose special key combos 2016-01-27 16:33:11 -05:00
airstruck
346cbac946 text widget: separate mac/non-mac keyboard support 2016-01-27 15:13:03 -05:00
airstruck
e6c649ba49 text widget: move caret a word at a time 2016-01-27 13:28:17 -05:00
airstruck
0fc431d894 command and ctrl 2016-01-26 20:06:34 -05:00
nobody
1161191007 fix scrolling 2016-01-26 16:19:27 -05:00
airstruck
01f958fb6c shortcuts treat lgui/rgui as ctrl key 2016-01-25 16:46:09 -05:00
Robert Machmer
bf8d59ce4c Allow user to move caret to end of a line or its beginning
On Windows the user can press the 'home' or 'end' key to jump around. On
OSX he has to use cmd+arrow keys to move around.

If the user holds down shift while performing the above operations the
whole line will be selected from where the caret was currently placed.
2016-01-25 11:12:58 +01:00
Robert Machmer
1a31293ac5 Make controls nicer for OSX users
These operations are done via the command button on OSX.
2016-01-25 01:52:23 +01:00
airstruck
fce7b2698c text widget: handle ctrl-a (select all) 2016-01-21 15:38:35 -05:00
airstruck
19bb0b935f text widget: handle "delete" key 2016-01-21 15:36:23 -05:00
airstruck
b084583f42 trim text selection range when appropriate; fix #22 2016-01-21 15:24:33 -05:00
airstruck
eaf6fc1dca Allow removal of default layout behaviors (tab nav, mouse scroll, etc.) 2016-01-19 21:44:27 -05:00
airstruck
631fa7d9fe minor 2016-01-19 16:48:54 -05:00
airstruck
85675a0477 minor 2016-01-19 14:53:47 -05:00
airstruck
93da8dedfa add Layout:placeNear convenience method 2016-01-19 14:46:47 -05:00
airstruck
78e02c190e fix origin widget for PressEnd events generated by keyboard shortcuts 2016-01-19 12:53:11 -05:00
airstruck
ab43dabcb9 Add solid and modal attributes.
The `solid` attribute determines whether to propagate events downwards.
When the widget being interacted with is not solid, events propagate down
to the next layout or to underlying handlers (for example love callbacks).
This is set by the theme and works mostly behind the scenes.

The `modal` attribute can be placed on a layout root to prevent input events
from propagating downwards, even those that fall outside of the layout.
2016-01-19 12:20:19 -05:00
airstruck
d0628a8d1d minor 2016-01-05 09:41:03 -05:00
airstruck
3904631dda Clean up text widget.
This fixes a visual bug where the highlighted area wouldn't update
when the widget was reshaped, and fixes some weirdness with local
functions in preparation for exposing them as part of a rich API
for the text widget.
2016-01-04 02:09:44 -05:00