Commit Graph

76 Commits

Author SHA1 Message Date
Josh Tynjala
aebf139dc7 Fix window show/hide on desktop being incorrectly considered the same as app going into and out of the background/suspend on mobile
The app's Timers should still continue when a window is hidden. Especially since an app could have multiple windows, with some being shown and some being hidden. If only one were hidden, the other shown windows would clearly behave in a broken manner because the one hidden window would cause all app timers, even those associated with other windows, to be paused.

Introduces new WINDOW_SHOW AND WINDOW_HIDE events from C++ to Haxe, and new onShow and onHide events on Haxe Window.

Followup to 0918ee2381
2023-06-06 10:56:06 -07:00
Josh Tynjala
81d682d355 Window: add new setTextInputRect() method to optionally specify the location of the input when textInputEnabled is set to true
On native, this uses SDL_SetTextInputRect
2022-06-09 14:14:05 -07:00
Apprentice-Alchemist
892d4612c4 Close #1516.
Fixe an inconcistency between the C and haxe sides of the OpenGL bindings.
2022-04-28 19:42:34 +02:00
Joshua Granick
a482c14d5c GL binding fixes 2019-03-14 10:15:00 -07:00
Joshua Granick
78e99bf1d9 Remove whitespace lines 2018-07-18 17:32:51 -07:00
Joshua Granick
6ae72ea462 Native cleanup, merge lime.ui.Mouse into Window 2018-07-09 15:31:55 -07:00
Joshua Granick
4a34bc515c Finish first pass on refactor render 2018-07-05 09:33:57 -07:00
Joshua Granick
8e91009bc4 Cleanup event types 2018-06-21 22:03:13 -07:00
Joshua Granick
5c407fe87b Minor fixes, fix compilation without HashLink library 2018-06-11 13:10:17 -07:00
Joshua Granick
ebda41a737 Better HL support, HelloWorld running in software 2018-06-09 08:28:49 -07:00
Joshua Granick
5dc5f47dd4 More progress on bindings 2018-06-09 08:25:16 -07:00
Joshua Granick
1119ce1958 Add Window expose event 2018-05-29 13:06:14 -07:00
Joshua Granick
6589b22c6f Add support for GL 32-bit color depth on native (close #698) 2017-06-05 13:29:37 -07:00
Joshua Granick
f4adce91e5 First pass on enabling correct X/Y joystick.onTrackballMove events 2017-05-16 16:15:59 -07:00
Joshua Granick
45f923360a Add 'always on top' window support 2017-05-04 14:44:18 -07:00
Joshua Granick
81c4926802 Add window.displayMode for fullscreen display mode switching 2017-02-28 11:32:55 -08:00
Joshua Granick
ffd004376f Dialog fixes 2017-02-11 18:09:57 -08:00
Joshua Granick
286a29355c Add lime.ui.ScanCode (close #882) 2017-01-09 18:01:19 -08:00
Joshua Granick
ec60520d52 Switch to tinyfiledialogs, implement unicode on Windows 2016-12-27 17:27:23 -08:00
Joshua Granick
4956adc595 Improve toggle fullscreen 2016-12-27 13:06:01 -08:00
Joshua Granick
384fdf2942 Compile fix, cleanup 2016-10-24 17:46:54 -07:00
Federico Bricker
fe13ea21f3 implement lime.ui.Haptic.vibrate(...) for iOS
-Basic implementation, but works-
2016-10-24 17:16:15 -07:00
Joshua Granick
2918876ede Add support for hidden windows, hide on munit tests 2016-08-10 11:07:31 -07:00
vroad
9d5839bc73 Fix spaces 2016-05-26 11:41:19 +09:00
vroad
166808d706 Implement virtual destructors in some C++ classes 2016-05-26 11:13:01 +09:00
Joshua Granick
4b2520a13f Add flag for allow high DPI 2016-03-01 11:53:54 -08:00
Joshua Granick
78bf85b766 Move drop file event to Window, handle mouse capture automatically 2016-03-01 10:45:33 -08:00
Yanrishatum
85ec75fd59 Drag&Drop support; SDL_CaptureMode support; Maximize window support; 2016-03-01 09:53:24 -08:00
Joshua Granick
b8646f1596 Move get display index to C++ 2016-01-12 11:43:13 -08:00
Lars A. Doucet
e86ac9cc75 added borderless, resizable, and fullscreenBorderless properties to Window.hx.
Caveats: resizable can only be set at runtime for windows right now as SDL does not support it natively and has to be added per platform.
2016-01-08 15:14:47 -08:00
Lars A. Doucet
1ddb43b990 CFFI hookups for nfd "open directory" functionality 2016-01-08 15:05:34 -08:00
Joshua Granick
8daeb8f1d8 Add lime.ui.Joystick and dispatch joystick events 2015-10-05 18:48:36 -07:00
Joshua Granick
f618c4648a Make window.alert simpler 2015-09-02 17:59:30 -07:00
Joshua Granick
dc919adccc Name window.notify back to window.alert and unify with simple message box support 2015-09-02 09:53:03 -07:00
Joshua Granick
b199e7ac7d Rename to window.notify (should have a more robust notification system in the future) 2015-09-02 09:01:04 -07:00
Tommy X
a8a7ff4dad Added Alert function 2015-09-01 20:10:48 -04:00
Joshua Granick
b10a876307 Rename to window.focus () 2015-08-25 16:26:09 -07:00
Joshua Granick
92791433ba Merge pull request #549 from larsiusprime/window
window: exposed "raise()" function from SDL to bring the specified wi…
2015-08-25 16:16:15 -07:00
Joshua Granick
76341325ec Compile fix 2015-08-22 23:39:06 -07:00
Joshua Granick
23e3882a24 Update the FileDialog API, improve 2015-08-22 17:10:51 -07:00
Joshua Granick
0e656f2a6a Add lime.ui.FileDialog 2015-08-22 14:32:35 -07:00
Lars A. Doucet
36538a4b3e window: exposed "raise()" function from SDL to bring the specified window to the top of the display stack 2015-08-20 20:57:49 -05:00
Joshua Granick
f7e53cdea8 Move Keyboard events back to Window 2015-08-19 16:30:36 -07:00
Joshua Granick
c666477b58 Make the Touch events more robust 2015-08-19 16:04:57 -07:00
Joshua Granick
8768d6114f Add window.id, add native EXIT event, filter window-based events and send to correct window instance 2015-08-19 12:36:30 -07:00
Jarnik
83fcb82cce settable lime.ui.Window.titlem, SDL only 2015-07-31 08:08:12 +02:00
Joshua Granick
5c5430ea0b Add additional gamepad mappings 2015-06-12 09:10:35 -07:00
Joshua Granick
2d3f51d2a4 Initial support for text input/edit events 2015-05-12 07:11:21 -07:00
Joshua Granick
632f0e695d Add window enter and leave events (mouse focus) 2015-04-24 02:18:30 -07:00
Joshua Granick
6d8c9458fe Cleanup, using Mouse.warp and Mouse.lock, window.onMouseMoveRelative, removing 'button' value from mouse move event 2015-03-26 02:10:08 -07:00