It looks like you're new here. If you want to get involved, click one of these buttons!
the Cursor class is part of the Plugin framework and it is not employed outside of it. So unless you plan to implement extensions based on that framework, that class will be of little use.
If you have a build with "Qt binding" enabled (the Windows build has for example), you can use the Qt methods to manipulate the cursor:
# Note that RBA::MainWindow is also a RBA::QWidget which offers the cursor= method
RBA::Application::instance::main_window.cursor = RBA::QCursor::new(RBA::Qt_CursorShape::ClosedHandCursor)
as a general rule, you won't find a lot of documentation about Qt in KLayout. The documentation source is the official Qt documentation.
The QClipboard documentation gives this C++ sample code:
QClipboard *clipboard = QApplication::clipboard();
So we can use the following sample script to set the clipboard in Ruby:
clipboard = RBA::QApplication::clipboard