mirror of https://github.com/0intro/wmii
added prelim version of tile.c
This commit is contained in:
parent
a894cc3bf5
commit
514018b292
|
@ -6,7 +6,7 @@ include ../config.mk
|
||||||
CFLAGS += -I../libixp -I../libcext
|
CFLAGS += -I../libixp -I../libcext
|
||||||
LDFLAGS += -L../libixp -lixp -L../libcext -lcext
|
LDFLAGS += -L../libixp -lixp -L../libcext -lcext
|
||||||
|
|
||||||
SRC = blitz.c color.c font.c label.c tile.c widget.c
|
SRC = blitz.c color.c font.c input.c label.c tile.c widget.c
|
||||||
OBJ = ${SRC:.c=.o}
|
OBJ = ${SRC:.c=.o}
|
||||||
|
|
||||||
all: liblitz.a
|
all: liblitz.a
|
||||||
|
|
|
@ -112,7 +112,6 @@ void blitz_drawborder(BlitzDraw *d);
|
||||||
|
|
||||||
/* input.c */
|
/* input.c */
|
||||||
BlitzInput *blitz_create_input(Drawable drawable, GC gc);
|
BlitzInput *blitz_create_input(Drawable drawable, GC gc);
|
||||||
void blitz_draw_input(BlitzInput *t, char *text);
|
|
||||||
void blitz_destroy_input(BlitzInput *t);
|
void blitz_destroy_input(BlitzInput *t);
|
||||||
|
|
||||||
/* tile.c */
|
/* tile.c */
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
/*
|
||||||
|
* (C)opyright MMIV-MMVI Anselm R. Garbe <garbeam at gmail dot com>
|
||||||
|
* See LICENSE file for license details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#include <cext.h>
|
||||||
|
|
||||||
|
#include "blitz.h"
|
||||||
|
|
||||||
|
BlitzInput *
|
||||||
|
blitz_create_input(Drawable drawable, GC gc)
|
||||||
|
{
|
||||||
|
BlitzInput *i = cext_emallocz(sizeof(BlitzInput));
|
||||||
|
i->drawable = drawable;
|
||||||
|
i->gc = gc;
|
||||||
|
blitz_add_widget(BLITZWIDGET(i));
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
blitz_destroy_input(BlitzInput *i)
|
||||||
|
{
|
||||||
|
blitz_rm_widget(BLITZWIDGET(i));
|
||||||
|
free(i);
|
||||||
|
}
|
Loading…
Reference in New Issue