Ejemplo n.º 1
0
int main()
{
    Frame frame;

    frame = (Frame)xv_create(XV_NULL, FRAME, XV_NULL);
    xv_main_loop(frame);
    return 0;
}
Ejemplo n.º 2
0
/*------------------------------------------------------------------------
       Parameters:

      Description:

    Return Values:
------------------------------------------------------------------------*/
static void
winThread(int iTid, void *parm)
{
  DIAG_WINDOW  *pwin ;

  pwin = (DIAG_WINDOW *)parm ;
  fprintf(stderr, "entering main loop\n") ;
  xv_main_loop(pwin->xvf->frame) ;
}
Ejemplo n.º 3
0
main(int argc, char **argv)
{
	XColor    rgb_def;
	XColor    rgb_exact;
	XGCValues gcvalues;

	/*
	 * Initialize XView.
	 */
	xv_init(XV_INIT_ARGC_PTR_ARGV, &argc, argv, NULL);
	INSTANCE = xv_unique_key();
	
	/*
	 * Initialize user interface components.
	 * Do NOT edit the object initializations by hand.
	 */
	Cclock_window1 = cclock_window1_objects_initialize(NULL, 0);

	dpy = (Display *) xv_get(Cclock_window1->window1, XV_DISPLAY);
    cmap = DefaultColormap(dpy,DefaultScreen(dpy));

	can_xid = xv_get(canvas_paint_window(Cclock_window1->canvas1),XV_XID);

	XAllocNamedColor(dpy,cmap,"White",&rgb_def,&rgb_exact);
	gcvalues.foreground = rgb_exact.pixel;
	XAllocNamedColor(dpy,cmap,"Black",&rgb_def,&rgb_exact);
	gcvalues.background = rgb_exact.pixel;
	
	w_gc = XCreateGC(dpy,can_xid,(GCForeground | GCBackground),&gcvalues);

	gcvalues.foreground = rgb_exact.pixel;
	b_gc = XCreateGC(dpy,can_xid,(GCForeground | GCBackground),&gcvalues);


	XSetLineAttributes(dpy, w_gc, 3, LineSolid, CapButt, JoinRound);
	

	
	/*
	 * Turn control over to XView.
	 */
	xv_main_loop(Cclock_window1->window1);
	exit(0);
}
Ejemplo n.º 4
0
main(int argc, char **argv)
{
	/*
	 * Initialize XView.
	 */
	xv_init(XV_INIT_ARGC_PTR_ARGV, &argc, argv, NULL);
	INSTANCE = xv_unique_key();
	
	/*
	 * Initialize user interface components.
	 * Do NOT edit the object initializations by hand.
	 */
	Eventman_em_bw = eventman_em_bw_objects_initialize(NULL, NULL);
	
	
	/*
	 * Turn control over to XView.
	 */
	xv_main_loop(Eventman_em_bw->em_bw);
	exit(0);
}