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HAR
GKS_K_TEXT_PRECISION_STROKE
GKS_K_TEXT_PRECISION_OUTLINE
GKS_K_TEXT_MAX_SIZE
GKS_K_WSCAT_OUTPUT
GKS_K_WSCAT_INPUT
GKS_K_WSCAT_OUTIN
GKS_K_WSCAT_WISS
GKS_K_WSCAT_MO
GKS_K_WSCAT_MI
GKS_K_WS_INACTIVE
GKS_K_WS_ACTIVE
GKS_K_LINETYPE_SOLID
GKS_K_LINETYPE_DASHED
GKS_K_LINETYPE_DOTTED
GKS_K_LINETYPE_DASHED_DOTTED
GKS_K_LINETYPE_DASH_2_DOT
GKS_K_LINETYPE_DASH_3_DOT
GKS_K_LINETYPE_LONG_DASH
GKS_K_LINETYPE_LONG_SHORT_DASH
GKS_K_LINETYPE_SPACED_DASH
GKS_K_LINETYPE_SPACED_DOT
GKS_K_LINETYPE_DOUBLE_DOT
GKS_K_LINETYPE_TRIPLE_DOT
GKS_K_MARKERTYPE_DOT
GKS_K_MARKERTYPE_PLUS
GKS_K_MARKERTYPE_ASTERISK
GKS_K_MARKERTYPE_CIRCLE
GKS_K_MARKERTYPE_DIAGONAL_CROSS
GKS_K_MARKERTYPE_SOLID_CIRCLE
GKS_K_MARKERTYPE_TRIANGLE_UP
GKS_K_MARKERTYPE_SOLID_TRI_UP
GKS_K_MARKERTYPE_TRIANGLE_DOWN
GKS_K_MARKERTYPE_SOLID_TRI_DOWN
GKS_K_MARKERTYPE_SQUARE
GKS_K_MARKERTYPE_SOLID_SQUARE
GKS_K_MARKERTYPE_BOWTIE
GKS_K_MARKERTYPE_SOLID_BOWTIE
GKS_K_MARKERTYPE_HOURGLASS
GKS_K_MARKERTYPE_SOLID_HGLASS
GKS_K_MARKERTYPE_DIAMOND
GKS_K_MARKERTYPE_SOLID_DIAMOND
GKS_K_MARKERTYPE_STAR
GKS_K_MARKERTYPE_SOLID_STAR
GKS_K_MARKERTYPE_TRI_UP_DOWN
GKS_K_MARKERTYPE_SOLID_TRI_RIGHT
GKS_K_MARKERTYPE_SOLID_TRI_LEFT
GKS_K_MARKERTYPE_HOLLOW_PLUS
GKS_K_MARKERTYPE_SOLID_PLUS
GKS_K_MARKERTYPE_PENTAGON
GKS_K_MARKERTYPE_HEXAGON
GKS_K_MARKERTYPE_HEPTAGON
GKS_K_MARKERTYPE_OCTAGON
GKS_K_MARKERTYPE_STAR_4
GKS_K_MARKERTYPE_STAR_5
GKS_K_MARKERTYPE_STAR_6
GKS_K_MARKERTYPE_STAR_7
GKS_K_MARKERTYPE_STAR_8
GKS_K_MARKERTYPE_VLINE
GKS_K_MARKERTYPE_HLINE
GKS_K_MARKERTYPE_OMARK
GKS_K_VALUE_SET
GKS_K_VALUE_REALIZED
GKS_K_UPSAMPLE_VERTICAL_DEFAULT
GKS_K_UPSAMPLE_HORIZONTAL_DEFAULT
GKS_K_DOWNSAMPLE_VERTICAL_DEFAULT
GKS_K_DOWNSAMPLE_HORIZONTAL_DEFAULT
GKS_K_UPSAMPLE_VERTICAL_NEAREST
GKS_K_UPSAMPLE_HORIZONTAL_NEAREST
GKS_K_DOWNSAMPLE_VERTICAL_NEAREST
GKS_K_DOWNSAMPLE_HORIZONTAL_NEAREST
GKS_K_UPSAMPLE_VERTICAL_LINEAR
GKS_K_UPSAMPLE_HORIZONTAL_LINEAR
GKS_K_DOWNSAMPLE_VERTICAL_LINEAR
GKS_K_DOWNSAMPLE_HORIZONTAL_LINEAR
GKS_K_UPSAMPLE_VERTICAL_LANCZOS
GKS_K_UPSAMPLE_HORIZONTAL_LANCZOS
GKS_K_DOWNSAMPLE_VERTICAL_LANCZOS
GKS_K_DOWNSAMPLE_HORIZONTAL_LANCZOS
GKS_K_RESAMPLE_DEFAULT
GKS_K_RESAMPLE_NEAREST
GKS_K_RESAMPLE_LINEAR
GKS_K_RESAMPLE_LANCZOS
GKS_K_GDP_DRAW_PATH
GKS_K_GDP_DRAW_LINES
GKS_K_GDP_DRAW_MARKERS
GKS_K_GDP_DRAW_TRIANGLES
GKS_K_GDP_FILL_POLYGONS
GKS_K_NO_RESIZE
GKS_K_RESIZE
GKS_K_NO_ERROR
GKS_K_ERROR
GWC_DEF
GCONID_DEFAULT
GWS_DEFAULT
GWS_DEF
gsetlinecolorind
gsetmarkercolorind
gsettextcolorind
gsetfillcolorind
gsetcolorrep
ginqlinecolorind
ginqmarkercolorind
ginqtextcolorind
ginqfillcolorind

Typedefs

typedef FILE Gfile
typedef char Gchar
typedef char Gconn
typedef double Gfloat
typedef int Gwstype
typedef int Gint
typedef unsigned int Guint
typedef long Glong

Enums

enum Gasf

Values:

enumerator GBUNDLED
enumerator GINDIVIDUAL
enum Gclip

Values:

enumerator GCLIP
enumerator GNOCLIP
enum Gclrflag

Values:

enumerator GCONDITIONALLY
enumerator GALWAYS
enum Gcsw

Values:

enumerator GWC
enumerator GNDC
enum Gdevunits

Values:

enumerator GDC_METRES
enumerator GDC_OTHER
enum Gflinter

Values:

enumerator GHOLLOW
enumerator GSOLID
enumerator GPATTERN
enumerator GHATCH
enum Gistat

Values:

enumerator GOK
enumerator GNONE
enum Glntype

Values:

enumerator GLN_SOLID
enumerator GLN_DASHED
enumerator GLN_DOTTED
enumerator GLN_DASHDOT
enumerator GLN_TRIPLE_DOT
enumerator GLN_DOUBLE_DOT
enumerator GLN_SPACED_DOT
enumerator GLN_SPACED_DASH
enumerator GLN_LONG_SHORT_DASH
enumerator GLN_LONG_DASH
enumerator GLN_DASH_3_DOT
enumerator GLN_DASH_2_DOT
enum Gmktype

Values:

enumerator GMK_POINT
enumerator GMK_PLUS
enumerator GMK_STAR
enumerator GMK_O
enumerator GMK_X
enumerator GMK_SOLID_DIAMOND
enumerator GMK_DIAMOND
enumerator GMK_SOLID_HGLASS
enumerator GMK_HOURGLASS
enumerator GMK_SOLID_BOWTIE
enumerator GMK_BOWTIE
enumerator GMK_SOLID_SQUARE
enumerator GMK_SQUARE
enumerator GMK_SOLID_TRI_DOWN
enumerator GMK_TRIANGLE_DOWN
enumerator GMK_SOLID_TRI_UP
enumerator GMK_TRIANGLE_UP
enumerator GMK_SOLID_CIRCLE
enum Gopst

Values:

enumerator GGKCL
enumerator GGKOP
enumerator GWSOP
enumerator GWSAC
enumerator GSGOP
enum Gregen

Values:

enumerator GPERFORM
enumerator GPOSTPONE
enum Gtxhor

Values:

enumerator GAH_NORMAL
enumerator GAH_LEFT
enumerator GAH_CENTRE
enumerator GAH_RIGHT
enum Gtxpath

Values:

enumerator GTP_RIGHT
enumerator GTP_LEFT
enumerator GTP_UP
enumerator GTP_DOWN
enum Gtxprec

Values:

enumerator GP_STRING
enumerator GP_CHAR
enumerator GP_STROKE
enum Gtxver

Values:

enumerator GAV_NORMAL
enumerator GAV_TOP
enumerator GAV_CAP
enumerator GAV_HALF
enumerator GAV_BASE
enumerator GAV_BOTTOM
enum Gwscat

Values:

enumerator GOUTPUT
enumerator GINPUT
enumerator GOUTIN
enumerator GWISS
enumerator GMO
enumerator GMI

Functions

void gks_init_gks(void)
void gks_open_gks(int errfil)
void gks_close_gks(void)
void gks_open_ws(int wkid, char *conid, int wtype)
void gks_close_ws(int wkid)
void gks_activate_ws(int wkid)
void gks_deactivate_ws(int wkid)
void gks_configure_ws(int wkid)
void gks_clear_ws(int wkid, int cofl)
void gks_redraw_seg_on_ws(int wkid)
void gks_update_ws(int wkid, int regfl)
void gks_set_deferral_state(int wkid, int defmo, int regmo)
void gks_escape(int funid, int dimidr, int *idr, int maxodr, int *lenodr, int *odr)
void gks_message(int wkid, char *message)
void gks_polyline(int n, double *pxa, double *pya)
void gks_polymarker(int n, double *pxa, double *pya)
void gks_text(double px, double py, char *str)
void gks_fillarea(int n, double *pxa, double *pya)
void gks_cellarray(double qx, double qy, double rx, double ry, int dimx, int dimy, int scol, int srow, int ncol, int nrow, int *colia)
void gks_gdp(int n, double *px, double *py, int primid, int ldr, int *datrec)
void gks_set_pline_index(int index)
void gks_set_pline_linetype(int ltype)
void gks_set_pline_linewidth(double lwidth)
void gks_set_pline_color_index(int coli)
void gks_set_pmark_index(int index)
void gks_set_pmark_type(int mtype)
void gks_set_pmark_size(double mszsc)
void gks_set_pmark_color_index(int coli)
void gks_set_text_index(int index)
void gks_set_text_fontprec(int font, int prec)
void gks_set_text_expfac(double chxp)
void gks_set_text_spacing(double chsp)
void gks_set_text_color_index(int coli)
void gks_set_text_height(double chh)
double gks_inq_ws_text_height(double chh, double height)
void gks_set_text_upvec(double chux, double chuy)
void gks_set_text_path(int txp)
void gks_set_text_align(int txalh, int txalv)
void gks_set_fill_index(int index)
void gks_set_fill_int_style(int ints)
void gks_set_fill_style_index(int styli)
void gks_set_fill_color_index(int coli)
void gks_set_asf(int *flag)
void gks_set_color_rep(int wkid, int index, double red, double green, double blue)
void gks_set_window(int tnr, double xmin, double xmax, double ymin, double ymax)
void gks_set_viewport(int tnr, double xmin, double xmax, double ymin, double ymax)
void gks_select_xform(int tnr)
void gks_set_clipping(int clsw)
void gks_set_ws_window(int wkid, double xmin, double xmax, double ymin, double ymax)
void gks_set_ws_viewport(int wkid, double xmin, double xmax, double ymin, double ymax)
void gks_create_seg(int segn)
void gks_close_seg(void)
void gks_delete_seg(int segn)
void gks_assoc_seg_with_ws(int wkid, int segn)
void gks_copy_seg_to_ws(int wkid, int segn)
void gks_set_seg_xform(int segn, double mat[3][2])
void gks_initialize_locator(int wkid, int lcdnr, int tnr, double px, double py, int pet, double xmin, double xmax, double ymin, double ymax, int ldr, char *datrec)
void gks_request_locator(int wkid, int lcdnr, int *stat, int *tnr, double *px, double *py)
void gks_request_stroke(int wkid, int skdnr, int n, int *stat, int *tnr, int *np, double *pxa, double *pya)
void gks_request_choice(int wkid, int chdnr, int *stat, int *chnr)
void gks_request_string(int wkid, int stdnr, int *stat, int *lostr, char *str)
void gks_read_item(int wkid, int lenidr, int maxodr, char *odr)
void gks_get_item(int wkid, int *type, int *lenodr)
void gks_interpret_item(int type, int lenidr, int dimidr, char *idr)
void gks_eval_xform_matrix(double fx, double fy, double transx, double transy, double phi, double scalex, double scaley, int coord, double tran[3][2])
void gks_inq_operating_state(int *opsta)
void gks_inq_level(int *errind, int *lev)
void gks_inq_wstype(int n, int *errind, int *number, int *wtype)
void gks_inq_max_xform(int *errind, int *maxtnr)
void gks_inq_open_ws(int n, int *errind, int *ol, int *wkid)
void gks_inq_active_ws(int n, int *errind, int *ol, int *wkid)
void gks_inq_segn_ws(int wkid, int n, int *errind, int *ol, int *segn)
void gks_inq_color_rep(int wkid, int index, int type, int *errind, double *red, double *green, double *blue)
void gks_inq_pline_linetype(int *errind, int *ltype)
void gks_inq_pline_linewidth(int *errind, double *lwidth)
void gks_inq_pline_color_index(int *errind, int *coli)
void gks_inq_pmark_type(int *errind, int *mtype)
void gks_inq_pmark_size(int *errind, double *mszsc)
void gks_inq_pmark_color_index(int *errind, int *coli)
void gks_inq_text_fontprec(int *errind, int *font, int *prec)
void gks_inq_text_expfac(int *errind, double *chxp)
void gks_inq_text_spacing(int *errind, double *chsp)
void gks_inq_text_color_index(int *errind, int *coli)
void gks_inq_text_height(int *errind, double *chh)
void gks_inq_text_upvec(int *errind, double *chux, double *chuy)
void gks_inq_text_path(int *errind, int *txp)
void gks_inq_text_align(int *errind, int *txalh, int *txalv)
void gks_inq_fill_int_style(int *errind, int *ints)
void gks_inq_fill_style_index(int *errind, int *styli)
void gks_inq_fill_color_index(int *errind, int *coli)
void gks_inq_transparency(int *errind, double *alpha)
void gks_inq_open_segn(int *errind, int *segn)
void gks_inq_current_xformno(int *errind, int *tnr)
void gks_inq_xform(int tnr, int *errind, double *wn, double *vp)
void gks_inq_clip(int *errind, int *clsw, double *clrt)
void gks_inq_ws_conntype(int wkid, int *errind, int *conid, int *wtype)
void gks_inq_ws_category(int wkid, int *errind, int *wscat)
void gks_inq_text_extent(int wkid, double px, double py, char *str, int *errind, double *cpx, double *cpy, double *tx, double *ty)
void gks_inq_max_ds_size(int wtype, int *errind, int *dcunit, double *rx, double *ry, int *lx, int *ly)
void gks_inq_vp_size(int wkid, int *errind, int *width, int *height, double *device_pixel_ratio)
void gks_sample_locator(int wkid, int *errind, double *x, double *y, int *buttons)
void gks_emergency_close(void)
void gks_set_text_slant(double slant)
void gks_draw_image(double x, double y, double scalex, double scaley, int width, int height, int *data)
void gks_set_shadow(double offsetx, double offsety, double blur)
void gks_set_transparency(double alpha)
void gks_set_coord_xform(double mat[3][2])
void gks_begin_selection(int index, int kind)
void gks_end_selection(void)
void gks_move_selection(double x, double y)
void gks_resize_selection(int kind, double x, double y)
void gks_set_bbox_callback(int id, void (*callback)(int, double, double, double, double))
void gks_cancel_bbox_callback(void)
void gks_inq_bbox(int *errind, double *xmin, double *xmax, double *ymin, double *ymax)
void gks_inq_text_slant(int *errind, double *slant)
double gks_precision(void)
int gks_text_maxsize(void)
void gks_set_border_color_index(int coli)
void gks_inq_border_color_index(int *errind, int *coli)
void gks_set_border_width(double bwidth)
void gks_inq_border_width(int *errind, double *bwidth)
void gks_select_clip_xform(int tnr)
void gks_inq_clip_xform(int *errind, int *tnr)
void gks_set_resample_method(unsigned int flag)
void gks_inq_resample_method(unsigned int *flag)
void gks_ft_gdp(int n, double *px, double *py, int primid, int ldr, int *datrec)
void *gks_state(void)
void gks_set_resize_behaviour(int flag)
void gks_inq_resize_behaviour(int *flag)
void gks_set_clip_region(int region)
void gks_inq_clip_region(int *errind, int *region)
void gks_set_clip_sector(double start_angle, double end_angle)
void gks_inq_clip_sector(int *errind, double *start_angle, double *end_angle)
int gopengks(Gfile*, Glong)
int gclosegks(void)
int gopenws(Gint, Gconn*, Gwstype*)
int gclosews(Gint)
int gactivatews(Gint)
int gdeactivatews(Gint)
int gconfigurews(Gint)
int gclearws(Gint, Gclrflag)
int gupdatews(Gint, Gregen)
int gmessage(Gint, Gchar*)
int gpolyline(Gint, Gpoint*)
int gpolymarker(Gint, Gpoint*)
int gtext(Gpoint*, Gchar*)
int gfillarea(Gint, Gpoint*)
int gcellarray(Grect*, Gidim*, Gint*)
int gsetasf(Gasfs*)
int gsetlineind(Gint)
int gsetlinetype(Gint)
int gsetlinewidth(Gfloat)
int gsetlinecolourind(Gint)
int gsetmarkerind(Gint)
int gsetmarkertype(Gint)
int gsetmarkersize(Gfloat)
int gsetmarkercolourind(Gint)
int gsettextind(Gint)
int gsettextfontprec(Gtxfp*)
int gsetcharexpan(Gfloat)
int gsetcharspace(Gfloat)
int gsettextcolourind(Gint)
int gsetcharheight(Gfloat)
int gsetcharup(Gpoint*)
int gsettextpath(Gtxpath)
int gsettextalign(Gtxalign*)
int gsetfillind(Gint)
int gsetfillintstyle(Gflinter)
int gsetfillstyle(Gint)
int gsetfillcolourind(Gint)
int gsetcolourrep(Gint, Gint, Gcobundl*)
int gsetwindow(Gint, Glimit*)
int gsetviewport(Gint, Glimit*)
int gselntran(Gint)
int gsetclip(Gclip)
int gsetwswindow(Gint, Glimit*)
int gsetwsviewport(Gint, Glimit*)
int greqloc(Gint, Gint, Gqloc*)
int greqstring(Gint, Gint, Gqstring*)
int gcreateseg(Gint)
int gcopysegws(Gint, Gint)
int gredrawsegws(Gint)
int gcloseseg(void)
int gevaltran(Gpoint*, Gpoint*, Gfloat, Gscale*, Gcsw, Gfloat[2][3])
int gsetsegtran(Gint, Gfloat[2][3])
int ginqopst(Gint*)
int ginqlevelgks(Gint*, Gint*)
int ginqmaxntrannum(Gint*, Gint*)
int ginqcharheight(Gfloat*, Gint*)
int ginqcharup(Gpoint*, Gint*)
int ginqtextpath(Gtxpath*, Gint*)
int ginqtextalign(Gtxalign*, Gint*)
int ginqlinetype(Gint*, Gint*)
int ginqlinewidth(Gfloat*, Gint*)
int ginqlinecolourind(Gint*, Gint*)
int ginqmarkertype(Gint*, Gint*)
int ginqmarkersize(Gfloat*, Gint*)
int ginqmarkercolourind(Gint*, Gint*)
int ginqtextfontprec(Gtxfp*, Gint*)
int ginqcharexpan(Gfloat*, Gint*)
int ginqcharspace(Gfloat*, Gint*)
int ginqtextcolourind(Gint*, Gint*)
int ginqfillintstyle(Gint*, Gint*)
int ginqfillstyle(Gint*, Gint*)
int ginqfillcolourind(Gint*, Gint*)
int ginqcurntrannum(Gint*, Gint*)
int ginqntran(Gint, Gtran*, Gint*)
int ginqclip(Gcliprect*, Gint*)
int ginqwscategory(Gwstype*, Gint*, Gint*)
int ginqdisplaysize(Gwstype*, Gdspsize*, Gint*)
int ginqtextextent(Gint, Gpoint*, Gchar*, Gextent*, Gint*)
int ginqnameopenseg(Gint*, Gint*)
int gemergencyclosegks(void)
struct Gipoint

Public Members

Gint x
Gint y
struct Gpoint

Public Members

Gfloat x
Gfloat y
struct Glimit

Public Members

Gfloat xmin
Gfloat xmax
Gfloat ymin
Gfloat ymax
struct Gtxfp

Public Members

Gint font
Gtxprec prec
struct Gtxalign

Public Members

Gtxhor hor
Gtxver ver
struct Grect

Public Members

Gpoint ul
Gpoint lr
struct Gidim

Public Members

Guint x_dim
Guint y_dim
struct Gasfs

Public Members

Gasf ln_type
Gasf ln_width
Gasf ln_colour
Gasf mk_type
Gasf mk_size
Gasf mk_colour
Gasf tx_fp
Gasf tx_exp
Gasf tx_space
Gasf tx_colour
Gasf fl_inter
Gasf fl_style
Gasf fl_colour
struct Gcobundl

Public Members

Gfloat red
Gfloat green
Gfloat blue
struct Gcliprect

Public Members

Gclip ind
Glimit rec
struct Gdspsize

Public Members

Gdevunits units
Gpoint device
Gipoint raster
struct Gextent

Public Members

Gpoint concat
Gpoint corner_1
Gpoint corner_2
Gpoint corner_3
Gpoint corner_4
struct Gloc

Public Members

Gint transform
Gpoint position
struct Gqloc

Public Members

Gistat status
Gloc loc
struct Gqstring

Public Members

Gistat status
Gchar *string
struct Gscale

Public Members

Gfloat x_scale
Gfloat y_scale
struct Gtran

Public Members

Glimit w
Glimit v
struct Ggksmit

Public Members

Gint type
Gint length