3 @SuppressWarnings public class QDockWidget : QWidget{
4 public static const int DockWidgetClosable = 0x01;
5 public static const int DockWidgetMovable = 0x02;
6 public static const int DockWidgetFloatable = 0x04;
7 public static const int DockWidgetVerticalTitleBar = 0x08;
8 public static const int DockWidgetFeatureMask = 0x0f;
9 public static const int AllDockWidgetFeatures = DockWidgetClosable|DockWidgetMovable|DockWidgetFloatable;
10 public static const int NoDockWidgetFeatures = 0x00;
11 public static const int Reserved = 0xff;
13 public static const int
14 LeftDockWidgetArea = 0x1,
15 RightDockWidgetArea = 0x2,
16 TopDockWidgetArea = 0x4,
17 BottomDockWidgetArea = 0x8,
19 DockWidgetArea_Mask = 0xf,
20 AllDockWidgetAreas = 0xf,
23 public bool create(@NotNilptr QWidget parent)
override {
24 nativehandle = QtXnl.createQObject(QType.qtDockWidget,
this, parent.nativehandle);
25 if (nativehandle == 0) {
38 return QtXnl.widget_get_bool_value(nativehandle, Constant.FLATING);
42 QtXnl.widget_set_bool_value(nativehandle, Constant.FLATING, b);
46 return (QWidget)QtXnl.widget_get_object(nativehandle, Constant.TITLEBAR);
51 QtXnl.widget_set_vint_value(nativehandle, Constant.DOCKWIDGETFEATURE, features);
56 QtXnl.widget_set_vint_value(nativehandle, Constant.DOCKSETALLOWEDAREAS, area);
60 QtXnl.widget_set_native_value(nativehandle, Constant.SETWIDGET, w.nativehandle);
64 return (QWidget)QtXnl.widget_get_object(nativehandle, Constant.GETWIDGET);