François Revol
5b22723a3b
Fix warnings
...
unused paramaters and (un)signed comparison mostly.
2022-09-10 20:39:11 +02:00
François Revol
568de329ef
Move X11 font stuff to display-x11
2022-09-10 20:39:11 +02:00
François Revol
281097a2a5
move X11 stuff from conky.cc to display-x11
...
Still some things to sort out, but seems to work.
A lot of variables and calls had to be made non-static.
2022-09-10 20:39:11 +02:00
François Revol
5c389ecdb5
add display accessors
...
we want to be able to access either all outputs, or the currently
selected one (if any, else return the top one, which ought to be the GUI
one if we have one).
2022-09-10 20:39:11 +02:00
François Revol
e4b05557fa
display-*: return void for most calls as return-value is useless
2022-09-10 20:39:11 +02:00
François Revol
fd683ee8ce
display-*: Fix copyright
2022-09-10 20:39:11 +02:00
François Revol
f30263c2fc
Initial ncurses display-output
...
Some leftovers still, but it still works.
2022-09-10 20:39:11 +02:00
François Revol
a4f9474de1
Add a display-output flag to tell if it's graphical-based
...
or text-only.
2022-09-10 20:39:11 +02:00
François Revol
ef957bfb91
Actually allow more than one display-output at once
...
We already do this like with HTTP+stdout.
2022-09-10 20:39:11 +02:00
François Revol
7c8d486b9f
Move HTTP output code from conky.cc to display-http
2022-09-10 20:39:11 +02:00
François Revol
17ceb82079
Initial stubbing of display backends
...
Hopefully this will lead the way to adding support for things like
Wayland and Haiku graphics, cf. #56 .
We define a display_output_base class that display backends
can derive from to implement display-specific calls.
2022-09-10 20:39:11 +02:00