FBB::Xpointer(3bobcat)
β¨ FBB::Xpointer β¨
okay so bestie, this is a page from the bobcat manual, section 3 β and babes, it's literally about setting the X-pointer. The header says it all: Sets the X-pointer. Let's get into it π
πΈ NAME πΈ
FBB::Xpointer β sets the location of the X-windows pointer π±οΈβ¨
π SYNOPSIS π
#include <bobcat/xpointer>
Linking option: -lbobcat -lX11
π DESCRIPTION π
This class lets programs that are running inside the X-graphical environment set and retrieve the location of the X-windows pointer. That's the whole vibe. Set it, get it, slay π
π NAMESPACE π
FBB
Every single constructor, member, operator and manipulator mentioned in this man-page is defined in the namespace FBB. no cap π«Ά
π¦ INHERITS FROM π¦
-
likeβ¦ nothing. it inherits from nobody. independent queen energy β¨
π CONSTRUCTORS π
Xpointer()β the default constructor. It connects to theDisplay. It throws anExceptionexception if the display cannot be opened. Also: when you've got multipleXpointerobjects hanging around, the connection to the display is opened only once. efficient fr fr π
bestie, heads up: this constructor throws anExceptionexception if it could not connect to theDisplay. π
Copy and move constructors (and assignment operators) are available. π so you can copy and move these babies around, no problem.
π MEMBER FUNCTIONS π
bool get(int *x, int *y) constβ returns in its arguments the current pointer coordinates, relative to the root-window. On successtrueis returned;falseis returned if the pointer could not be moved. πbool set(int x, int y) constβ sets the pointer to a location whose pixel coordinates are given with respect to the root-window. A negative x-coordinate is measured from the right screen-margin of the root window (going left), and a negative y-coordinate is measured from the bottom screen-margin of the root window (going up). On successtrueis returned;falseis returned if the pointer could not be moved. π±οΈβ¨
the negative-coordinate thing is actually so iconic β right margin and bottom margin are your anchors, iykyk
π EXAMPLE π
#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;
}
π FILES π
bobcat/xpointer β defines the class interface
π₯ SEE ALSO π₯
π BUGS π
Note that -lX11 must be specified as well. don't forget it or you're gonna have a bad time π
π§ BOBCAT PROJECT FILES π§
https://fbb-git.gitlab.io/bobcat/: gitlab project page;
Debian Bobcat project files:
libbobcat6: debian package containing the shared library, changelog and copyright note;libbobcat-dev: debian package containing the static library, headers, manual pages, and developer info;
πΈ BOBCAT πΈ
Bobcat is an acronym of `Brokkenβs Own Base Classes And Templatesβ. π cute right?
β COPYRIGHT β
This is free software, distributed under the terms of the GNU General Public License (GPL). π«Ά
π AUTHOR π
Frank B. Brokken (f.b.brokken@rug.nl).
okay that's the whole page bestie, you ate that π β¨
bobcat manual Β· libbobcat-dev_6.15.01 Β· dating all the way back from 2005-2026 π thank you for coming to my ted talk, mwah ππ
π¦ where this page comes from
- ubuntu stonking: libbobcat-dev 6.15.01-1 Β· GPL-3.0-or-later WITH OpenSSL exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms