1XmDrawingArea(3) LessTif Manuals XmDrawingArea(3)
2
3
4
6 XmDrawingArea
7
9 #include <Xm/DrawingA.h>
10
11 XmDrawingArea
12
13 XmCreateDrawingArea
14
16 XmDrawingArea is a general purpose widget that can be used both as a
17 canvas type widget or general manager widget. The widget has expose,
18 resize and input callbacks and allows other widgets as its children.
19
21 Name Class Type Default Access
22 ─────────────────────────────────────────────────────────────────────────────
23 XmNmarginWidth XmCMarginWidth HorizontalDimension NULL CSG
24 XmNmarginHeight XmCMarginHeight VerticalDimension NULL CSG
25 XmNresizeCallback XmCCallback Callback NULL CSG
26 XmNexposeCallback XmCCallback Callback NULL CSG
27 XmNinputCallback XmCCallback Callback NULL CSG
28 XmNresizePolicy XmCResizePolicy ResizePolicy NULL CSG
29
30 XmNmarginWidth
31
32 XmNmarginHeight
33
34 XmNresizeCallback
35
36 XmNexposeCallback
37
38 XmNinputCallback
39
40 XmNresizePolicy
41
43 Object(3) Rect(3) UnNamedObj(3) Core(3) Composite(3) Constraint(3)
44 XmManager(3) XmDrawingArea(3)
45
47 The Drawing Area widget defines the following callback lists : XmNex‐
48 poseCallback, XmNinputCallback, XmNresizeCallback, XmNdestroyCallback.
49
50 All callbacks pass a pointer to the following structure :
51 typedef struct {
52 int reason;
53 XEvent *event;
54 Window window;
55 } XmDrawingAreaCallbackStruct;
56
58 DrawingAreaInput()
59
60
62 <BtnMotion>: ManagerGadgetButtonMotion()
63 <Btn1Down>: DrawingAreaInput() ManagerGadgetArm()
64 <Btn1Down>,<Btn1Up>: DrawingAreaInput() ManagerGadgetActivate()
65 <Btn1Up>: DrawingAreaInput() ManagerGadgetActivate()
66
67 <Btn1Down>(2+): DrawingAreaInput() ManagerGadgetMultiArm()
68 <Btn1Up>(2+): DrawingAreaInput() ManagerGadgetMultiActivate()
69 <Btn2Down>: DrawingAreaInput() ManagerGadgetDrag()
70 <BtnDown>: DrawingAreaInput()
71 <BtnUp>: DrawingAreaInput()
72 <Key>osfActivate: DrawingAreaInput() ManagerParentActivate()
73 <Key>osfCancel: DrawingAreaInput() ManagerParentCancel()
74 <Key>osfHelp: DrawingAreaInput() ManagerGadgetHelp()
75 <Key>osfSelect: DrawingAreaInput() ManagerGadgetSelect()
76 <Key>Return: DrawingAreaInput() ManagerParentActivate()
77 <Key>Return: DrawingAreaInput() ManagerGadgetSelect()
78 <Key>space: DrawingAreaInput() ManagerGadgetSelect()
79 <KeyDown>: DrawingAreaInput() ManagerGadgetKeyInput()
80 <KeyUp>: DrawingAreaInput()
81
84LessTif Project April 1998 XmDrawingArea(3)