Lines Matching refs:entry

31  * Sme.c - Source code for the generic menu entry
141 SmeLineObject entry = (SmeLineObject) new;
143 if (entry->rectangle.height == 0)
144 entry->rectangle.height = entry->sme_line.line_width;
150 * Description: Creates the GC for the line entry widget.
151 * Arguments: w - the Line entry widget.
162 SmeLineObject entry = (SmeLineObject) w;
166 values.foreground = entry->sme_line.foreground;
168 values.line_width = entry->sme_line.line_width;
170 if (entry->sme_line.stipple != XtUnspecifiedPixmap) {
171 values.stipple = entry->sme_line.stipple;
175 entry->sme_line.gc = XCreateGC(XtDisplayOfObject(w),
180 entry->sme_line.gc = XtGetGC(w, mask, &values);
185 * Arguments: w - the Line entry widget.
193 SmeLineObject entry = (SmeLineObject) w;
195 if (entry->sme_line.stipple != XtUnspecifiedPixmap)
196 XFreeGC(XtDisplayOfObject(w), entry->sme_line.gc);
198 XtReleaseGC(w, entry->sme_line.gc);
203 * Arguments: w - the menu entry.
215 SmeLineObject entry = (SmeLineObject) w;
216 int y = entry->rectangle.y +
217 (int)(entry->rectangle.height - entry->sme_line.line_width) / 2;
219 if (entry->sme_line.stipple != XtUnspecifiedPixmap)
220 XSetTSOrigin(XtDisplayOfObject(w), entry->sme_line.gc, 0, y);
223 entry->sme_line.gc,
224 0, y, (unsigned int) entry->rectangle.width,
225 (unsigned int) entry->sme_line.line_width );
243 SmeLineObject entry = (SmeLineObject) new;
246 if ( (entry->sme_line.line_width != old_entry->sme_line.line_width) &&
247 (entry->sme_line.stipple != old_entry->sme_line.stipple) ) {
257 * Arguments: w - the menu entry object.
271 SmeObject entry = (SmeObject) w;
284 if ( (mode & CWWidth) && (width == entry->rectangle.width) )