PLplot: plframe.c File Reference

PLplot 5.10.0

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Functions | Variables
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 68 of file plframe.c.

#define DEBUGx

Definition at line 50 of file plframe.c.

#define DEF_PLFRAME_BG_COLOR "Black"

Definition at line 202 of file plframe.c.

#define DEF_PLFRAME_BG_MONO "White"

Definition at line 203 of file plframe.c.

#define DEF_PLFRAME_BORDER_WIDTH "0"

Definition at line 204 of file plframe.c.

#define DEF_PLFRAME_CURSOR ( (char *) NULL )

Definition at line 205 of file plframe.c.

#define DEF_PLFRAME_HEIGHT "0"

Definition at line 206 of file plframe.c.

#define DEF_PLFRAME_RELIEF "flat"

Definition at line 207 of file plframe.c.

#define DEF_PLFRAME_WIDTH "0"

Definition at line 208 of file plframe.c.

#define FH_FIFO 0

Definition at line 72 of file plframe.c.

#define FILECAST

#define FreeProcArg ClientData

Definition at line 278 of file plframe.c.

#define INSTALL_COLORMAP_IN_TK

#define NDEV 100

Definition at line 64 of file plframe.c.

#define NEED_PLDEBUG

Definition at line 52 of file plframe.c.

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

Definition at line 76 of file plframe.c.

#define REDRAW_PENDING 4

Definition at line 196 of file plframe.c.

#define REFRESH_PENDING 1

Definition at line 194 of file plframe.c.

#define RESIZE_PENDING 2

Definition at line 195 of file plframe.c.

#define Tk_Cursor Cursor

Definition at line 82 of file plframe.c.

#define UPDATE_H_SCROLLBAR 16

Definition at line 198 of file plframe.c.

#define UPDATE_V_SCROLLBAR 8

Definition at line 197 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 2641 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 2180 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 1945 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 2246 of file plframe.c.

static void CreateRband | ( | PlFrame * | plFramePtr | ) |
| static

Definition at line 1432 of file plframe.c.

static void CreateXhairs | ( | PlFrame * | plFramePtr | ) |
| static

Definition at line 1296 of file plframe.c.

static void DestroyPlFrame | ( | FreeProcArg | clientData | ) |
| static

Definition at line 844 of file plframe.c.

static void DestroyRband | ( | PlFrame * | plFramePtr | ) |
| static

Definition at line 1491 of file plframe.c.

static void DestroyXhairs | ( | PlFrame * | plFramePtr | ) |
| static

Definition at line 1349 of file plframe.c.

static void DisplayPlFrame | ( | ClientData | clientData | ) |
| static

Definition at line 1684 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 2368 of file plframe.c.

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

Definition at line 1522 of file plframe.c.

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

Definition at line 1387 of file plframe.c.

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

Definition at line 3456 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 2467 of file plframe.c.

static void Install_cmap | ( | PlFrame * | plFramePtr | ) |
| static

Definition at line 1634 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 2529 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 2772 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 2918 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 359 of file plframe.c.

static void PlFrameConfigureEH | ( | ClientData | ,
|  | XEvent * |
| ) |  |
| static

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

Definition at line 930 of file plframe.c.

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

Definition at line 1109 of file plframe.c.

static void PlFrameExposeEH | ( | ClientData | ,
|  | XEvent * |
| ) |  |
| static

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

Definition at line 1011 of file plframe.c.

static void PlFrameInit | ( | ClientData | clientData | ) |
| static

Definition at line 1567 of file plframe.c.

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

Definition at line 1185 of file plframe.c.

static void PlFrameLeaveEH | ( | ClientData | ,
|  | register XEvent * |
| ) |  |
| static

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

Definition at line 1146 of file plframe.c.

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

Definition at line 1075 of file plframe.c.

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

Definition at line 521 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 2815 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 3356 of file plframe.c.

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

Definition at line 2681 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 3371 of file plframe.c.

static int ReadData | ( | ClientData | clientData,
|  | int | mask
| ) |  |
| static

Definition at line 2727 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 2958 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 3303 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 2982 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 1818 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 1864 of file plframe.c.

static void UpdateHScrollbar | ( | register PlFrame * | plFramePtr | ) |
| static

Definition at line 3423 of file plframe.c.

static void UpdateRband | ( | PlFrame * | plFramePtr | ) |
| static

Definition at line 1541 of file plframe.c.

static void UpdateVScrollbar | ( | register PlFrame * | plFramePtr | ) |
| static

Definition at line 3391 of file plframe.c.

static void UpdateXhairs | ( | PlFrame * | plFramePtr | ) |
| static

Definition at line 1412 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 3119 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 3235 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 3269 of file plframe.c.

## Variable Documentation

Tk_ConfigSpec configSpecs[]
| static

Definition at line 212 of file plframe.c.