Subversion Repositories Kolibri OS

Rev

Rev 8165 | Go to most recent revision | Blame | Compare with Previous | 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[] = "Exit";
  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.         DrawButton(2,0xB0B0B0, 10,10,50,20);
  24.         DrawText(15, 15, 0, string);
  25. }
  26. bool KolibriOnClose(TThreadData th)
  27. {
  28.         return true;
  29. }
  30. int KolibriOnIdle(TThreadData th)
  31. {
  32.         return -1;
  33. }
  34. void KolibriOnSize(int window_rect[], TThreadData th) {}
  35. void KolibriOnKeyPress(TThreadData th)
  36. {
  37.         GetKey();
  38. }
  39. void KolibriOnMouse(TThreadData th) {}
  40.