Defines | |
| #define | mb_drawable_pixmap(drw) (drw)->xpixmap |
| Returns a drawables X pixmap. | |
Typedefs | |
| typedef MBColor | MBColor |
| Its not recommended you touch structure internals directly. | |
| typedef MBFont | MBFont |
| Its not recommended you touch structure internals directly. | |
| typedef MBDrawable | MBDrawable |
| Type for representing an mbdrawable. | |
| typedef MBLayout | MBLayout |
| Experimental and therefore not as yet documented. | |
Enumerations | |
| enum | MBEncoding |
| enumerated types for text encodings | |
| enum | MBFontWeight |
| enumerated types for font weights. | |
| enum | MBFontSlant |
| enumerated types for font slant styles | |
| enum | MBFontRenderOpts |
| Option flags for text rendering. | |
Functions | |
| MBColor * | mb_col_new_from_spec (MBPixbuf *pb, char *spec) |
| Constructs a new MBColor from a string specification. | |
| Bool | mb_col_set (MBColor *col, char *spec) |
| Sets an existing MBColor from a string specification. | |
| void | mb_col_set_rgba (MBColor *col, unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha) |
| Sets an existing MBColor from r,g,b,a values. | |
| void | mb_col_get_rgba (MBColor *col, unsigned char *red, unsigned char *green, unsigned char *blue, unsigned char *alpha) |
| Gets an r,g,b,a values from an existing MBColor. | |
| void | mb_col_unref (MBColor *col) |
| Unrefs ( frees ) a created MBColor object. | |
| MBFont * | mb_font_new (Display *dpy, char *family) |
| Constructs a new MBFont instance. | |
| void | mb_font_ref (MBFont *font) |
| Refs a created MBFont object. | |
| void | mb_font_unref (MBFont *font) |
| Unrefs ( frees ) a created MBColor object. | |
| MBFont * | mb_font_new_from_string (Display *dpy, char *spec) |
| Constructs a new MBFont instance. | |
| MBFont * | mb_font_set_from_string (MBFont *font, char *spec) |
| Sets the font propertys from a textual description. | |
| void | mb_font_set_family (MBFont *font, const char *family) |
| Sets the fonts family. | |
| char * | mb_font_get_family (MBFont *font) |
| Gets the fonts family. | |
| void | mb_font_set_weight (MBFont *font, MBFontWeight weight) |
| Sets the fonts weight. | |
| MBFontWeight | mb_font_get_weight (MBFont *font) |
| Gets the fonts weight. | |
| void | mb_font_set_slant (MBFont *font, MBFontSlant slant) |
| Sets the fonts slant. | |
| void | mb_font_set_point_size (MBFont *font, int points) |
| Sets the fonts size. | |
| int | mb_font_get_point_size (MBFont *font) |
| Gets the fonts point size. | |
| int | mb_font_set_size_to_pixels (MBFont *font, int max_pixels, int *points_to_try) |
| Attempts to fit the point size to a pixel size. | |
| void | mb_font_set_color (MBFont *font, MBColor *col) |
| Sets the fonts color. | |
| MBColor * | mb_font_get_color (MBFont *font) |
| Gets the fonts point size. | |
| int | mb_font_get_height (MBFont *font) |
| Gets the fonts height in pixels. | |
| int | mb_font_get_ascent (MBFont *font) |
| Gets the fonts ascent in pixels. | |
| int | mb_font_get_descent (MBFont *font) |
| Gets the fonts descent in pixels. | |
| int | mb_font_render_simple (MBFont *font, MBDrawable *drw, int x, int y, int width, unsigned char *text, int encoding, MBFontRenderOpts opts) |
| Renders a line of text onto a MBDrawable. | |
| int | mb_font_render_simple_get_width (MBFont *font, int width, unsigned char *text, int encoding, MBFontRenderOpts opts) |
| Returns the width in pixels of any text rendered with mb_font_render_simple, taking into account any clipping. | |
| MBDrawable * | mb_drawable_new (MBPixbuf *pixbuf, int width, int height) |
| Creates a new MBDrawable instance. | |
| MBDrawable * | mb_drawable_new_from_pixmap (MBPixbuf *pixbuf, Pixmap pxm) |
| Creates a new MBDrawable instance from a pre-existing pixmap. | |
| void | mb_drawable_unref (MBDrawable *drw) |
| Unrefs ( frees ) a drawable. | |
|
|
Type for representing an mbdrawable. This basically wraps X pixmaps and Xft Drawables Its not recommended you touch this directly. |
|
|
Experimental and therefore not as yet documented. Its not recommended you touch this directly. |
|
||||||||||||||||||||||||
|
Gets an r,g,b,a values from an existing MBColor.
|
|
||||||||||||
|
Constructs a new MBColor from a string specification. The format of the specification can be a color name or the format '#rrggbb[aa]'
|
|
||||||||||||
|
Sets an existing MBColor from a string specification. The format of the specification can be a color name or the format '#rrggbb[aa]'
|
|
||||||||||||||||||||||||
|
Sets an existing MBColor from r,g,b,a values.
|
|
|
Unrefs ( frees ) a created MBColor object.
|
|
||||||||||||||||
|
Creates a new MBDrawable instance. MBDrawables are what MBfonts get rendered too.
|
|
||||||||||||
|
Creates a new MBDrawable instance from a pre-existing pixmap. Note, if created like this you are responsable for freeing the the drawables pixmap
|
|
|
Unrefs ( frees ) a drawable.
|
|
|
Gets the fonts ascent in pixels.
|
|
|
Gets the fonts point size.
|
|
|
Gets the fonts descent in pixels.
|
|
|
Gets the fonts family.
|
|
|
Gets the fonts height in pixels.
|
|
|
Gets the fonts point size.
|
|
|
Gets the fonts weight.
|
|
||||||||||||
|
Constructs a new MBFont instance.
|
|
||||||||||||
|
Constructs a new MBFont instance.
|
|
|
Refs a created MBFont object.
|
|
||||||||||||||||||||||||||||||||||||
|
Renders a line of text onto a MBDrawable.
|
|
||||||||||||||||||||||||
|
Returns the width in pixels of any text rendered with mb_font_render_simple, taking into account any clipping.
|
|
||||||||||||
|
Sets the fonts color. *Note* you must set a fonts color for it to be rendered
|
|
||||||||||||
|
Sets the fonts family.
|
|
||||||||||||
|
Sets the font propertys from a textual description.
|
|
||||||||||||
|
Sets the fonts size.
|
|
||||||||||||||||
|
Attempts to fit the point size to a pixel size.
|
|
||||||||||||
|
Sets the fonts slant.
|
|
||||||||||||
|
Sets the fonts weight.
|
|
|
Unrefs ( frees ) a created MBColor object.
|
1.4.0