Temporary prototypes of a document management program and gui toolkit I'm working on.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
467B

  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. #include "btk/btk.h"
  4. btk_session_t *s = NULL;
  5. btk_window_t *w = NULL;
  6. btk_window_t *W[1];
  7. int
  8. main(int argc, char **argv)
  9. {
  10. s = btk_open();
  11. w = btk_window_create(s->x_con, s->x_scr, s->x_vis, 1, 1, 0, 0, 200, 0, 1, NULL);
  12. btk_window_set_name(w, "hello world");
  13. btk_cell_set_mark(&(w->cells[0]), 0, 0, 1, BTK_JUSTIFY_LEFT, "hello world");
  14. W[0] = w;
  15. btk_map(s, w);
  16. btk_loop(s, W, 1);
  17. btk_close(s);
  18. return 0;
  19. }