Skip to content

AClipboard#

Access to the system clipboard (text only).

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

Detailed Description#

AClipboard::copyToClipboard("Hello");
if (!AClipboard::isEmpty()) {
    AString s = AClipboard::pasteFromClipboard();
}

Text views such as ATextField and ATextArea handle Ctrl+C, Ctrl+X and Ctrl+V on their own; use AClipboard when you need to put or take text programmatically, i.e., from a "Copy link" button.