PLplot  5.13.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
plframe.c File Reference
#include "plserver.h"
#include "plxwd.h"
#include "tcpip.h"
#include <fcntl.h>

Go to the source code of this file.

Classes

struct  PlFrame
 

Macros

#define DEBUGx
 
#define NEED_PLDEBUG
 
#define NDEV   100
 
#define BUFFER_FIFO   1
 
#define FH_FIFO   0
 
#define plframe_cmd(code)   if ( ( code ) == TCL_ERROR ) return ( TCL_ERROR );
 
#define Tk_Cursor   Cursor
 
#define REFRESH_PENDING   1
 
#define RESIZE_PENDING   2
 
#define REDRAW_PENDING   4
 
#define UPDATE_V_SCROLLBAR   8
 
#define UPDATE_H_SCROLLBAR   16
 
#define DEF_PLFRAME_BG_COLOR   "Black"
 
#define DEF_PLFRAME_BG_MONO   "White"
 
#define DEF_PLFRAME_BORDER_WIDTH   "0"
 
#define DEF_PLFRAME_CURSOR   ( (char *) NULL )
 
#define DEF_PLFRAME_HEIGHT   "0"
 
#define DEF_PLFRAME_RELIEF   "flat"
 
#define DEF_PLFRAME_WIDTH   "0"
 
#define FreeProcArg   ClientData
 
#define INSTALL_COLORMAP_IN_TK
 
#define FILECAST
 

Functions

int plFrameCmd (ClientData, Tcl_Interp *, int, const char **)
 
static void DestroyPlFrame (FreeProcArg)
 
static void DisplayPlFrame (ClientData)
 
static void PlFrameInit (ClientData)
 
static void PlFrameConfigureEH (ClientData, XEvent *)
 
static void PlFrameExposeEH (ClientData, XEvent *)
 
static void PlFrameMotionEH (ClientData, register XEvent *)
 
static void PlFrameEnterEH (ClientData, register XEvent *)
 
static void PlFrameLeaveEH (ClientData, register XEvent *)
 
static void PlFrameKeyEH (ClientData, register XEvent *)
 
static int PlFrameWidgetCmd (ClientData, Tcl_Interp *, int, const char **)
 
static int ReadData (ClientData, int)
 
static void Install_cmap (PlFrame *plFramePtr)
 
static int Closelink (Tcl_Interp *, PlFrame *, int, const char **)
 
static int Cmd (Tcl_Interp *, PlFrame *, int, const char **)
 
static int ColorManip (Tcl_Interp *, PlFrame *, int, const char **)
 
static int ConfigurePlFrame (Tcl_Interp *, PlFrame *, int, const char **, int)
 
static int Draw (Tcl_Interp *, PlFrame *, int, const char **)
 
static int Info (Tcl_Interp *, PlFrame *, int, const char **)
 
static int Openlink (Tcl_Interp *, PlFrame *, int, const char **)
 
static int Orient (Tcl_Interp *, PlFrame *, int, const char **)
 
static int Page (Tcl_Interp *, PlFrame *, int, const char **)
 
static int Print (Tcl_Interp *, PlFrame *, int, const char **)
 
static int Redraw (Tcl_Interp *, PlFrame *, int, const char **)
 
static int Save (Tcl_Interp *, PlFrame *, int, const char **)
 
static int View (Tcl_Interp *, PlFrame *, int, const char **)
 
static int xScroll (Tcl_Interp *, PlFrame *, int, const char **)
 
static int yScroll (Tcl_Interp *, PlFrame *, int, const char **)
 
static int report (Tcl_Interp *, PlFrame *, int, const char **)
 
static void CreateXhairs (PlFrame *)
 
static void DestroyXhairs (PlFrame *)
 
static void DrawXhairs (PlFrame *, int, int)
 
static void UpdateXhairs (PlFrame *)
 
static void CreateRband (PlFrame *)
 
static void DestroyRband (PlFrame *)
 
static void DrawRband (PlFrame *, int, int)
 
static void UpdateRband (PlFrame *)
 
static void process_bop (void *, int *)
 
static void process_eop (void *, int *)
 
static void gbox (PLFLT *, PLFLT *, PLFLT *, PLFLT *, const char **)
 
static void UpdateVScrollbar (register PlFrame *)
 
static void UpdateHScrollbar (register PlFrame *)
 
int plFrameCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char **argv)
 
static void PlFrameConfigureEH (ClientData clientData, register XEvent *eventPtr)
 
static void PlFrameExposeEH (ClientData clientData, register XEvent *eventPtr)
 
static void PlFrameLeaveEH (ClientData clientData, register XEvent *PL_UNUSED(eventPtr))
 
static int scol0 (Tcl_Interp *interp, register PlFrame *plFramePtr, int i, const char *col, int *p_changed)
 
static int scol1 (Tcl_Interp *interp, register PlFrame *plFramePtr, int i, const char *col, const char *pos, const char *rev, int *p_changed)
 
static int ColorManip (Tcl_Interp *interp, register PlFrame *plFramePtr, int argc, const char **argv)
 
static int Cmd (Tcl_Interp *interp, register PlFrame *plFramePtr, int argc, const char **argv)
 
static int ConfigurePlFrame (Tcl_Interp *interp, register PlFrame *plFramePtr, int argc, const char **argv, int flags)
 
static int Draw (Tcl_Interp *interp, register PlFrame *plFramePtr, int argc, const char **argv)
 
static int Info (Tcl_Interp *interp, register PlFrame *plFramePtr, int argc, const char **argv)
 
static int Openlink (Tcl_Interp *interp, register PlFrame *plFramePtr, int argc, const char **argv)
 
static int Closelink (Tcl_Interp *interp, register PlFrame *plFramePtr, int PL_UNUSED(argc), const char **PL_UNUSED(argv))
 
static int process_data (Tcl_Interp *interp, register PlFrame *plFramePtr)
 
static int Orient (Tcl_Interp *interp, register PlFrame *plFramePtr, int argc, const char **argv)
 
static int Print (Tcl_Interp *interp, register PlFrame *plFramePtr, int PL_UNUSED(argc), const char **PL_UNUSED(argv))
 
static int Page (Tcl_Interp *interp, register PlFrame *plFramePtr, int argc, const char **argv)
 
static int Redraw (Tcl_Interp *PL_UNUSED(interp), register PlFrame *plFramePtr, int PL_UNUSED(argc), const char **PL_UNUSED(argv))
 
static int Save (Tcl_Interp *interp, register PlFrame *plFramePtr, int argc, const char **argv)
 
static int View (Tcl_Interp *interp, register PlFrame *plFramePtr, int argc, const char **argv)
 
static int xScroll (Tcl_Interp *interp, register PlFrame *plFramePtr, int argc, const char **argv)
 
static int yScroll (Tcl_Interp *interp, register PlFrame *plFramePtr, int argc, const char **argv)
 
static int report (Tcl_Interp *interp, register PlFrame *plFramePtr, int argc, const char **argv)
 
static void process_bop (void *clientData, int *PL_UNUSED(skip_driver_bop))
 
static void process_eop (void *clientData, int *PL_UNUSED(skip_driver_eop))
 

Variables

static Tk_ConfigSpec configSpecs []
 

Macro Definition Documentation

#define BUFFER_FIFO   1

Definition at line 66 of file plframe.c.

#define DEBUGx

Definition at line 48 of file plframe.c.

#define DEF_PLFRAME_BG_COLOR   "Black"

Definition at line 200 of file plframe.c.

#define DEF_PLFRAME_BG_MONO   "White"

Definition at line 201 of file plframe.c.

#define DEF_PLFRAME_BORDER_WIDTH   "0"

Definition at line 202 of file plframe.c.

#define DEF_PLFRAME_CURSOR   ( (char *) NULL )

Definition at line 203 of file plframe.c.

#define DEF_PLFRAME_HEIGHT   "0"

Definition at line 204 of file plframe.c.

#define DEF_PLFRAME_RELIEF   "flat"

Definition at line 205 of file plframe.c.

#define DEF_PLFRAME_WIDTH   "0"

Definition at line 206 of file plframe.c.

#define FH_FIFO   0

Definition at line 70 of file plframe.c.

#define FILECAST
#define FreeProcArg   ClientData

Definition at line 276 of file plframe.c.

#define INSTALL_COLORMAP_IN_TK
#define NDEV   100

Definition at line 62 of file plframe.c.

#define NEED_PLDEBUG

Definition at line 50 of file plframe.c.

#define plframe_cmd (   code)    if ( ( code ) == TCL_ERROR ) return ( TCL_ERROR );

Definition at line 74 of file plframe.c.

#define REDRAW_PENDING   4

Definition at line 194 of file plframe.c.

#define REFRESH_PENDING   1

Definition at line 192 of file plframe.c.

#define RESIZE_PENDING   2

Definition at line 193 of file plframe.c.

#define Tk_Cursor   Cursor

Definition at line 80 of file plframe.c.

#define UPDATE_H_SCROLLBAR   16

Definition at line 196 of file plframe.c.

#define UPDATE_V_SCROLLBAR   8

Definition at line 195 of file plframe.c.

Function Documentation

static int Closelink ( Tcl_Interp *  ,
PlFrame ,
int  ,
const char **   
)
static
static int Closelink ( Tcl_Interp *  interp,
register PlFrame plFramePtr,
int   PL_UNUSEDargc,
const char **  PL_UNUSEDargv 
)
static

Definition at line 2639 of file plframe.c.

static int Cmd ( Tcl_Interp *  ,
PlFrame ,
int  ,
const char **   
)
static
static int Cmd ( Tcl_Interp *  interp,
register PlFrame plFramePtr,
int  argc,
const char **  argv 
)
static

Definition at line 2178 of file plframe.c.

static int ColorManip ( Tcl_Interp *  ,
PlFrame ,
int  ,
const char **   
)
static
static int ColorManip ( Tcl_Interp *  interp,
register PlFrame plFramePtr,
int  argc,
const char **  argv 
)
static

Definition at line 1943 of file plframe.c.

static int ConfigurePlFrame ( Tcl_Interp *  ,
PlFrame ,
int  ,
const char **  ,
int   
)
static
static int ConfigurePlFrame ( Tcl_Interp *  interp,
register PlFrame plFramePtr,
int  argc,
const char **  argv,
int  flags 
)
static

Definition at line 2244 of file plframe.c.

static void CreateRband ( PlFrame plFramePtr)
static

Definition at line 1430 of file plframe.c.

static void CreateXhairs ( PlFrame plFramePtr)
static

Definition at line 1294 of file plframe.c.

static void DestroyPlFrame ( FreeProcArg  clientData)
static

Definition at line 842 of file plframe.c.

static void DestroyRband ( PlFrame plFramePtr)
static

Definition at line 1489 of file plframe.c.

static void DestroyXhairs ( PlFrame plFramePtr)
static

Definition at line 1347 of file plframe.c.

static void DisplayPlFrame ( ClientData  clientData)
static

Definition at line 1682 of file plframe.c.

static int Draw ( Tcl_Interp *  ,
PlFrame ,
int  ,
const char **   
)
static
static int Draw ( Tcl_Interp *  interp,
register PlFrame plFramePtr,
int  argc,
const char **  argv 
)
static

Definition at line 2366 of file plframe.c.

static void DrawRband ( PlFrame plFramePtr,
int  x0,
int  y0 
)
static

Definition at line 1520 of file plframe.c.

static void DrawXhairs ( PlFrame plFramePtr,
int  x0,
int  y0 
)
static

Definition at line 1385 of file plframe.c.

static void gbox ( PLFLT xl,
PLFLT yl,
PLFLT xr,
PLFLT yr,
const char **  argv 
)
static

Definition at line 3454 of file plframe.c.

static int Info ( Tcl_Interp *  ,
PlFrame ,
int  ,
const char **   
)
static
static int Info ( Tcl_Interp *  interp,
register PlFrame plFramePtr,
int  argc,
const char **  argv 
)
static

Definition at line 2465 of file plframe.c.

static void Install_cmap ( PlFrame plFramePtr)
static

Definition at line 1632 of file plframe.c.

static int Openlink ( Tcl_Interp *  ,
PlFrame ,
int  ,
const char **   
)
static
static int Openlink ( Tcl_Interp *  interp,
register PlFrame plFramePtr,
int  argc,
const char **  argv 
)
static

Definition at line 2527 of file plframe.c.

static int Orient ( Tcl_Interp *  ,
PlFrame ,
int  ,
const char **   
)
static
static int Orient ( Tcl_Interp *  interp,
register PlFrame plFramePtr,
int  argc,
const char **  argv 
)
static

Definition at line 2770 of file plframe.c.

static int Page ( Tcl_Interp *  ,
PlFrame ,
int  ,
const char **   
)
static
static int Page ( Tcl_Interp *  interp,
register PlFrame plFramePtr,
int  argc,
const char **  argv 
)
static

Definition at line 2916 of file plframe.c.

int plFrameCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
int plFrameCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char **  argv 
)

Definition at line 357 of file plframe.c.

static void PlFrameConfigureEH ( ClientData  ,
XEvent *   
)
static
static void PlFrameConfigureEH ( ClientData  clientData,
register XEvent *  eventPtr 
)
static

Definition at line 928 of file plframe.c.

static void PlFrameEnterEH ( ClientData  clientData,
register XEvent *  eventPtr 
)
static

Definition at line 1107 of file plframe.c.

static void PlFrameExposeEH ( ClientData  ,
XEvent *   
)
static
static void PlFrameExposeEH ( ClientData  clientData,
register XEvent *  eventPtr 
)
static

Definition at line 1009 of file plframe.c.

static void PlFrameInit ( ClientData  clientData)
static

Definition at line 1565 of file plframe.c.

static void PlFrameKeyEH ( ClientData  clientData,
register XEvent *  eventPtr 
)
static

Definition at line 1183 of file plframe.c.

static void PlFrameLeaveEH ( ClientData  ,
register XEvent *   
)
static
static void PlFrameLeaveEH ( ClientData  clientData,
register XEvent *  PL_UNUSEDeventPtr 
)
static

Definition at line 1144 of file plframe.c.

static void PlFrameMotionEH ( ClientData  clientData,
register XEvent *  eventPtr 
)
static

Definition at line 1073 of file plframe.c.

static int PlFrameWidgetCmd ( ClientData  clientData,
Tcl_Interp *  interp,
int  argc,
const char **  argv 
)
static

Definition at line 519 of file plframe.c.

static int Print ( Tcl_Interp *  ,
PlFrame ,
int  ,
const char **   
)
static
static int Print ( Tcl_Interp *  interp,
register PlFrame plFramePtr,
int   PL_UNUSEDargc,
const char **  PL_UNUSEDargv 
)
static

Definition at line 2813 of file plframe.c.

static void process_bop ( void *  ,
int *   
)
static
static void process_bop ( void *  clientData,
int *  PL_UNUSEDskip_driver_bop 
)
static

Definition at line 3354 of file plframe.c.

static int process_data ( Tcl_Interp *  interp,
register PlFrame plFramePtr 
)
static

Definition at line 2679 of file plframe.c.

static void process_eop ( void *  ,
int *   
)
static
static void process_eop ( void *  clientData,
int *  PL_UNUSEDskip_driver_eop 
)
static

Definition at line 3369 of file plframe.c.

static int ReadData ( ClientData  clientData,
int  mask 
)
static

Definition at line 2725 of file plframe.c.

static int Redraw ( Tcl_Interp *  ,
PlFrame ,
int  ,
const char **   
)
static
static int Redraw ( Tcl_Interp *  PL_UNUSEDinterp,
register PlFrame plFramePtr,
int   PL_UNUSEDargc,
const char **  PL_UNUSEDargv 
)
static

Definition at line 2956 of file plframe.c.

static int report ( Tcl_Interp *  ,
PlFrame ,
int  ,
const char **   
)
static
static int report ( Tcl_Interp *  interp,
register PlFrame plFramePtr,
int  argc,
const char **  argv 
)
static

Definition at line 3301 of file plframe.c.

static int Save ( Tcl_Interp *  ,
PlFrame ,
int  ,
const char **   
)
static
static int Save ( Tcl_Interp *  interp,
register PlFrame plFramePtr,
int  argc,
const char **  argv 
)
static

Definition at line 2980 of file plframe.c.

static int scol0 ( Tcl_Interp *  interp,
register PlFrame plFramePtr,
int  i,
const char *  col,
int *  p_changed 
)
static

Definition at line 1816 of file plframe.c.

static int scol1 ( Tcl_Interp *  interp,
register PlFrame plFramePtr,
int  i,
const char *  col,
const char *  pos,
const char *  rev,
int *  p_changed 
)
static

Definition at line 1862 of file plframe.c.

static void UpdateHScrollbar ( register PlFrame plFramePtr)
static

Definition at line 3421 of file plframe.c.

static void UpdateRband ( PlFrame plFramePtr)
static

Definition at line 1539 of file plframe.c.

static void UpdateVScrollbar ( register PlFrame plFramePtr)
static

Definition at line 3389 of file plframe.c.

static void UpdateXhairs ( PlFrame plFramePtr)
static

Definition at line 1410 of file plframe.c.

static int View ( Tcl_Interp *  ,
PlFrame ,
int  ,
const char **   
)
static
static int View ( Tcl_Interp *  interp,
register PlFrame plFramePtr,
int  argc,
const char **  argv 
)
static

Definition at line 3117 of file plframe.c.

static int xScroll ( Tcl_Interp *  ,
PlFrame ,
int  ,
const char **   
)
static
static int xScroll ( Tcl_Interp *  interp,
register PlFrame plFramePtr,
int  argc,
const char **  argv 
)
static

Definition at line 3233 of file plframe.c.

static int yScroll ( Tcl_Interp *  ,
PlFrame ,
int  ,
const char **   
)
static
static int yScroll ( Tcl_Interp *  interp,
register PlFrame plFramePtr,
int  argc,
const char **  argv 
)
static

Definition at line 3267 of file plframe.c.

Variable Documentation

Tk_ConfigSpec configSpecs[]
static

Definition at line 210 of file plframe.c.