| Commit message (Expand) | Author | Age | Files | Lines |
... | |
| * | core.actions: added dump_keybindings() | hut | 2011-10-08 | 1 | -1/+36 |
| * | ext.keybinding_parser: added <INSERT> | hut | 2011-10-08 | 1 | -0/+1 |
| * | defaults/apps: Added mplayer2 | hut | 2011-10-08 | 1 | -1/+8 |
| * | gui.ansi: Added doctest | hut | 2011-10-08 | 1 | -3/+34 |
| * | ext.signals: fixed signals for python3.2 | hut | 2011-10-08 | 1 | -4/+4 |
| * | ext.iter_tools: Added doctest | hut | 2011-10-08 | 1 | -0/+15 |
| * | Makefile: Fixed doctests for python3.2 | hut | 2011-10-08 | 1 | -1/+1 |
| * | ext.direction: Added doctest | hut | 2011-10-07 | 1 | -13/+25 |
| * | ext.lazy_property: added doctest | hut | 2011-10-07 | 1 | -6/+15 |
| * | ext.signals: Fixed hidden bugs, added doctests | hut | 2011-10-07 | 1 | -15/+175 |
| * | Makefile: added `make test' back in. | hut | 2011-10-07 | 1 | -1/+9 |
| * | moved DELETE_WARNING constant from api to api.commands | hut | 2011-10-07 | 2 | -2/+2 |
| * | core.actions: Fixed crash when %f/%F macros are undefined | hut | 2011-10-07 | 1 | -6/+30 |
| * | widgets.browserview: Try to fix crash | hut | 2011-10-07 | 1 | -0/+5 |
| * | merged ext.keybindings.py into ext.keybindings_parser.py | hut | 2011003366; font-weight: bold } /* Name.Constant */
.highlight .nd { color: #555555 } /* Name.Decorator */
.highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */
.highlight .nl { color: #336699; font-style: italic } /* Name.Label */
.highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */
.highlight .py { color: #336699; font-weight: bold } /* Name.Property */
.highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #336699 } /* Name.Variable */
.highlight .ow { color: #008800 } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */
.highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */
.highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */
.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
.highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */
.highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */
.highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */
.highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */
.highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */
.highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */
.highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */
.highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */
.highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */
.highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */
.highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */
.highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */
.highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */
.highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */
.highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */
.highlight .vc { color: #336699 } /* Name.Variable.Class */
.highlight .vg { color: #dd7700 } /* Name.Variable.Global */
.highlight .vi { color: #3333bb } /* Name.Variable.Instance */
.highlight .vm { color: #336699 } /* Name.Variable.Magic */
.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long *//*
* (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
* See LICENSE file for license details.
*/
#include <X11/Xlib.h>
#include <X11/Xlocale.h>
typedef struct Brush Brush;
typedef struct Fnt Fnt;
struct Fnt {
XFontStruct *xfont;
XFontSet set;
int ascent;
int descent;
int height;
};
struct Brush {
GC gc;
Drawable drawable;
XRectangle rect;
Fnt font;
unsigned long bg;
unsigned long fg;
unsigned long border;
};
extern void draw(Display *dpy, Brush *b, Bool border, const char *text);
extern void loadcolors(Display *dpy, int screen, Brush *b,
const char *bg, const char *fg, const char *bo);
extern void loadfont(Display *dpy, Fnt *font, const char *fontstr);
extern unsigned int textwidth_l(Fnt *font, char *text, unsigned int len);
extern unsigned int textwidth(Fnt *font, char *text);
='commitgraph'>| * | core.actions: expanduser in source_commandlist() | hut | 2011-10-03 | 1 | -0/+1 |
| * | core.environment: fixed crash induced by previous commit | hut | 2011-10-03 | 2 | -3/+4 |
| * | core.environment: trying to fix garbage collection error | hut | 2011-10-03 | 1 | -5/+8 |
| * | core.actions: REALLY fix that decoding error | hut | 2011-10-02 | 1 | -1/+8 |
| * | defaults/rc.conf: key "v" toggles instead of sets marking | hut | 2011-10-02 | 1 | -1/+1 |
| * | core.actions: smarter open() in get_preview | hut | 2011-10-02 | 1 | -1/+1 |
| * | core.actions: fix decoding error when previewing some files | hut | 2011-10-02 | 1 | -1/+3 |
| * | api.apps: fixed error message | hut | 2011-10-02 | 1 | -0/+2 |
| * | core.actions: sanitize input of {set,enter,unset}_bookmark | hut | 2011-10-02 | 1 | -4/+4 |
| * | Changed version to 1.5.0 | hut | 2011-10-02 | 4 | -13/+4 |