|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: B T
Length: 1951 (0x79f)
Types: TextFile
Names: »BitmapEdiP.h«
└─⟦8648bda34⟧ Bits:30007244 EUUGD5_II: X11R5
└─⟦2ca9b63e1⟧ »./contrib-1/contrib-1.00«
└─⟦a8392fb20⟧
└─⟦this⟧ »contrib/examples/OReilly/Vol4/ch04/BitmapEdiP.h«
└─⟦this⟧ »contrib/examples/OReilly/Vol4/ch11/BitmapEdiP.h«
/*
* Copyright 1989 O'Reilly and Associates, Inc.
* See ../Copyright for complete rights and liability information.
*/
/*
* Copyright 1989 O'Reilly and Associates, Inc.
* See ../Copyright for complete rights and liability information.
*/
/*
* BitmapEditP.h - Private definitions for BitmapEdit widget
*/
#ifndef _ORABitmapEditP_h
#define _ORABitmapEditP_h
/*
* This include not needed unless the .c file includes IntrinsicP.h
* after this file. Anyway, it doesn't hurt.
*/
#include <X11/CoreP.h>
/*
* This one is always needed!
*/
#include "BitmapEdit.h"
/* New fields for the BitmapEdit widget class record */
typedef struct {
int make_compiler_happy; /* keep compiler happy */
} BitmapEditClassPart;
/* Full class record declaration */
typedef struct _BitmapEditClassRec {
CoreClassPart core_class;
BitmapEditClassPart bitmapEdit_class;
} BitmapEditClassRec;
extern BitmapEditClassRec bitmapEditClassRec;
/* New fields for the BitmapEdit widget record */
typedef struct {
/* resources */
Pixel foreground;
XtCallbackList callback; /* application installed callback function(s) */
Dimension pixmap_width_in_cells;
Dimension pixmap_height_in_cells;
int cell_size_in_pixels;
char *cell; /* array for keeping track of array of bits */
Boolean showAll; /* whether bitmap should display entire bitmap */
/* private state */
int cur_x, cur_y; /* position of visible corner in big pixmap */
Dimension pixmap_width_in_pixels;
Dimension pixmap_height_in_pixels;
Pixmap big_picture;
GC draw_gc; /* one plane, for drawing into pixmap */
GC undraw_gc; /* one plane, for drawing into pixmap */
GC copy_gc; /* defaultdepthofscreen, for copying pixmap into window */
} BitmapEditPart;
/*
* Full instance record declaration
*/
typedef struct _BitmapEditRec {
CorePart core;
BitmapEditPart bitmapEdit;
} BitmapEditRec;
#endif /* _ORABitmapEditP_h */