DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ T X

⟦074c3125f⟧ TextFile

    Length: 2230 (0x8b6)
    Types: TextFile
    Names: »XrUtilities.3x«

Derivation

└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
    └─ ⟦526ad3590⟧ »EUUGD11/gnu-31mar87/X.V10.R4.tar.Z« 
        └─⟦2109abc41⟧ 
            └─ ⟦this⟧ »./X.V10R4/Toolkit/Xr/usr/man/man3/XrUtilities.3x« 

TextFile

.TH XRUTILITIES 3X "Xrlib Version 10"
.SH NAME
Utilities - Utilities for performing some general functions
.SH SYNOPSIS
#include <X/Xib.h>
.br
#include <Xr/Xrlib.h>
.br
.PP
.B XrStringWidth (fontInfo, str, charWidth, charPad, spacePad)
.br
FontInfo * fontInfo;
.br
STRING8 str;
.br
INT32 charWidth;
.br
INT32 charPad;
.br
INT32 spacePad;
.PP
.br
.B XrMapButton (eventCode, event)
.br
INT8 eventCode;
.br
XEvent * event;
.PP
.br
.B XrGetWindowEvent (eventCode, windowEvent)
.br
INT8 eventCode;
.br
xrWindowEvent * windowEvent;
.br
.PP
.br
INT8 *
.br
.B XrVersion ()
.br
.PP
.sp 1
.SH DESCRIPTION
.IP XrStringWidth
XrStringWidth() calculates the width in pixels of a character string
using the font information contained in the structure pointed at by
.I fontInfo.
The string is represented by the rest of the parameters.
.I str
points to the string to be used in the calculation.
.I charWidth
contains the length of the string in characters or is set to the define
.B XrNULLTERMINATED
if the string is null-terminated.
.I charPad
and
.I spacePad
contain the additional space to be placed between characters and spaces
respectively.
.IP
The pixel width of the string is returned as the value of the function.
.IP XrMapButton
XrMapButton takes as a parameter an eventCode which contains one of the
following defines:
.B XrSELECT, XrSELECTUP, XrMENUPOST, XrMENUITEMSELECT.
The event parameter will be compared against the conditions necessary
for the above defines and if a match is found 
.B TRUE
will be returned.  If no match is found,
.B FALSE
will be returned.
.IP XrGetWindowEvent
XrGetWindowEvent() takes as input one of the defines
.B XrSELECT, XrSELECTUP, XrMENUPOST, XrMENUITEMSELECT
and fills out the xrWindowEvent structure with the values
necessary for the define.  The structure can then be used
to add a function into a window that will be invoked under
one of the defines conditions.
.IP XrVersion
XrVersion() returns a pointer to a string 
which contains the version of Xrlib being
used.  The string will have the format of 
.B X-ray Version ##  -  ##.##  
The ## contains the X library version that the Xr library was built with.
The ##.## can be ignored.  The string returned is static and thus
cannot be modified.