FBB::Xpointer(3bobcat) | Sets the X-pointer | FBB::Xpointer(3bobcat) |
FBB::Xpointer - Sets the location of the X-windows pointer
#include <bobcat/xpointer>
Linking option: -lbobcat -lX11
This class allows programs running within the X-graphical environment to set and retrieve the X-windows pointer location.
FBB
All constructors, members, operators and manipulators, mentioned in this
man-page, are defined in the namespace FBB.
-
Copy and move constructors (and assignment operators) are available.
#include <iostream> #include <string> #include <bobcat/xpointer> using namespace FBB; int main() try { Xpointer xpointer; xpointer.verify(); if (!xpointer.set(100, 200)) throw string("Set pointer failed"); int x; int y; if (!xpointer.get(&x, &y)) throw string("Get pointer failed"); cout << "Pointer now at " << x << ", " << y << ’\n’; } catch (string msg) { cout << msg << ’\n’; return 1; }
bobcat/xpointer - defines the class interface
bobcat(7)
Note that -lX11 must be specified as well.
Bobcat is an acronym of `Brokken’s Own Base Classes And Templates’.
This is free software, distributed under the terms of the GNU General Public License (GPL).
Frank B. Brokken (f.b.brokken@rug.nl).
2005-2023 | libbobcat-dev_6.04.00 |