/* * (c) Copyright 1991 Sun Microsystems, Inc. All rights reserved. * See LEGAL_NOTICE file for terms of the license. * * @(#) gripdemo.c 1.3 93/03/16 */ #include #include #include #include #include #include #include #include #include typedef struct { char *label; Grip_rubber_style style; } My_grip_list; main(argc, argv) int argc; char *argv[]; { Frame frame; Canvas_shell canvas_shell; Box box1; Box box2; Drawrect drawrect1; Drawrect drawrect2; int i; static My_grip_list grips[] = { "GRIP_RUBBER_NONE", GRIP_RUBBER_NONE, "GRIP_RUBBER_RECT", GRIP_RUBBER_RECT, "GRIP_RUBBER_VLINE", GRIP_RUBBER_VLINE, "GRIP_RUBBER_VLINE_PAIR", GRIP_RUBBER_VLINE_PAIR, "GRIP_RUBBER_HLINE", GRIP_RUBBER_HLINE, "GRIP_RUBBER_HLINE_PAIR", GRIP_RUBBER_HLINE_PAIR, "GRIP_RUBBER_CROSSHAIRS", GRIP_RUBBER_CROSSHAIRS, "GRIP_RUBBER_LINE", GRIP_RUBBER_LINE, }; xv_init(XV_INIT_ARGC_PTR_ARGV, &argc, argv, NULL); frame = (Frame) xv_create(XV_NULL, FRAME, NULL); canvas_shell = xv_create(frame, CANVAS_SHELL, XV_HEIGHT, 600, NULL); box1 = xv_create(canvas_shell, BOX, BOX_LAYOUT, BOX_LAYOUT_VERTICAL, BOX_GAP, 15, RECTOBJ_BORDER, 10, NULL); for(i=0;i