Commit Graph

116 Commits (81c6196dc488d73c9c47e5ccf94e6e8c94e75ad4)

Author SHA1 Message Date
Björn Lindqvist ddc5ece757 alien.*: frontend varargs support! #1677
alien-invoke gets an extra parameter indicating if the call uses varargs
or not. In 99.9% of the cases, the parameter should be f, but is t if
varargs are indicated. E.g

: do-printf ( fmt d -- st ) int f "printf" { c-string double } t alien-invoke ;
2016-08-10 21:34:37 +02:00
John Benediktsson 63410f62c8 ui.theme: updates to color scheme.
Fixes circularity and adds theme switching to Mac menu.
Could use some simplification and reduction in color theme hooks.
2016-05-09 21:40:56 -07:00
John Benediktsson 498285d7dd unicode: make this the API for all unicode things. 2016-03-30 23:29:48 -07:00
John Benediktsson 1b71efb748 ui: change active? back to a boolean. 2016-03-30 07:31:13 -07:00
John Benediktsson 864912f446 ui.backend.cocoa.views: call super.prepareOpenGL(). 2016-03-28 21:51:16 -07:00
John Benediktsson 20883fb21a ui.backend.cocoa.views: add constants for modifier flags. 2016-03-19 12:48:42 -07:00
Björn Lindqvist d4a127211d ui.backend.cocoa: fix for the silly error I made in 7bc1009973 2015-10-29 04:41:36 +01:00
Björn Lindqvist 7bc1009973 ui.*: make active? an integer 0-100
A UI backend can delay setting active? to 100 until the windows actually
is visible. That way, some redundant redraws that happen when the window
isn't visible is supressed. It makes the Windows and GTK UI startup a
little faster.
2015-10-27 19:00:28 +01:00
Björn Lindqvist 73893693d3 ui.backend.*: the offscreen buffer hooks appear unused - let's delete! 2015-10-27 16:58:01 +01:00
John Benediktsson e477f6996f Fix comments to be ! not #!. 2015-09-08 16:15:10 -07:00
Doug Coleman 3649dd2764 ui.backend.cocoa.views: Don't throw an error on weird mouse buttons. Fixes #1453. 2015-08-18 23:22:55 -07:00
Doug Coleman 9f0a1ed730 cocoa: Syntax is funky, so regularize it by parsing CLASS: ; and METHOD: ; and COCOA-PROTOCOL: token. 2015-08-12 19:44:07 -05:00
John Benediktsson 5eec781b40 use ``if*`` instead of ``dup [ ] [ drop ] if``. 2015-07-20 22:24:30 -07:00
Doug Coleman fbbd09f3c5 factor: system:image -> image-path, like vm-path. image is all over the place png, jpg etc 2015-07-20 00:17:09 -07:00
Doug Coleman 0176591527 factor: actual patch to remove ; from all c/fortran functions 2015-07-19 16:25:30 -07:00
Doug Coleman 892c62e1dc factor: second stab at [ ] [ ] unit-test -> { } [ ] unit-test 2015-07-03 09:39:59 -07:00
Doug Coleman 43d6f1d3e2 factor: Retrying on the unit tests. Also normalize some syntax with FUNCTION:. 2015-07-02 17:28:17 -07:00
Doug Coleman 59f3b1ea57 Revert "factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!"
Needs a bit more work.

This reverts commit 7e54cc2824.
2015-07-02 13:47:06 -07:00
Doug Coleman 7e54cc2824 factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool! 2015-07-02 11:36:08 -07:00
Doug Coleman 352e5de16a core, basis, extra: Remove DOS line endings from files.
Remove whitespace from end of lines.
Add a newline to the end of each file.
2015-06-29 17:25:40 -07:00
Doug Coleman fb8d601c20 cocoa: windows -> ui-windows 2015-06-10 16:05:11 -07:00
John Benediktsson 3f3c11c446 ui.backend.cocoa: fix reset of thread-timer. 2015-01-17 15:58:57 -08:00
John Benediktsson 7d0039babe cocoa: fix requirement that mac deploys have high reflection. 2014-10-31 11:34:08 -07:00
John Benediktsson 8033741135 io/ui: slim down the USE: list 2014-10-24 17:33:27 -07:00
Doug Coleman 68446b047b ui: Rename floating-window to dialog-window as per @bjourne's suggestion. Related to #1026. 2014-08-05 10:03:17 -07:00
Doug Coleman fdcc33acee ui: Fix floating-window implementation for Windows/Mac. We need floating-window defined in the hashtables, as well as adding it /in addition to/ the existing flags. 2014-07-16 14:38:50 -05:00
John Benediktsson 1fdc965b34 ui.backend.cocoa.views: clear cache to remove possibly non-retina stuff. 2014-04-28 13:00:20 -07:00
John Benediktsson fb7f53485a ui.backend.cocoa.views: set gl-scale-factor to f if 1.0. 2013-04-21 19:43:12 -07:00
John Benediktsson 5512294075 ui.backend.cocoa.views: handle windowDidChangeBackingProperties event. 2013-04-21 19:40:57 -07:00
John Benediktsson bf83eaccfc cocoa: maybe this is cleaner... 2013-03-30 13:44:11 -07:00
John Benediktsson a99f66f505 cocoa: add ?-> to remember messages being used at runtime. 2013-03-30 13:14:51 -07:00
John Benediktsson d1ae334046 ui.backend.cocoa.views: more robust respondsToSelector: (thanks @jckarter). 2013-03-29 20:34:24 -07:00
John Benediktsson 39dc58a5a8 ui.backend.cocoa.views: spacing. 2013-03-29 14:47:53 -07:00
John Benediktsson fe1bfe173b ui.backend.cocoa.views: simplify and add os version check. 2013-03-29 14:29:41 -07:00
John Benediktsson 1209d5287d ui.backend.cocoa.views: maybe this works on 10.6. 2013-03-29 14:18:57 -07:00
John Benediktsson 295c87b8b1 ui.backend.cocoa.views: add platforms.txt. 2013-01-16 14:28:32 -08:00
John Benediktsson 3f987b2ffb ui.backend.cocoa.views: fix build error on older OSX versions. 2013-01-16 10:46:39 -08:00
John Benediktsson 5fd5ab6711 Revert "ui.backend.cocoa.views: make compatible with 10.6."
This reverts commit 7f6f742fc3.
2012-11-29 18:43:39 -08:00
John Benediktsson 5b5ee71a6a ui.backend.cocoa.views: make compatible with 10.6. 2012-11-26 14:48:42 -08:00
Jon Harper 26beb27680 OSX window resize 2012-11-26 14:39:55 -08:00
John Benediktsson 43d91bcf08 ui.backend.cocoa.views: only set gl-scale-factor if > 1.0. 2012-11-01 16:59:45 -07:00
John Benediktsson fcce5a2af9 core-text: retina displays should use "2x" fonts. 2012-11-01 16:28:33 -07:00
John Benediktsson 44b7bbc76d opengl: adding support for a gl-scale-factor. 2012-11-01 14:48:12 -07:00
John Benediktsson 4efa984637 ui.backend.cocoa.views: [self setWantsBestResolutionOpenGLSurface:YES]; 2012-11-01 14:29:03 -07:00
John Benediktsson f1c62deb03 ui: use "windows get-global". 2012-09-21 15:39:49 -07:00
Doug Coleman 755e702536 pixel-format-attribute was just (pixel-format-attribute)
Rename the GENERIC: (pixel-format-attribute) to pixel-format-attribute ?
2012-06-21 12:12:57 -07:00
Joe Groff 943596575a use radix literals 2011-11-23 19:03:40 -08:00
Joe Groff 29bf4d7214 ui.backend.cocoa.views: clickthrough is bullshit
I don't care what Slava thinks
2011-11-23 11:29:03 -08:00
Joe Groff 9bd84e73f4 ui.backend: refactor the UI `main-vocab-hook` to use a backend-specific `ui-backend-available?` word, so that loading other backends doesn't change the `main-vocab-hook` out of sync with the backend; fixes #131 2011-09-15 13:14:01 -07:00
Slava Pestov d1666854e8 ui.backend.cocoa: simplify system-alert implementation now that callbacks bug has been fixed 2011-04-16 19:12:08 -07:00