home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / intrvews / tut-code.lha / tut-code / box2 / main.c < prev   
Encoding:
C/C++ Source or Header  |  1992-01-02  |  1.1 KB  |  46 lines

  1. #include <InterViews/background.h>
  2. #include <InterViews/bitmap.h>
  3. #include <InterViews/box.h>
  4. #include <InterViews/character.h>
  5. #include <InterViews/session.h>
  6. #include <InterViews/stencil.h>
  7. #include <InterViews/style.h>
  8. #include <InterViews/window.h>
  9. #include <InterViews/Bitmaps/hand.bm>
  10.  
  11. int main(int argc, char** argv) {
  12.     Session* session = new Session("Himom", argc, argv);
  13.     Style* style = session->style();
  14.     const Font* f = style->font();
  15.     const Color* fg = style->foreground();
  16.     session->run_window(
  17.     new ApplicationWindow(
  18.         new Background(
  19.         new LRBox(
  20.             new Stencil(
  21.             new Bitmap(
  22.                 hand_bits, hand_width, hand_height
  23.             ),
  24.             fg
  25.             ),
  26.             new Stencil(
  27.             new Bitmap(
  28.                 hand_bits, hand_width, hand_height,
  29.                 hand_x_hot, hand_y_hot
  30.             ),
  31.             fg
  32.             ),
  33.             new Character('g', f, fg),
  34.             new Character('o', f, fg),
  35.             new Character('o', f, fg),
  36.             new Character('d', f, fg),
  37.             new Character('b', f, fg),
  38.             new Character('y', f, fg),
  39.             new Character('e', f, fg)
  40.         ),
  41.         style->background()
  42.         )
  43.     )
  44.     );
  45. }
  46.