*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: XtAllocGC | Section: 3 | Source: Digital UNIX | File: XtAllocGC.3Xt.gz
XtAllocGC(3Xt) XtAllocGC(3Xt) NAME XtAllocateGC - obtain a sharable GC with modifiable fields SYNOPSIS GC XtAllocateGC(w, depth, value_mask, values, dynamic_mask, un- used_mask) Widget w; Cardinal depth; XtGCMask value_mask; XGCValues *values; XtGCMask dynamic_mask; XtGCMask unused_mask; ARGUMENTS Specifies the actual values for this GC. Specifies which fields of the values are specified. Specifies the widget. Specifies the depth for which the returned GC is valid, or 0. Specifies the fields of the GC that may be modified by the caller. Specifies the fields of the GC that will not be used by the caller. DESCRIPTION The XtAllocateGC function returns a sharable GC that may be modified by the client. The screen field of the specified widget or of the nearest widget ancestor of the specified object and the specified depth argu- ment supply the root and drawable depths for which the GC is to be valid. If depth is zero the depth is taken from the depth field of the specified widget or of the nearest widget ancestor of the specified ob- ject. The value_mask argument specifies the fields of the GC that will be initialized with the respective members of the values structure. The dynamic_mask argument specifies fields that the caller intends to mod- ify during program execution. The caller must ensure that the corre- sponding GC field is sdet prior to each use of the GC. The unused_mask argument specifies fields of the GC that are of no interest to the caller. The caller may make no assumptions about the contents of any fields specified in unused_mask. The caller may assume that at all times all fields not specified in either dynamic_mask or unused_mask have their default value if not specified in value_mask or the value specified by values. If a field is specified in both value_mask and dy- namic_mask, the effect is as if it were specified only in dynamic_mask and then immediately set to the value in values. If a field is set in unused_mask and also in either value_mask or dynamic_mask, the specifi- cation in unused_mask is ignored. XtAllocateGC tries to minimize the number of unique GCs created by com- paring the arguments with those of previous calls and returning an ex- isting GC when there are no conflicts. XtAllocateGC may modify and re- turn an existing GC if it was allocated with a nonzero unused_mask. SEE ALSO XtGetGC(3Xt) X Toolkit Intrinsics -- C Language Interface Xlib -- C Language X Interface XtAllocGC(3Xt)

Navigation Options