add functions to the engine interface for rendering and sizing a text label
This commit is contained in:
parent
2b120ec377
commit
af21cb131a
1 changed files with 9 additions and 1 deletions
|
@ -1,7 +1,9 @@
|
||||||
#ifndef __engineinterface_h
|
#ifndef __engineinterface_h
|
||||||
#define __engineinterface_h
|
#define __engineinterface_h
|
||||||
|
|
||||||
#include "../kernel/frame.h"
|
#include "kernel/frame.h"
|
||||||
|
#include "kernel/geom.h"
|
||||||
|
#include <X11/Xlib.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
/* startup */
|
/* startup */
|
||||||
|
@ -48,4 +50,10 @@ typedef void EngineFrameHide(Frame *self);
|
||||||
/* get_context */
|
/* get_context */
|
||||||
typedef Context EngineGetContext(Client *client, Window win);
|
typedef Context EngineGetContext(Client *client, Window win);
|
||||||
|
|
||||||
|
typedef void EngineRenderLabel(Window win, Rect *area, char *text,
|
||||||
|
gboolean hilight, gboolean toplevel);
|
||||||
|
|
||||||
|
typedef void EngineSizeLabel(char *text, gboolean hilight, gboolean toplevel,
|
||||||
|
Size *s);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue