'\" t .\" $Header: /cvsroot/lesstif/lesstif/doc/lessdox/widgets/XmDrawingArea.3,v 1.6 2009/04/29 12:23:30 paulgevers Exp $ .\" .\" Copyright (C) 1997-1998 Free Software Foundation, Inc. .\" .\" This file is part of the GNU LessTif Library. .\" This library is free software; you can redistribute it and/or .\" modify it under the terms of the GNU Library General Public .\" License as published by the Free Software Foundation; either .\" version 2 of the License, or (at your option) any later version. .\" .\" This library is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU .\" Library General Public License for more details. .\" .\" You should have received a copy of the GNU Library General Public .\" License along with this library; if not, write to the Free .\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. .\" .TH XmDrawingArea 3 "April 1998" "LessTif Project" "LessTif Manuals" .SH NAME XmDrawingArea \- Motif-capable drawing-area widget .SH SYNOPSIS .B #include .PP .B XmDrawingArea .PP .B XmCreateDrawingArea .SH DESCRIPTION XmDrawingArea is a general purpose widget that can be used both as a canvas type widget or general manager widget. The widget has expose, resize and input callbacks and allows other widgets as its children. .SH X RESOURCES .TS tab(;); l l l l l. Name;Class;Type;Default;Access _ XmNmarginWidth;XmCMarginWidth;HorizontalDimension;NULL;CSG XmNmarginHeight;XmCMarginHeight;VerticalDimension;NULL;CSG XmNresizeCallback;XmCCallback;Callback;NULL;CSG XmNexposeCallback;XmCCallback;Callback;NULL;CSG XmNinputCallback;XmCCallback;Callback;NULL;CSG XmNresizePolicy;XmCResizePolicy;ResizePolicy;NULL;CSG .TE .PP .BR XmNmarginWidth .PP .BR XmNmarginHeight .PP .BR XmNresizeCallback .PP .BR XmNexposeCallback .PP .BR XmNinputCallback .PP .BR XmNresizePolicy .PP .SH CLASS HIERARCHY .BR Object (3) .BR Rect (3) .BR UnNamedObj (3) .BR Core (3) .BR Composite (3) .BR Constraint (3) .BR XmManager (3) .BR XmDrawingArea (3) .SH CALLBACKS The Drawing Area widget defines the following callback lists : .BR XmNexposeCallback, .BR XmNinputCallback, .BR XmNresizeCallback, .BR XmNdestroyCallback. .PP All callbacks pass a pointer to the following structure : .SM typedef struct { int reason; XEvent *event; Window window; } XmDrawingAreaCallbackStruct; .SM .SH ACTIONS DrawingAreaInput() .SH TRANSLATIONS .TS tab(;); l l. :;ManagerGadgetButtonMotion() :;DrawingAreaInput() ManagerGadgetArm() ,:;DrawingAreaInput() ManagerGadgetActivate() :;DrawingAreaInput() ManagerGadgetActivate() (2+):;DrawingAreaInput() ManagerGadgetMultiArm() (2+):;DrawingAreaInput() ManagerGadgetMultiActivate() :;DrawingAreaInput() ManagerGadgetDrag() :;DrawingAreaInput() :;DrawingAreaInput() osfActivate:;DrawingAreaInput() ManagerParentActivate() osfCancel:;DrawingAreaInput() ManagerParentCancel() osfHelp:;DrawingAreaInput() ManagerGadgetHelp() osfSelect:;DrawingAreaInput() ManagerGadgetSelect() Return:;DrawingAreaInput() ManagerParentActivate() Return:;DrawingAreaInput() ManagerGadgetSelect() space:;DrawingAreaInput() ManagerGadgetSelect() :;DrawingAreaInput() ManagerGadgetKeyInput() :;DrawingAreaInput() .TE .SH CONVENIENCE FUNCTIONS .SH SEE ALSO