Skip to content

ADragArea#

Wrapping container to drag views inside of it.

Header:#include <AUI/View/ADragArea.h>
CMake:aui_link(my_target PUBLIC aui::views)

Detailed Description#

Contained views must be either wrapped by convertToDraggable or have an ADragArea::ADraggableHandle inside.

Examples#

examples/ui/views/src/ExampleWindow.cpp

Views Example — All-in-one views building example.

                },
                GroupBox {
                  Label { "Drag area" },

                  _new<ADragArea>() AUI_LET {
                          it AUI_OVERRIDE_STYLE {
                              MinSize { 100_dp },
                              Border { 1_px, 0x0_rgb },
                          };
                          it->addView(ADragArea::convertToDraggable(_new<AButton>("Drag me!"), false));

Public Types#


ADraggableHandle#

class ADragArea::ADraggableHandle

Empty structure.