~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Tina4/src/Xv/tw_canvas.c

Version: ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /**@(#)
  2 **/
  3 /**
  4 tool.c:
  5 Tool creation function and associated tool procs
  6 **/
  7 
  8 #include <stdio.h>
  9 #include <math.h>
 10 #include <tina/sys.h>
 11 #include <tina/math.h>
 12 #include <tina/tv.h>
 13 #include <tina/tw.h>
 14 #include <tina/tvfuncs.h>
 15 #include <tina/tv_screen.h>
 16 #include <xview/xview.h>
 17 #include <xview/frame.h>
 18 #include <xview/panel.h>
 19 #include <xview/textsw.h>
 20 #include <xview/font.h>
 21 #include <xview/canvas.h>
 22 #include <xview/cms.h>
 23 #include <xview/xv_xrect.h>
 24 #include <xview/openmenu.h>
 25 #include <tina/Xvfuncs.h>
 26 #include <tina/X11funcs.h>
 27 
 28 Canvas  tw_canvas(int w, int h)
 29 {
 30     Canvas  canvas;
 31     Window  lowest = tw_get_lowest();
 32     Window  panel = (Window) tw_get_panel();
 33 
 34     if (lowest == panel)
 35         window_fit_height(panel);
 36 
 37     canvas = (Canvas) xv_create(tw_get_tool(), CANVAS,
 38                                 CANVAS_RETAINED, TRUE,
 39                                 CANVAS_AUTO_SHRINK, TRUE,
 40                                 CANVAS_AUTO_EXPAND, TRUE,
 41                                 WIN_DYNAMIC_VISUAL, TRUE,
 42                                 CANVAS_X_PAINT_WINDOW, FALSE,
 43                                 WIN_WIDTH, w,
 44                                 WIN_HEIGHT, h,
 45                                 XV_X, 0, WIN_BELOW, lowest,
 46                                 NULL);
 47 
 48     tw_set_width(MAX(tw_get_width(), w));
 49     tw_set_lowest(canvas);
 50 
 51     return (canvas);
 52 }
 53 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.