ysj1173886760
ecac522c7f
GRAPHICS: MACGUI: make mactext can scrollable now
2021-06-03 13:19:10 +02:00
ysj1173886760
0176107051
GRAPHICS: MACGUI: add a check when we disabling the hoveredWidget
2021-06-03 13:19:10 +02:00
ysj1173886760
c84f16ca22
GRAPHICS: MACGUI: fix the coordinate calculating, bring the mactext selection work again
2021-06-03 13:19:10 +02:00
Eugene Sandulenko
f1f031449b
GRAPHICS: MACGUI: Expose another way of setting MacWindow borders
2021-05-26 12:00:28 +02:00
Eugene Sandulenko
c60009da68
GRAPHICS: MACGUI: Initialized class variables
2021-05-01 01:49:48 +02:00
ysj1173886760
fb7ed6f845
GRAPHICS: MACGUI: add textRGB for mactextwindow to suit new logic of mactext when drawing the text with color. add window feature DynamicScrollbar
2021-04-25 02:24:15 +02:00
ysj1173886760
c317ca1900
GRAPHICS: MACGUI: load win95scrollbar border as default when enable win95 mode
2021-04-25 02:24:15 +02:00
ysj1173886760
3b47e56155
GRAPHICS: MACGUI: clean the codes
2021-04-12 14:04:25 +02:00
ysj1173886760
3b53a4f2f7
GRAPHICS: MACGUI: move titlePos into BorderOffsets
2021-04-12 14:04:25 +02:00
ysj1173886760
7f47b9f6c0
GRAPHICS: MACGUI: move border stuff into macwindowborder
2021-04-12 14:04:25 +02:00
ysj1173886760
c2353d3797
GRAPHICS: MACGUI: use lazy load to load built-in border types, add scrollbar flag to indicate whether the window has scroll bar
2021-04-12 14:04:25 +02:00
ysj1173886760
83341beddd
GRAPHICS: MACGUI: modify the way that setBorderType set the border, currently, it will set all borders which is the subset of flag
2021-04-12 14:04:25 +02:00
ysj1173886760
a0964d690c
GRAPHICS: MACGUI: Add border flags to the builtin border types, fix the remaining part of macgui which are not adapt to border flags.
2021-04-12 14:04:25 +02:00
ysj1173886760
858624c0c9
GRAPHICS: MACGUI: fix the bug of the border flag is not correctly initialized
2021-04-12 14:04:25 +02:00
ysj1173886760
6d7e794ed3
GRAPHICS: MACGUI: Add flag to indicate the border type, move drawTitle and drawScrollBar into macwindowborder
2021-04-12 14:04:25 +02:00
ysj1173886760
307147c565
GRAPHICS: MACGUI: use titlePos to calc titleIndex, change the titleWidth in 9-patch when title is changed
2021-04-12 14:04:25 +02:00
ysj1173886760
8894317e89
GRAPHICS: MACGUI: add titleIndex and titleWidth to macborder in order suit to 9-patch
2021-04-12 14:04:25 +02:00
Orgad Shaneh
49053f2b9b
GRAPHICS: Remove unused const
...
Amends commit 0443d5a133
.
Detected by Clang.
2021-04-10 15:29:08 +03:00
ysj1173886760
0dcde7c96a
GRAPHICS: MACGUI: add new feature that when scroll wheel, the scroll bar will also display
2021-04-01 16:08:56 +02:00
ysj1173886760
1afc246a69
GRAPHICS: MACGUI: Added the callback function for drawing invert pixel for default palette, which is used to draw the scroll bar
2021-04-01 16:08:56 +02:00
ysj1173886760
aba96cb38f
GRAPHICS: MACGUI: recalc the scrollSize and scrollPos, in order to fix scroll bar for mactextwindow
2021-04-01 16:08:56 +02:00
ysj1173886760
0443d5a133
GRAPHICS: MACGUI: remove drawSimpleBorder which draws the border manually
2021-04-01 16:08:56 +02:00
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