Thilo Graf
c88a6ff7b3
cc: rework color handling for select and focus status
2020-12-07 20:33:52 +01:00
Thilo Graf
3f7002c7d6
cc_draw: ensure paint no transparent background at black image parts
2020-02-04 18:02:24 +01:00
Thilo Graf
b1f9c3c7f3
cc_timer/cc_frm_clock: allow use of milisecond intervals
...
Should be easier and more flexible to handle without nano parameter,
some reworkes in other classes and thread handlings are required.
2020-01-05 21:17:59 +01:00
Thilo Graf
69a1014ab7
cc_draw: ensure kill of rendered boxes only if enabled
...
Avoids unnecessary render of empty parts on screen.
2019-12-30 21:12:46 +01:00
Thilo Graf
7f2c9ca41b
cc_frm/cc_item_text: use mutexes in some members
...
Watched some problems with thredead parts in some
window objects (e.g. messageboxes, clock ...) thx satbaby for some hints
and testings
2019-10-27 16:24:47 +01:00
Thilo Graf
ed701f450a
cc_draw: declare some functions as const, minor format changes
2019-10-27 16:24:47 +01:00
Thilo Graf
7c7578741b
cc_draw: use const bool& for more safety
2019-10-27 16:24:47 +01:00
Thilo Graf
3e01524baf
cc_draw: use 'at' methode in vectors for more savety
2019-10-27 16:24:47 +01:00
Thilo Graf
d86dcd36a7
components: use const bool& parameter in paint methodes
2019-10-27 16:24:47 +01:00
Jacek Jendrzej
980dee5622
cc_draw: avoid integer overflow
2019-10-13 16:47:37 +02:00
Thilo Graf
6cb1217bc9
cc_draw.cpp: remove of an unneeded line break in debug line
2019-04-11 11:26:39 +02:00
Thilo Graf
714df8b092
cc_draw.cpp: use random colors for CCDraw_debug
...
For better distinguish objects on screen while debugging.
2019-04-02 16:34:56 +02:00
Thilo Graf
7eeb270cba
cc_draw.cpp/h: move more methodes into cpp file
...
clean up
2018-12-10 22:01:56 +01:00
Thilo Graf
c7f8392ef6
cc_draw.cpp/h: move position members into cpp file
...
clean up
2018-12-07 21:47:33 +01:00
Thilo Graf
b13a2a3b9a
cc_draw.cpp: remove consequently all possible pixbuf contents
...
This should enusre a clean content for all fbdata.pixbuf parts.
2018-12-07 21:47:33 +01:00
Thilo Graf
420fba0e1b
cc_draw.cpp: remove variable cc_fbdata_t& fbdata
...
Try to avoid som possible data races.
2018-12-07 21:47:32 +01:00
Thilo Graf
94284c2e5b
cc_draw.cpp: call blitBox2FB() only if checkFbArea() was true
...
This should prevent pass corrupted parameters for blitBox2FB().
2018-12-07 21:47:32 +01:00
Thilo Graf
bcdc3e990e
CCDraw: add debug output to identify errors in relevant item types
2018-04-05 21:21:53 +02:00
Thilo Graf
fb5c943db4
cc: expand cc-type with name
...
Required for internal operations where it is useful to have object
names and for better debugging.
2017-12-30 22:58:15 +01:00
Stefan Seyfried
1dc7e185bf
cc_draw: add simple debug facility
...
not perfect, since the borders can be overdrawn afterwards
but still pretty useful
2017-12-28 00:07:23 +01:00
Stefan Seyfried
0d9139054a
remove "using namespace std" from header files
...
"using namespace std" in headers is considered bad practice, so move it
either into the respective cpp files or (for files which have lots of
other std::xxx usage anyway) just write it out explicitly.
Looking at the headers and the affected cpp files, one can actually see
why it is bad practice, as it's spreading very far ;-)
2017-10-02 13:43:57 +02:00
Thilo Graf
9687dda867
CCDraw: add missing member for real item position
...
Changes of real positions were not watched.
2017-08-08 14:25:12 +02:00
Thilo Graf
ef4467b6da
CCDraw: precise function for kill handler
...
This should fix possible artefacts or holes in some rendered boxes.
Was especially striking at HD1 Hardware.
e.g. was observed while right/left switching on channel list at header
and without rounded corners and at certain footers.
2017-06-16 11:49:32 +02:00
Thilo Graf
5fda283a61
CCDraw: rework getScreen(), getScreenData(), add pixbuf checks
2017-06-15 01:01:55 +02:00
Thilo Graf
979e6370a7
CCDraw: expand debug output inside clearFbGradientData()
...
get info for addresses.
2017-05-27 02:51:36 +02:00
Thilo Graf
62a2a29a12
CCDraw: remove some debug lines, and override comparisons
...
This should reduce some effort in this method.
2017-04-08 08:15:54 +02:00
Thilo Graf
6d45fbb4eb
CCDraw: fix wrong intit values for corners and position
2017-04-08 08:15:41 +02:00
Thilo Graf
ccb82083e2
CCDraw: add possibility to use background images as item background
...
Provides functionality to use a backround image instead to render
usual box. If an image is defined, box render is disabled, but behavior
for hide, kill, cache... is not changed.
TODO:
- maybe needs global caching because images are not yet managed like icons in framebuffer class
2017-03-11 00:45:25 +01:00
Stefan Seyfried
5188f721c4
set useful thread names for all spawned threads
2017-02-12 22:55:36 +01:00
Stefan Seyfried
58c6dbf469
cc: reduce impact of cc_draw header from 161 to 4 files
2017-02-12 22:50:44 +01:00
Thilo Graf
384e98c089
CCDraw: add new attribut force_paint_bg
...
should help for some repaint actions
2017-01-31 16:36:41 +01:00
Thilo Graf
26eb4d079b
Experimental try to rework isPainted()
2017-01-31 16:36:41 +01:00
Thilo Graf
0eb8c7b173
CCDraw: add signal OnAfterPaintBg
2017-01-31 16:36:41 +01:00
Thilo Graf
44eebba080
CCDraw: simplified statement for blink init
2017-01-31 16:36:40 +01:00
Thilo Graf
f7ad79c371
CCDraw: add overloaded version of paint Blink()
...
It's useful to have synchronized timer for more than one item.
2016-12-17 22:39:15 +01:00
Thilo Graf
689866c872
CCDraw: reduce debug spam
2016-12-15 22:02:21 +01:00
Thilo Graf
bd5e82fdc4
CCDraw: try to avoid rendering with bad dimensions
2016-12-08 09:33:40 +01:00
Thilo Graf
717dec02c5
CCDraw: add function for blink effect for cc items
...
NOTE: experimental, for examples see CTestMenu class
2016-11-20 14:09:19 +01:00
Thilo Graf
78259c6ec3
CCDraw: add signals into hide() methode
...
alows to use slots
2016-10-24 10:31:27 +02:00
Thilo Graf
7266628207
CCDraw: add private variable col_shadow_clean
...
Should help to control shadow clean up in some constallations
2016-10-24 10:31:26 +02:00
Thilo Graf
3477e28cd7
CComponentsItem: fix changeing color on select switching of frames
...
expand select mode methodes with paremters for frame properties
This should make variables col_frame_sel and fr_thickness_sel superfluous.
2016-10-24 10:31:25 +02:00
svenhoefer
5d450c60d3
- rename SHADOW_OFFSET -> OFFSET_SHADOW
2016-10-10 14:19:55 +02:00
svenhoefer
75fe6e407d
- colors: add COL_FRAME wrapper
2016-10-10 14:19:54 +02:00
svenhoefer
1f60557e0b
- ccomponents: use COL_SHADOW for shadows
2016-08-16 08:37:54 +02:00
Thilo Graf
a2f96948fa
CCDraw: enable/disable frame if frame on changed frame width
2016-06-26 15:32:34 +02:00
Jacek Jendrzej
9f20b27890
avoid division by zero and fix segfault
2016-05-23 14:17:25 +02:00
Thilo Graf
8250d20fa7
CCDraw: don't use clear screen for cleanup before gradient paint
...
Until now clean up screen was required to avoid ghost paints with
hardware acceleration. But this causes partial flicker effects,
especially when new instances are created.
So it makes more sense to hold instances and use captured
screen instead blank screen.
Optional paint cache or clean up must be enabled.
You can enable/disable clean up with:
enableGradientBgCleanUp()/disableGradientBgCleanUp()
Paint cache:
enablePaintCache()/disablePaintCache()
2016-03-22 13:15:18 +01:00
M. Liebmann
edb5407163
Fix freeze neutrino at mute icon and gradient header
2016-01-31 19:31:40 +01:00
M. Liebmann
6c72fe94bc
CCDraw: Set cc_gradient_bg_cleanup to true
...
Except menu headers: Disable cleanup when save screen is disabled
2016-01-29 15:31:12 +01:00
Thilo Graf
be1f555e37
CCDraw: try to fix is_painted property after used kill()
2016-01-29 15:31:12 +01:00