Lines Matching defs:entry

29  * Sme.c - Source code for the generic menu entry
156 SmeLineObject entry = (SmeLineObject) new;
158 if (entry->rectangle.height == 0)
159 entry->rectangle.height = entry->sme_line.line_width;
165 * Description: Creates the GC for the line entry widget.
166 * Arguments: w - the Line entry widget.
177 SmeLineObject entry = (SmeLineObject) w;
181 values.foreground = entry->sme_line.foreground;
183 values.line_width = entry->sme_line.line_width;
185 if (entry->sme_line.stipple != XtUnspecifiedPixmap) {
186 values.stipple = entry->sme_line.stipple;
190 entry->sme_line.gc = XCreateGC(XtDisplayOfObject(w),
195 entry->sme_line.gc = XtGetGC(w, mask, &values);
200 * Arguments: w - the Line entry widget.
208 SmeLineObject entry = (SmeLineObject) w;
210 if (entry->sme_line.stipple != XtUnspecifiedPixmap)
211 XFreeGC(XtDisplayOfObject(w), entry->sme_line.gc);
213 XtReleaseGC(w, entry->sme_line.gc);
218 * Arguments: w - the menu entry.
229 SmeLineObject entry = (SmeLineObject) w;
230 int y = entry->rectangle.y +
231 (entry->rectangle.height - entry->sme_line.line_width) / 2;
233 if (entry->sme_line.stipple != XtUnspecifiedPixmap)
234 XSetTSOrigin(XtDisplayOfObject(w), entry->sme_line.gc, 0, y);
237 entry->sme_line.gc,
238 0, y, (unsigned int) entry->rectangle.width,
239 (unsigned int) entry->sme_line.line_width );
255 SmeLineObject entry = (SmeLineObject) new;
258 if ( (entry->sme_line.line_width != old_entry->sme_line.line_width) &&
259 (entry->sme_line.stipple != old_entry->sme_line.stipple) ) {
269 * Arguments: w - the menu entry object.
283 SmeObject entry = (SmeObject) w;
296 if ( (mode & CWWidth) && (width == entry->rectangle.width) )