Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. #include <kolibri.h>
  2. #include <kos_heap.h>
  3. #include <kos_file.h>
  4.  
  5. using namespace Kolibri;
  6.  
  7. const char header[] = "Title";
  8. const char string[] = "Text";
  9.  
  10. bool KolibriOnStart(TStartData &kos_start, TThreadData th)
  11. {
  12.         kos_start.Left = 10;
  13.         kos_start.Top = 40;
  14.         kos_start.Width = 150;
  15.         kos_start.Height = 80;
  16.         kos_start.WinData.WindowColor = 0xFFFFFF;
  17.         kos_start.WinData.Title = header;
  18.         return true;
  19. }
  20.  
  21. void KolibriOnPaint(void)
  22. {
  23.         DrawText(10, 10, 0, string);
  24. }
  25. bool KolibriOnClose(TThreadData th)
  26. {
  27.         return true;
  28. }
  29. int KolibriOnIdle(TThreadData th)
  30. {
  31.         return -1;
  32. }
  33. void KolibriOnSize(int window_rect[], TThreadData th) {}
  34. void KolibriOnKeyPress(TThreadData th)
  35. {
  36.         GetKey();
  37. }
  38. void KolibriOnMouse(TThreadData th) {}
  39.