|
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: 2524 (0x9dc) Types: TextFile Names: »BitmapEdit.h«
└─⟦8648bda34⟧ Bits:30007244 EUUGD5_II: X11R5 └─⟦2ca9b63e1⟧ »./contrib-1/contrib-1.00« └─⟦a8392fb20⟧ └─⟦this⟧ »contrib/examples/OReilly/Vol4/ch10/BitmapEdit.h«
/* * Copyright 1989 O'Reilly and Associates, Inc. * See ../Copyright for complete rights and liability information. */ #ifndef _XtBitmapEdit_h #define _XtBitmapEdit_h /* * BitmapEdit Widget public include file */ /* * This include not needed unless the application includes Intrinsic.h * after this file. Anyway, it doesn't hurt. */ #include <X11/Core.h> /* Resources: * Name Class RepType Default Value * ---- ----- ------- ------------- * (from RectObj) * ancestorSensitive * x Position int 0 * y Position int 0 * width * height * borderWidth * sensitive * (from WindowObj) * screen Screen Pointer XtCopyScreen * depth Depth Int XtCopyFromParent * colormap Colormap Pointer XtCopyFromParent * background Background pixel White * backgroundPixmap Pixmap Pixmap XtUnspecifiedPixmap * borderColor BorderColor pixel Black * borderPixmap BorderPixmap Pixmap XtUnspecifiedPixmap * mappedWhenManaged MappedWhenManaged Boolean True * translations * accelerators * (from Core) * none * (from BitmapEdit) * foregroundPixel Foreground pixel Black * backgroundPixel Background pixel White * callback Callback Callback NULL * cellSize CellSize int 30 * pixmapWidth PixmapWidth int 32 * pixmapHeight PixmapHeight int 32 * */ /* * This public structure is used as call_data to the callback. * It passes the x, y position of the cell toggled (in units of * cells, not pixels) and a mode flag that indicates whether the * cell was turned on (1) or off (0). */ typedef struct { int mode; int newx; int newy; } BitmapEditPointInfo; #define XtNselectionForeground "selectionForeground" #define XtNcellSizeInPixels "cellSizeInPixels" #define XtNpixmapWidthInCells "pixmapWidthInCells" #define XtNpixmapHeightInCells "pixmapHeightInCells" #define XtNcurX "curX" #define XtNcurY "curY" #define XtCSelectionForeground "SelectionForeground" #define XtCCellSizeInPixels "CellSizeInPixels" #define XtCPixmapWidthInCells "PixmapWidthInCells" #define XtCPixmapHeightInCells "PixmapHeightInCells" #define XtCCurX "CurX" #define XtCCurY "CurY" extern char *BitmapEditGetArrayString(); /* w */ /* Widget w; */ /* Class record constants */ extern WidgetClass bitmapEditWidgetClass; typedef struct _BitmapEditClassRec *BitmapEditWidgetClass; typedef struct _BitmapEditRec *BitmapEditWidget; #endif /* _XtBitmapEdit_h */ /* DON'T ADD STUFF AFTER THIS #endif */