SmeLine.c revision 749
0N/A/* $XConsortium: SmeLine.c,v 1.15 94/04/17 20:12:51 eswu Exp $ */ 0N/ACopyright (c) 1989 X Consortium 0N/APermission is hereby granted, free of charge, to any person obtaining a copy 0N/Aof this software and associated documentation files (the "Software"), to deal 0N/Ain the Software without restriction, including without limitation the rights 0N/Ato use, copy, modify, merge, publish, distribute, sublicense, and/or sell 0N/Acopies of the Software, and to permit persons to whom the Software is 0N/Afurnished to do so, subject to the following conditions: 0N/AThe above copyright notice and this permission notice shall be included in 0N/Aall copies or substantial portions of the Software. 0N/ATHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 0N/AIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 0N/AFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 0N/AX CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 0N/AAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 0N/ACONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 0N/AExcept as contained in this notice, the name of the X Consortium shall not be 0N/Aused in advertising or otherwise to promote the sale, use or other dealings 0N/Ain this Software without prior written authorization from the X Consortium. 0N/A * Author: Chris D. Peterson, MIT X Consortium 0N/A * Sme.c - Source code for the generic menu entry 0N/A * Date: September 26, 1989 0N/A * By: Chris D. Peterson 0N/A * kit@expo.lcs.mit.edu 0N/A * Function definitions. 0N/A /* class_name */ "SmeLine",
0N/A /* Menu Entry Fields */ 0N/A /* Line Menu Entry Fields */ 0N/A/************************************************************ 0N/A * Semi-Public Functions. 0N/A ************************************************************/ 0N/A/* Function Name: Initialize 0N/A * Description: Initializes the simple menu widget 0N/A * Arguments: request - the widget requested by the argument list. 0N/A * new - the new widget with both resource and non 0N/A/* Function Name: CreateGC 0N/A * Description: Creates the GC for the line entry widget. 0N/A * Arguments: w - the Line entry widget. 0N/A * We can only share the GC if there is no stipple, because 0N/A * we need to change the stipple origin when drawing. 0N/A/* Function Name: DestroyGC 0N/A * Description: Destroys the GC when we are done with it. 0N/A * Arguments: w - the Line entry widget. 0N/A/* Function Name: Redisplay 0N/A * Description: Paints the Line 0N/A * Arguments: w - the menu entry. 0N/A * event, region - NOT USED. 0N/A/* Function Name: SetValues 0N/A * Description: Relayout the menu when one of the resources is changed. 0N/A * Arguments: current - current state of the widget. 0N/A * request - what was requested. 0N/A * new - what the widget will become. 0N/A/* Function Name: QueryGeometry. 0N/A * Description: Returns the preferred geometry for this widget. 0N/A * Arguments: w - the menu entry object. 0N/A * itended, return - the intended and return geometry info. 0N/A * Returns: A Geometry Result. 0N/A * See the Intrinsics manual for details on what this function is for. 0N/A * I just return the height and a width of 1. 0N/A width =
1;
/* we can be really small. */