Uli Schlachter
5992a6929f
Clear a draw_text_context_t during wipe()
...
This fixes a bug where pango was called with already-freed arguments because
wipe() didn't zero out those variables and a later init() failed.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-07-16 19:52:42 +02:00
Julien Danjou
4717feb02b
image: move into objects
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-27 12:16:36 +01:00
Julien Danjou
be09012c08
graph, progressbar: remove
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-20 20:42:04 +02:00
Julien Danjou
1442687830
font: split out of draw
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-07 17:51:40 +02:00
Julien Danjou
1060470b3f
draw: stop requesting extents
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 15:38:17 +02:00
Julien Danjou
7ecf1afdfd
draw: move padding stuff inside textbox
...
This is only used by textbox.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 20:24:38 +02:00
Julien Danjou
26c446fa82
textbox: add valign
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 17:56:48 +02:00
Julien Danjou
176fa70916
draw: remove useless AlignFixed
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-04 14:35:20 +02:00
Gregor Best
aa9a7b1fc8
widgets: get rid of align attribute
...
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-07-17 16:46:49 +02:00
Julien Danjou
16376a9f7c
screen: store default visual
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-07-10 16:26:49 +02:00
Uli Schlachter
b7f05f32c0
draw_context_t's depth member is unused, remove it
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-11 12:54:42 +02:00
Julien Danjou
073c658418
draw: remove area_array_t type
...
Not used anymore.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-04 17:20:01 +02:00
Uli Schlachter
37862c83c0
Make the draw_*() functions take a color_t*
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-18 14:02:21 +02:00
Uli Schlachter
5dadaa59a9
Move xcolor into its own source files
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-18 13:55:38 +02:00
Uli Schlachter
40c300afed
Change xcolor_t::initialized into a bool
...
The code already assigns "true" to this, but it's not yet a boolean variable.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-15 12:01:41 +02:00
Lionel Ott
970b566580
Added AlignMiddle to alignment_t structure
...
- Added AlignMiddle to denote a vertically centered element
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-12 11:49:58 +01:00
Michael Hofmann
39cd86f976
widget: add fixed alignment
...
This makes it possible to have fixed-width textboxes in the flexible part of a wibox.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou
7f3e831221
draw: stop using font as argument, use global
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou
26da80f90a
draw: remove custom markup support
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou
a4d914f0e4
draw: fix UTF-8 string len computation upon conversion
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou
9adf3fd869
draw: remove bg color markup, move to textbox
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou
b5fb612ea3
draw: remove shadow support
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou
8e9f0c8857
draw: remove margin markup, move to textbox widget
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou
1d7d3309de
draw: move padding_t inside and use it for parser data
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou
3c304bca07
draw: remove alignment markup
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou
4918614d44
draw: do not include xutil.h
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou
12a327c10f
ewmh: fix buffer.h inclusion
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou
1670088218
client: include list
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou
68f31f0629
draw: remove border markup, move it to textbox
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou
da99991223
draw: draw_text take extents as argument
...
This avoid one call of pango_layout_get_pixel_extents().
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:22 +01:00
Julien Danjou
a5cb98162d
textbox: add ellipsize and wrap mode support
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-06 17:04:23 +01:00
Julien Danjou
de9c2b1886
draw: stop exporting draw_text_markup_expand
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-05 13:16:02 +01:00
Julien Danjou
8e66a543bc
draw: remove phys_screen from font handling
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-04 17:50:10 +01:00
Julien Danjou
24a8e6d377
draw: support top and bottom as align
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-04 16:34:30 +01:00
Julien Danjou
2e3744de9d
widget: store supported align and use to render flex widgets
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-23 17:28:07 +02:00
Julien Danjou
93be5b3cae
draw: remove useless AlignAuto
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-23 15:53:04 +02:00
Julien Danjou
5709435392
wibox: rework, merge titlebar
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-26 15:00:42 +02:00
Julien Danjou
ef85ed92b7
use more precise types
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-22 11:11:56 +02:00
Julien Danjou
fcc93e5f88
draw: merge draw context into swindow
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-22 11:11:56 +02:00
Julien Danjou
6ac0c4130c
image: merge draw_image_t and image_t
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-22 11:11:55 +02:00
Julien Danjou
6a5ad6af9b
common: move draw, xscreen and swindow out
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-22 11:11:55 +02:00
Julien Danjou
2ac27fdac4
move draw files to common/
2008-01-24 18:48:11 +01:00
Julien Danjou
35803aff4c
make draw functions more independant
2008-01-24 18:43:24 +01:00
Julien Danjou
7ad43fe713
stop being stupid, use only one Drawable
2008-01-23 19:10:53 +01:00
Julien Danjou
3e249cab4b
change align type
2008-01-23 16:54:14 +01:00
Julien Danjou
17a8c4a4c4
draw_text takes a Area as arg
2008-01-21 16:31:14 +01:00
Julien Danjou
d59fc62739
draw rectangle take an Area as arg
2008-01-21 16:31:14 +01:00
Julien Danjou
9fa01e34de
rename textwidth to draw_textwidth
2008-01-06 22:57:23 +01:00
marco candrian
37da7d0d01
graph widget added
...
example config:
graph gr_cpu {
width = 80
height = "0.8"
fg = "#336633 "
bg = "#000000 "
bordercolor = "#669966 "
padding_left = 0
mouse = {...}
x = ...
y = ...
}
Looks like here: http://www.calmar.ws/tmp/112-Sun-screen.png
I renamed lpadding to padding_left, and bcolor to bordercolor
also on the progressbar widget.
The awesomerc page would still be to write, when this patch will get accepted.
Hints are always welcomed.
2008-01-06 20:51:40 +01:00
Julien Danjou
1d6613349e
typedef enum Alignment
2008-01-04 19:17:20 +01:00