101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
-
+
|
* coordinate indices back to their
* data coordinates */
} LineTrace;
typedef struct {
const char *name; /* Name of pen style. If the pen was
* statically allocated the name will
* be NULL. */
RbcUid classUid; /* Type of pen */
Tk_Uid classUid; /* Type of pen */
char *typeId;/* String token identifying the type
* of pen */
unsigned int flags; /* Indicates if the pen element is
* active or normal */
int refCount; /* Reference count for elements using
* this pen. */
Tcl_HashEntry *hashPtr;
|
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
|
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
|
-
+
|
* for this pen. */
int nStrips; /* # of line segments for this pen. */
} LinePenStyle;
typedef struct {
char *name; /* Identifier used to refer the
* element. Used in the "insert",
* "delete", or "show", operations. */
RbcUid classUid; /* Type of element */
Tk_Uid classUid; /* Type of element */
RbcGraph *graphPtr; /* Graph widget of element*/
unsigned int flags; /* Indicates if the entire element is
* active, or if coordinates need to
* be calculated */
char **tags;
int hidden; /* If non-zero, don't display the
* element. */
|
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
|
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
|
-
+
|
*
*----------------------------------------------------------------------
*/
RbcElement *
RbcLineElement(
RbcGraph *graphPtr,
const char *name,
RbcUid classUid)
Tk_Uid classUid)
{
register Line *linePtr;
linePtr = RbcCalloc(1, sizeof(Line));
assert(linePtr);
linePtr->procsPtr = &lineProcs;
if (classUid == rbcLineElementUid) {
linePtr->configSpecs = lineElemConfigSpecs;
|