Cameron Cawley
6ee5aad258
GRAPHICS: Remove use of TransparentSurface in NinePatch code
2023-10-24 20:16:34 +02:00
Harishankar Kumar
f3a6c27df6
GRAPHICS: MACGUI: Add no-border scrollbar, Win95 Border Refactored
...
Win95 scrollbar loading is refactored to use existing `borders` array
in `datafiles.cpp`, Added no-border scrollbar for MacOS, Win95.
This is to support scrollable text cast members in Director, which
will be used by `totaldistortion-win` game.
--start-movie="ATD\HD\bbTWRFL2.DXR@392" totaldistortion-win
2023-08-03 09:49:20 +02:00
Harishankar Kumar and Pragyansh Chaturvedi
dd72dd09ca
DIRECTOR: Implement the titleVisible property of window
...
Modifies border of window by first changing title to "", then updating
window border to borderType 2 `ThinNoTitle`.
`titleVisible of window` to verify this behavior.
Co-authored-by: Pragyansh Chaturvedi <pragyanshchaturvedi18@gmail.com >
2023-06-01 20:17:23 +02:00
Harishankar Kumar
4f07e8dec4
GRAPHICS: MACGUI: Added support to change inner dimension of macwindow derived object
...
Added setInnerDimension which calls resize (with bool inner dimension change: true), moveto and finally updateOuterDimension.
This was implemented to match window rectangle size as used by window property `rect`, `rect of window` in `workshop` uses this.
2023-05-31 13:29:33 +02:00
Harishankar Kumar
23f1229e67
GRAPHICS: MACGUI: Refactor resize() to extract inner window resizing
...
resize function is extracted to new function resize and resizeInner,
also a new private function rebuildSurface is created to handle common
code of refreshing/rebuilding surface after modifying inner or outer
window dimensions.
2023-05-31 13:29:33 +02:00
Avijeet
26c3c4f160
MACVENTURE: Invert exit window's color when active
2022-09-04 20:30:02 +02:00
Avijeet
d933b504ed
GRAPHICS: MACGUI: Change MacText's dimensions when MacTextWindow's dimensions are changed
2022-08-05 20:15:03 +02:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+
2021-12-26 18:48:43 +01:00
Orgad Shaneh
b531894158
GRAPHICS: JANITORIAL: Remove 'virtual' when override is specified
2021-11-14 14:31:21 +02:00
Martin Gerhardy
37de1b3146
MACGUI: const for some methods
2021-09-19 15:21:56 +02:00
Eugene Sandulenko
f1f031449b
GRAPHICS: MACGUI: Expose another way of setting MacWindow borders
2021-05-26 12:00:28 +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
fc702ea9fe
GRAPHICS: MACGUI: re-organize the code for drawing scrollbar for macwindow
2021-04-25 02:24:15 +02:00
ysj1173886760
27986beebc
GRAPHICS: MACGUI: add comment for enableScrollbar
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
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
ysj1173886760
0443d5a133
GRAPHICS: MACGUI: remove drawSimpleBorder which draws the border manually
2021-04-01 16:08:56 +02:00
Paul Gilbert
44d616d9c0
GRAPHICS: Compilation fixes
2021-02-26 18:20:11 -08: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
8bc5e73d0a
DIRECTOR: LINGO: Properly implement titleVisible
2020-08-07 13:40:52 -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
6189a36d12
GRAPHICS: MACGUI: Add border types
2020-07-31 16:38:37 -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
Eugene Sandulenko
670ea3485f
GRAPHICS: MACGUI: Extend setVisible() method to allow proper overloading
2020-07-10 10:06:11 +02:00
djsrv
57bb4359ef
DIRECTOR: LINGO: Implement the visible of window
2020-07-09 00:54:31 -04: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
Eugene Sandulenko
7a4d5f45e9
GRAPHICS: MACGUI: Renamed clashing methods
2020-04-25 13:44:18 +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
06fc491663
GRAPHOCS: MACGUI: Renamed MacWindow::getSurface() to getWindowSurface()
2020-04-14 00:27:49 +02:00
Eugene Sandulenko
8ae73ce263
GRAPHICS: MACGUI: Add disableBorder() to MacWindow
2020-04-08 00:47:11 +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
20734108e3
GRAPHICS: MACGUI: Incapsulate MacWindow internals
2017-08-04 21:54:20 +02:00