REF XpwMethods Jonathan Meyer, Jan 1990 COPYRIGHT University of Sussex 1991. All Rights Reserved. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<<<<<<<<<< >>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<<<<<<<<<< XPWMETHODS >>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<<<<<<<<<< >>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< This REF file describes the methods available to Poplog Widgets. Methods are like procedures except that a specific widget class can have several procedures that get called when one method is invoked (methods are subclass-to-superclass chained, so each superclass of a widget can have an interpretation for a method). Methods are invoked using XpwCallMethod. See REF * XpwCallMethod for more information on calling methods. The methods listed here are described in more detail in the relevant REF file. (Poplog Widget Set, revision 4.). CONTENTS - (Use g to access required sections) 1 XpwCore Methods 2 XpwPixmap Methods 3 XpwGraphic Methods 4 XpwScrollText Methods ------------------ 1 XpwCore Methods ------------------ (See REF * XpwCore.) Method Name Arguments Notes ----------- --------- ----- XpwMSetColor string Either name or #rgb format XpwMFreeColor string XpwMSetFont string XpwMFreeFont string XpwMSetCursor shape Shape in cursorfont.h XpwMFreeCursor shape e.g. XC_crosshair XpwMSetTile string -------------------- 2 XpwPixmap Methods -------------------- (See REF * XpwPixmap.) Method Name Arguments ----------- --------- XpwMDrawArc x,y,w,h,a1,a2 XpwMDrawArcs arcs,narcs XpwMDrawLine x,y,w,h XpwMDrawLines pts,npts,mode XpwMDrawPoint x,y XpwMDrawPoints pts,npts,mode XpwMDrawRectangle x,y,w,h XpwMDrawRectangles recs,nrecs XpwMDrawSegments segs,nsegs XpwMFillArc x,y,w,h,a1,a2 XpwMFillArcs arcs,narcs XpwMFillPolygon pts,npts,shape,mode XpwMFillRectangle x,y,w,h XpwMFillRectangles recs,nrecs XpwMDrawString x,y,str,len XpwMDrawImageString x,y,str,len XpwMPutImage image,sx,sy,ex,ey,w,h XpwMGetImage x,y,w,h,msk,format XpwMDrawImage x,y,w,h,data XpwMClearArea x,y,w,h XpwMClearWindow none XpwMCopyFrom src_widget,x,y,w,h,ex,ey XpwMCopyTo dst_widget,x,y,w,h,ex,ey --------------------- 3 XpwGraphic Methods --------------------- (See REF * XpwGraphic.) Method Name Arguments ----------- --------- XpwMCreateColormap - XpwMFreeColormap - XpwMAllocColorRange num,r1,g1,b1,r2,g2,b2 XpwMFreeColorRange range XpwMAllocStoreColor r,g,b XpwMSetPixelColor pixel,r,g,b ------------------------ 4 XpwScrollText Methods ------------------------ (See REF * XpwScrollText.) Method Name Arguments ----------- --------- XpwMScroll col,row,cols,rows,x_dist,y_dist XpwMScrollScreenUp - XpwMScrollScreenDown - XpwMScrollScreenLeft - XpwMScrollScreenRight - XpwMScrollLines row, rows, dist XpwMScrollTail col, row, dist XpwMScrollTails col, row, rows, dist XpwMScrollTailLeft col, row XpwMScrollTailRight col, row XpwMInsertLineAtCursor - XpwMInsertCharAtCursor - XpwMDeleteLineAtCursor - XpwMDeleteCharAtCursor - XpwMClear col, row, cols, rows XpwMClearScreen - XpwMClearLine row XpwMClearLines row, rows XpwMClearTail col, row XpwMClearTails col, row, rows XpwMClearChar col, row XpwMClearLineAtCursor - XpwMClearTailAtCursor - XpwMClearCharAtCursor - XpwMWrite col, row, index, lines, strs, off,len,clr XpwMWriteLine col, row, str, len, clr XpwMWriteLines col, row, index, lines, strs, len, clr XpwMWriteSubstr col, row, str, off, len, clr XpwMWriteAtCursor str, len XpwMInsert col, row, str, len XpwMInsertAtCursor str, len XpwMCursorTo col,row XpwMCursorUp - XpwMCursorDown - XpwMCursorLeft - XpwMCursorRight - XpwMBell volume --- C.x/x/pop/ref/XpwMethods --- Copyright University of Sussex 1991. All rights reserved.