PageRenderTime 253ms CodeModel.GetById 131ms app.highlight 2ms RepoModel.GetById 119ms app.codeStats 0ms

/src/test/label_test.c

http://ftk.googlecode.com/
C | 13 lines | 11 code | 2 blank | 0 comment | 1 complexity | ab0fbd90f6f10d052f7d95f1763d25e8 MD5 | raw file
 1#include "ftk.h"
 2#include "ftk_label.h"
 3
 4int main(int argc, char* argv[])
 5{
 6	ftk_init(argc, argv);
 7	FtkWidget* thiz = ftk_label_create(NULL, 0, 0, 60, 20);
 8	ftk_widget_set_text(thiz, "ok");
 9	assert(strcmp(ftk_widget_get_text(thiz), "ok") == 0);
10	ftk_widget_destroy(thiz);
11
12	return 0;
13}