1*17291Sopcode /* 2*17291Sopcode * @(#)pix.c 1.1 10/21/84 3*17291Sopcode * 4*17291Sopcode * Picture subwindow routines for the SUN Gremlin picture editor. 5*17291Sopcode * 6*17291Sopcode * Mark Opperman (opcode@monet.BERKELEY) 7*17291Sopcode * 8*17291Sopcode */ 9*17291Sopcode 10*17291Sopcode #include <suntool/tool_hs.h> 11*17291Sopcode #include "gremlin.h" 12*17291Sopcode #include "icondata.h" 13*17291Sopcode 14*17291Sopcode /* imports from graphics.c */ 15*17291Sopcode 16*17291Sopcode extern GRCurrentSetOn(); 17*17291Sopcode 18*17291Sopcode /* imports from text.c */ 19*17291Sopcode 20*17291Sopcode extern TxMsgOK(); 21*17291Sopcode 22*17291Sopcode /* imports from main.c */ 23*17291Sopcode 24*17291Sopcode extern ELT *cset; 25*17291Sopcode extern float PX, PY; 26*17291Sopcode extern struct pixwin *pix_pw; 27*17291Sopcode extern struct rect pix_size; 28*17291Sopcode extern struct pixrect *cset_pr; 29*17291Sopcode extern SUN_XORIGIN; 30*17291Sopcode extern SUN_YORIGIN; 31*17291Sopcode 32*17291Sopcode /* imports from help.c */ 33*17291Sopcode 34*17291Sopcode extern pixsw_help(); 35*17291Sopcode 36*17291Sopcode pix_left(ie)37*17291Sopcodepix_left(ie) 38*17291Sopcode register struct inputevent *ie; 39*17291Sopcode { 40*17291Sopcode TxMsgOK(); 41*17291Sopcode PX = winx_to_db(ie->ie_locx); 42*17291Sopcode PY = winy_to_db(ie->ie_locy); 43*17291Sopcode LGPoint(); 44*17291Sopcode } 45*17291Sopcode 46*17291Sopcode pix_middle(ie)47*17291Sopcodepix_middle(ie) 48*17291Sopcode register struct inputevent *ie; 49*17291Sopcode { 50*17291Sopcode TxMsgOK(); 51*17291Sopcode LGDeletePoint(); 52*17291Sopcode } 53*17291Sopcode 54*17291Sopcode pix_right(ie)55*17291Sopcodepix_right(ie) 56*17291Sopcode register struct inputevent *ie; 57*17291Sopcode { 58*17291Sopcode TxMsgOK(); 59*17291Sopcode pixsw_help(); 60*17291Sopcode } 61*17291Sopcode 62*17291Sopcode pix_winexit(ie)63*17291Sopcodepix_winexit(ie) 64*17291Sopcode register struct inputevent *ie; 65*17291Sopcode { 66*17291Sopcode if ((ie->ie_locx >= pix_size.r_width)||(ie->ie_locy >= pix_size.r_height)) 67*17291Sopcode GRCurrentSetOn(); 68*17291Sopcode } 69