1Constraint(library call)                              Constraint(library call)
2
3
4

NAME

6       Constraint — The Constraint widget class
7

SYNOPSIS

9       #include <Xm/Xm.h>
10

DESCRIPTION

12       Constraint  widgets  maintain additional state data for each child. For
13       example, client-defined constraints on  the  child's  geometry  may  be
14       specified.
15
16       When  a  constrained composite widget defines constraint resources, all
17       of that widget's children inherit all of those resources as their  own.
18       These  constraint resources are set and read just the same as any other
19       resources defined for the  child.  This  resource  inheritance  extends
20       exactly  one  generation  down,  which  means only the first-generation
21       children of a constrained composite widget inherit the parent  widget's
22       constraint resources.
23
24       Because  constraint resources are defined by the parent widgets and not
25       the children, the child  widgets  never  directly  use  the  constraint
26       resource  data.  Instead,  the  parents use constraint resource data to
27       attach child-specific data to children.
28
29   Classes
30       Constraint inherits behavior and resources from Composite and Core.
31
32       The class pointer is constraintWidgetClass.
33
34       The class name is Constraint.
35
36   New Resources
37       Constraint defines no new resources.
38
39   Inherited Resources
40       Constraint inherits behavior and resources  from  Composite  and  Core.
41       The  following table defines a set of widget resources used by the pro‐
42       grammer to specify data. The programmer can also set the resource  val‐
43       ues  for  the  inherited  classes to set attributes for this widget. To
44       reference a resource by name or by class in a .Xdefaults  file,  remove
45       the  XmN or XmC prefix and use the remaining letters. To specify one of
46       the defined values for a resource in a .Xdefaults file, remove  the  Xm
47       prefix and use the remaining letters (in either lowercase or uppercase,
48       but include any underscores between words).  The codes  in  the  access
49       column  indicate if the given resource can be set at creation time (C),
50       set by using XtSetValues (S), retrieved by using XtGetValues (G), or is
51       not applicable (N/A).
52
53       ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
54       │                              │               Core Resource Se│t                │                      │        │
55Name                          Class                         Type           Default              Access 
56       ├──────────────────────────────┼───────────────────────────────┼────────────────┼──────────────────────┼────────┤
57       │XmNaccelerators               │ XmCAccelerators               │ XtAccelerators │ dynamic              │ CSG    │
58       ├──────────────────────────────┼───────────────────────────────┼────────────────┼──────────────────────┼────────┤
59       │XmNancestorSensitive          │ XmCSensitive                  │ Boolean        │ dynamic              │ G      │
60       ├──────────────────────────────┼───────────────────────────────┼────────────────┼──────────────────────┼────────┤
61       │XmNbackground                 │ XmCBackground                 │ Pixel          │ dynamic              │ CSG    │
62       ├──────────────────────────────┼───────────────────────────────┼────────────────┼──────────────────────┼────────┤
63       │XmNbackgroundPixmap           │ XmCPixmap                     │ Pixmap         │ XmUNSPECIFIED_PIXMAP │ CSG    │
64       ├──────────────────────────────┼───────────────────────────────┼────────────────┼──────────────────────┼────────┤
65       │XmNborderColor                │ XmCBorderColor                │ Pixel          │ XtDefaultForeground  │ CSG    │
66       ├──────────────────────────────┼───────────────────────────────┼────────────────┼──────────────────────┼────────┤
67       │XmNborderPixmap               │ XmCPixmap                     │ Pixmap         │ XmUNSPECIFIED_PIXMAP │ CSG    │
68       ├──────────────────────────────┼───────────────────────────────┼────────────────┼──────────────────────┼────────┤
69       │XmNborderWidth                │ XmCBorderWidth                │ Dimension      │ 1                    │ CSG    │
70       ├──────────────────────────────┼───────────────────────────────┼────────────────┼──────────────────────┼────────┤
71       │XmNcolormap                   │ XmCColormap                   │ Colormap       │ dynamic              │ CG     │
72       ├──────────────────────────────┼───────────────────────────────┼────────────────┼──────────────────────┼────────┤
73       │XmNdepth                      │ XmCDepth                      │ int            │ dynamic              │ CG     │
74       ├──────────────────────────────┼───────────────────────────────┼────────────────┼──────────────────────┼────────┤
75       │XmNdestroyCallback            │ XmCCallback                   │ XtCallbackList │ NULL                 │ C      │
76       ├──────────────────────────────┼───────────────────────────────┼────────────────┼──────────────────────┼────────┤
77       │XmNheight                     │ XmCHeight                     │ Dimension      │ dynamic              │ CSG    │
78       ├──────────────────────────────┼───────────────────────────────┼────────────────┼──────────────────────┼────────┤
79       │XmNinitialResourcesPersistent │ XmCInitialResourcesPersistent │ Boolean        │ True                 │ C      │
80       ├──────────────────────────────┼───────────────────────────────┼────────────────┼──────────────────────┼────────┤
81       │XmNmappedWhenManaged          │ XmCMappedWhenManaged          │ Boolean        │ True                 │ CSG    │
82       ├──────────────────────────────┼───────────────────────────────┼────────────────┼──────────────────────┼────────┤
83       │XmNscreen                     │ XmCScreen                     │ Screen *       │ dynamic              │ CG     │
84       ├──────────────────────────────┼───────────────────────────────┼────────────────┼──────────────────────┼────────┤
85       │XmNsensitive                  │ XmCSensitive                  │ Boolean        │ True                 │ CSG    │
86       ├──────────────────────────────┼───────────────────────────────┼────────────────┼──────────────────────┼────────┤
87       │XmNtranslations               │ XmCTranslations               │ XtTranslations │ dynamic              │ CSG    │
88       ├──────────────────────────────┼───────────────────────────────┼────────────────┼──────────────────────┼────────┤
89       │XmNwidth                      │ XmCWidth                      │ Dimension      │ dynamic              │ CSG    │
90       ├──────────────────────────────┼───────────────────────────────┼────────────────┼──────────────────────┼────────┤
91       │XmNx                          │ XmCPosition                   │ Position       │ 0                    │ CSG    │
92       ├──────────────────────────────┼───────────────────────────────┼────────────────┼──────────────────────┼────────┤
93       │XmNy                          │ XmCPosition                   │ Position       │ 0                    │ CSG    │
94       ├──────────────────────────────┼───────────────────────────────┼────────────────┼──────────────────────┼────────┤
95       └──────────────────────────────┴───────────────────────────────┴────────────────┴──────────────────────┴────────┘
96   Translations
97       There are no translations for Constraint.
98
100       Composite(3) and Core(3).
101
102
103
104                                                      Constraint(library call)
Impressum