Emmanuel Lepage Vallee
a8505ed019
doc: Add an imagebox widget default screenshot
2016-05-30 18:00:59 -04:00
Emmanuel Lepage Vallee
9d0693ce3a
doc: Do not export draw, fit and layout methods
...
They are used internally, users should never call them.
This will make the API documentation cleaner.
2016-05-30 17:51:19 -04:00
Emmanuel Lepage Vallee
be23bf0f15
widget: Fix documentation
2016-05-30 17:51:19 -04:00
Uli Schlachter
15e72fb037
Fix luacheck warnings in lib/wibox
...
Warnings pointing out actual problems are left.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-02-12 09:15:55 +01:00
Emmanuel Lepage Vallee
1d1e487d19
wibox.imagebox: Add a `clip` method based on the `gears.shape` API
2016-02-02 00:21:42 -05:00
Uli Schlachter
76b1d348a1
imagebox: Remove dead code
...
Since some commits, surface.load() handles printing an error message for us.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-01-15 18:53:09 +01:00
Daniel Hahler
4bffa7e47e
doc: fix unintentional rendering as code due to indent
2015-10-14 00:22:26 +02:00
Uli Schlachter
a3e690d191
imagebox: Redraw in :set_image()
...
If someone modifies a cairo surface and then sets the resulting object as the
image of an imagebox, the imagebox needs to redraw. Thus, since surfaces are
modifiable, we cannot assume that nothing changed when the same image is set
multiple times on an imagebox.
However, the dimensions of a surface cannot be changed and thus this does not
need to emit widget::layout_changed.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-09-29 00:28:26 +02:00
Uli Schlachter
ee001ce2f0
imagebox: Don't emit signals if same image is set again
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-09-06 18:57:47 +02:00
Uli Schlachter
121a5050b1
Convert the imagebox to the new layout system
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-09-05 14:28:53 +02:00
Uli Schlachter
1ebc34b5e9
Widgets: Also add a context argument to :fit()
...
Together with the context argument to :draw(), this even allows widgets to have
DPI-dependant size.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-08-12 11:19:48 +02:00
Uli Schlachter
88b98789a0
Rename the first argument to :draw to "context"
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-08-12 11:19:28 +02:00
Julian Wollrath
6cc7be512c
Remove the *.in from all files.
...
Signed-off-b: Julian Wollrath <jwollrath@web.de>
2015-06-19 22:33:32 +02:00