Add clipboard methods

This commit is contained in:
SpaiR committed 2019-12-31 20:24:28 +03:00
1 parent cd0d0f7bc5
commit 295471930f
2 files changed
+12 -3

No files matched your search

@@ -317,9 +317,8 @@ public final class ImGuiGlfwExample {
ImGui.SetMouseCursor(ImGuiMouseCursor.TextInput);
}
ImGui.SameLine();
ImGui.Text("(?)");
if (ImGui.IsItemHovered()) {
ImGui.SetTooltip("You can copy and paste this link to browser");
if (ImGui.Button("Copy")) {
ImGui.SetClipboardText(imguiDemoLink.get());
}
}