1 /**
2  * Widget module.
3  *
4  * License:
5  *     MIT. See LICENSE for full details.
6  */
7 module tkd.widget.sizegrip;
8 
9 /**
10  * Imports.
11  */
12 import std..string;
13 import tkd.element.uielement;
14 import tkd.widget.widget;
15 
16 /**
17  * A sizegrip widget (also known as a grow box) allows the user to resize the 
18  * containing toplevel window by pressing and dragging the grip.
19  *
20  * Example:
21  * ---
22  * auto sizeGrip = new SizeGrip()
23  * 	.pack(0, 0, GeometrySide.bottom, GeometryFill.none, AnchorPosition.southEast);
24  * ---
25  *
26  * Additional_Events:
27  *     Additional events that can also be bound to using the $(LINK2 ../element/uielement.html#UiElement.bind, bind) method.
28  *     $(P
29  *         <<PrevWindow>>,
30  *         <Alt-Key>,
31  *         <B1-Motion>,
32  *         <Button-1>,
33  *         <ButtonRelease-1>,
34  *         <Key-F10>,
35  *         <Key-Tab>,
36  *     )
37  *
38  * See_Also:
39  *     $(LINK2 ./widget.html, tkd.widget.widget)
40  */
41 class SizeGrip : Widget
42 {
43 	/**
44 	 * Construct the widget.
45 	 *
46 	 * Params:
47 	 *     parent = The parent of this widget.
48 	 *
49 	 * See_Also:
50 	 *     $(LINK2 ../element/uielement.html, tkd.element.UiElement) $(BR)
51 	 */
52 	public this(UiElement parent = null)
53 	{
54 		super(parent);
55 		this._elementId     = "sizegrip";
56 
57 		this._tk.eval("ttk::sizegrip %s", this.id);
58 	}
59 }