diff options
author | simonb <simonb> | 2007-01-06 07:38:04 (GMT) |
---|---|---|
committer | simonb <simonb> | 2007-01-06 07:38:04 (GMT) |
commit | 1f7b12cc494e8b492bd87207246265070b70d578 (patch) | |
tree | 7923939f792e790913548f684cf7ea57095c7626 /src/FbTk/FbDrawable.hh | |
parent | 2e438fde2c4c6f660649c69f05681d50c72f849e (diff) | |
download | fluxbox-1f7b12cc494e8b492bd87207246265070b70d578.zip fluxbox-1f7b12cc494e8b492bd87207246265070b70d578.tar.bz2 |
move triangle drawing into FbDrawable
Make MenuItem triangles proportional
Diffstat (limited to 'src/FbTk/FbDrawable.hh')
-rw-r--r-- | src/FbTk/FbDrawable.hh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/FbTk/FbDrawable.hh b/src/FbTk/FbDrawable.hh index 7590f54..8d91377 100644 --- a/src/FbTk/FbDrawable.hh +++ b/src/FbTk/FbDrawable.hh | |||
@@ -48,6 +48,20 @@ public: | |||
48 | virtual void fillPolygon(GC gc, XPoint *points, int npoints, | 48 | virtual void fillPolygon(GC gc, XPoint *points, int npoints, |
49 | int shape, int mode); | 49 | int shape, int mode); |
50 | 50 | ||
51 | /// type of arrow that should be drawn | ||
52 | enum TriangleType { | ||
53 | LEFT, | ||
54 | RIGHT, | ||
55 | UP, | ||
56 | DOWN | ||
57 | }; | ||
58 | |||
59 | // x, y, width and height define a space within which we're drawing a triangle | ||
60 | // scale defines number of triangles that'd fit in a space of 100 width x 100 height | ||
61 | // (i.e. 200 = half size, 300 = a third). | ||
62 | |||
63 | virtual void drawTriangle(GC gc, TriangleType type, int x, int y, unsigned int width, unsigned int height, int scale); | ||
64 | |||
51 | #ifdef NOT_USED | 65 | #ifdef NOT_USED |
52 | virtual void drawPoint(GC gc, int x, int y); | 66 | virtual void drawPoint(GC gc, int x, int y); |
53 | #endif | 67 | #endif |