Commit graph

70 commits

Author SHA1 Message Date
Eugene Sandulenko
e604c97607 GRAPHICS: MACGUI: Made MacDrawPixel bpp-aware 2020-08-15 16:09:20 +02:00
Eugene Sandulenko
43c3407557 GRAPHICS: MACGUI: More work on making MacWindowBorder 32bpp-aware 2020-08-15 16:09:20 +02:00
Eugene Sandulenko
ff49cb2303 GRAPHICS: MACGUI: Make pattern drawing 32bpp-aware 2020-08-15 14:50:27 +02:00
Eugene Sandulenko
d61eeb9880 GRAPHICS: MACGUI: Added 32bpp mode form MacWindowManager 2020-08-14 01:10:32 +02:00
Nathanael Gentry
281c89f05f GRAPHICS: MACGUI: Process windowed widget events
This ensures the correct dimensions are passed to ensure widgets within windows
process their events properly.
2020-08-13 00:05:32 -04:00
Nathanael Gentry
a639ae4002 GRAPHICS: MACGUI: Add WM direct copy mode
This does not keep the current screen state cached in a surface, but re-creates
the screen from its various components each time something changes. This avoids
an intermediate blitting.

The mode is enabled just by not providing a surface to the WM, and instead
providing a width and height.
2020-08-12 02:34:45 -04:00
Nathanael Gentry
07166de33f GRAPHICS: MACGUI: Add dirty rect handling to MacWindow
The Director engine, which relied on this functionality in its Window class, is
also updated.
2020-08-12 02:34:24 -04:00
djsrv
1678c7621e GRAPHICS: MACGUI: Fix inactive title color 2020-08-07 19:00:07 -04:00
djsrv
a9346eea42 GRAPHICS: MACGUI: Improve grays naming 2020-08-07 18:55:17 -04:00
djsrv
61cfbdc469 GRAPHICS: MACGUI: Add more colors as properties
Finding the closets color in the current palette is necessary for
transparency in bitmap borders to work.
2020-08-07 16:47:19 -04:00
djsrv
92abe49c5b GRAPHICS: MACGUI: Resize border surface 2020-08-07 15:21:39 -04:00
djsrv
1352ab6f9f GRAPHICS: MACGUI: Don't draw title on thin border 2020-08-07 13:45:55 -04:00
djsrv
8bc5e73d0a DIRECTOR: LINGO: Properly implement titleVisible 2020-08-07 13:40:52 -04:00
Eugene Sandulenko
2c4de514a5 GRAPHICS: MACGUI: Remove unused variable 2020-08-07 09:45:26 +02:00
djsrv
686bc49050 GRAPHICS: MACGUI: Full refresh on dims changes
The desktop needs to be redrawn.
2020-08-06 18:55:13 -04:00
djsrv
752833ff39 GRAPHICS: MACGUI: Set _borderIsDirty on change 2020-08-06 14:45:27 -04:00
djsrv
85b2770d7f GRAPHICS: MACGUI: Fix inactive window coloring 2020-08-06 13:21:44 -04:00
Nathanael Gentry
fba1993465 GRAPHICS: MACGUI: MacWindow: Add centering function 2020-08-06 12:50:25 -04:00
djsrv
c29ccaa0bb GRAPHICS: MACGUI: Draw title on ninepatch borders 2020-08-05 19:20:14 -04:00
djsrv
2f1736892a GRAPHICS: MACGUI: Properly update border dims 2020-07-31 16:38:37 -04:00
djsrv
6189a36d12 GRAPHICS: MACGUI: Add border types 2020-07-31 16:38:37 -04:00
djsrv
d4c825b089 GRAPHICS: Allow using Mac WM best color in 9patch 2020-07-31 16:38:37 -04:00
djsrv
1f48c98b7b GRAPHICS: MACGUI: Refesh WM on set window visible 2020-07-24 14:32:54 -04:00
djsrv
d7b1d27ccd GRAPHICS: MACGUI: Add title functions 2020-07-24 00:32:02 -04:00
Nathanael Gentry
a7426c2872 GRAPHICS: MACGUI: Eliminate window composition surface
Now there is just the composeSurface from the widget. This fixes a bug where the
inner window contents would be blitted with transparency and also eliminates a
redundant copying. Now the border and inner surfaces are composed together on demand.
2020-07-21 14:48:27 -04:00
Nathanael Gentry
e23c264873 GRAPHICS: MACGUI: Remove mouseDownWidget
The functionality I needed here can be implemented in the Director engine instead.
2020-07-16 09:59:05 -04:00
Nathanael Gentry
d770b21094 GRAPHICS: MACGUI: Remove macInvertPixel callback
Instead, the addition to macDrawPixel is used instead.
2020-07-15 11:50:57 -04:00
Eugene Sandulenko
670ea3485f GRAPHICS: MACGUI: Extend setVisible() method to allow proper overloading 2020-07-10 10:06:11 +02:00
djsrv
3aaeced035 GRAPHICS: MACGUI: Allow windows to be hidden 2020-07-08 17:10:55 -04:00
Nathanael Gentry
03ddc4dd4d GRAPHICS: MACGUI: Standardize destructors for widget subclasses 2020-07-07 16:41:53 -04:00
djsrv
d8725510b6 GRAPHICS: MACGUI: Don't draw border over contents 2020-07-06 13:12:55 -04:00
Nathanael Gentry
335f6f2e3d GRAPHICS: MACGUI: Keep window manager pointer in all widgets 2020-06-23 23:26:49 -04:00
Nathanael Gentry
033e025365 GRAPHICS: MACGUI: MacWindowManager: Deactivate widget when mouse leaves 2020-06-10 15:42:49 +02:00
Nathanael Gentry
f099b6a073 GRAPHICS: MACGUI: Generalize pixel inversion plotproc 2020-06-10 15:42:49 +02:00
Eugene Sandulenko
bad0e9e169 GRAPHICS: MACGUI: Properly take into account active widget for cursor selection 2020-05-23 16:29:21 +02:00
Eugene Sandulenko
5ff383d042 GRAPHICS: MACGUI: Pass keyboard event to active widget in editable window 2020-05-01 00:49:58 +02:00
Eugene Sandulenko
7242a104ab GRAPHICS: MACGUI: Inherit enable/disable methods from MacWidget 2020-04-25 13:44:18 +02:00
Eugene Sandulenko
2fb21ba90a GRAPHICS: MACGUI: Split drawing and blitting operations for widgets 2020-04-14 00:42:39 +02:00
Eugene Sandulenko
b0fecf95c7 GRAPHICS: MACGUI: Fix infinite loop in event processing for MacWindow 2020-04-08 01:16:57 +02:00
Eugene Sandulenko
8ae73ce263 GRAPHICS: MACGUI: Add disableBorder() to MacWindow 2020-04-08 00:47:11 +02:00
Eugene Sandulenko
e5adfff853 GRAPHICS: MACGUI: Pass events to window children 2020-04-07 01:03:24 +02:00
Eugene Sandulenko
52137f6627 GRAPHICS: MACGUI: Turned MacWindow into MacWidget 2020-04-07 00:56:27 +02:00
Eugene Sandulenko
37485b9670 GRAPHICS: MACGUI: Implemented event dispatcher for MacWidget 2020-04-06 21:09:13 +02:00
Eugene Sandulenko
7d81e1c14f GRAPHICS: MACGUI: Implemented addWidget() to BaseMacWindow class 2020-02-25 18:23:00 +01:00
Eugene Sandulenko
2d9b3b0b2d GRAPHICS: MACGUI: Initial code for MacEditableText 2020-01-02 18:23:33 +01:00
Eugene Sandulenko
93e8109cdf GRAPHICS: MACGUI: Add possibility to pass borders as a surface 2019-10-04 19:10:03 +02:00
Eugene Sandulenko
3fbcc67766 GRAPHICS: MACGUI: Load border padding directly from the 9-patch 2019-09-29 23:26:05 +02:00
Eugene Sandulenko
1dd056b689 MACGUI: Do not assert when recalculating boards on loading 2019-09-28 01:29:35 +02:00
Eugene Sandulenko
5684134ef6 GRAPHICS: MACGUI: Do not use hardcoded colors 2018-07-12 00:41:11 +02:00
Eugene Sandulenko
bedbe39087 GRAPHICS: MACGUI: Fix MacTextWindow dragging and resizing 2017-08-18 19:04:37 +02:00