#include <cursor.h>
|
| Cursor () |
|
| Cursor (GdkCursor *gobject, bool make_a_copy=true) |
|
| Cursor (const Cursor &other) |
|
Cursor & | operator= (const Cursor &other) |
|
| ~Cursor () |
|
void | swap (Cursor &other) |
|
GdkCursor * | gobj () |
| Provides access to the underlying C instance. More...
|
|
const GdkCursor * | gobj () const |
| Provides access to the underlying C instance. More...
|
|
GdkCursor * | gobj_copy () const |
| Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs. More...
|
|
| Cursor (CursorType cursor_type) |
|
| Cursor (const Glib::RefPtr< Pixmap > &source, const Glib::RefPtr< Pixmap > &mask, const Color &fg, const Color &bg, int x, int y) |
|
| Cursor (const Glib::RefPtr< Display > &display, CursorType cursor_type) |
|
| Cursor (const Glib::RefPtr< Display > &display, const Glib::RefPtr< Pixbuf > &pixbuf, int x, int y) |
|
| Cursor (const Glib::RefPtr< Display > &display, const Glib::ustring &name) |
|
Glib::RefPtr< Display > | get_display () |
|
Glib::RefPtr< const Display > | get_display () const |
|
Glib::RefPtr< Gdk::Pixbuf > | get_image () |
|
Glib::RefPtr< const Gdk::Pixbuf > | get_image () const |
|
CursorType | get_cursor_type () const |
|
This represents a cursor.
Definition at line 158 of file cursor.h.
◆ Cursor() [1/8]
◆ Cursor() [2/8]
Gdk::Cursor::Cursor |
( |
GdkCursor * |
gobject, |
|
|
bool |
make_a_copy = true |
|
) |
| |
|
explicit |
◆ Cursor() [3/8]
Gdk::Cursor::Cursor |
( |
const Cursor & |
other | ) |
|
◆ ~Cursor()
◆ Cursor() [4/8]
◆ Cursor() [5/8]
Gdk::Cursor::Cursor |
( |
const Glib::RefPtr< Pixmap > & |
source, |
|
|
const Glib::RefPtr< Pixmap > & |
mask, |
|
|
const Color & |
fg, |
|
|
const Color & |
bg, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
◆ Cursor() [6/8]
Gdk::Cursor::Cursor |
( |
const Glib::RefPtr< Display > & |
display, |
|
|
CursorType |
cursor_type |
|
) |
| |
|
explicit |
◆ Cursor() [7/8]
Gdk::Cursor::Cursor |
( |
const Glib::RefPtr< Display > & |
display, |
|
|
const Glib::RefPtr< Pixbuf > & |
pixbuf, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
◆ Cursor() [8/8]
Gdk::Cursor::Cursor |
( |
const Glib::RefPtr< Display > & |
display, |
|
|
const Glib::ustring & |
name |
|
) |
| |
|
explicit |
◆ get_cursor_type()
◆ get_display() [1/2]
Glib::RefPtr<Display> Gdk::Cursor::get_display |
( |
| ) |
|
◆ get_display() [2/2]
Glib::RefPtr<const Display> Gdk::Cursor::get_display |
( |
| ) |
const |
◆ get_image() [1/2]
Returns a Gdk::Pixbuf with the image used to display the cursor.
Note that depending on the capabilities of the windowing system and on the cursor, GDK may not be able to obtain the image data. In this case, 0
is returned.
- Returns
- A Gdk::Pixbuf representing cursor, or
0
.
◆ get_image() [2/2]
Glib::RefPtr<const Gdk::Pixbuf> Gdk::Cursor::get_image |
( |
| ) |
const |
Returns a Gdk::Pixbuf with the image used to display the cursor.
Note that depending on the capabilities of the windowing system and on the cursor, GDK may not be able to obtain the image data. In this case, 0
is returned.
- Returns
- A Gdk::Pixbuf representing cursor, or
0
.
◆ get_type()
static GType Gdk::Cursor::get_type |
( |
| ) |
|
|
static |
Get the GType for this class, for use with the underlying GObject type system.
◆ gobj() [1/2]
Provides access to the underlying C instance.
Definition at line 182 of file cursor.h.
◆ gobj() [2/2]
Provides access to the underlying C instance.
Definition at line 185 of file cursor.h.
◆ gobj_copy()
Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.
◆ operator=()
◆ swap()
void Gdk::Cursor::swap |
( |
Cursor & |
other | ) |
|
◆ swap()
- Parameters
-
lhs | The left-hand side |
rhs | The right-hand side |
Definition at line 259 of file cursor.h.
◆ wrap()
A Glib::wrap() method for this object.
- Parameters
-
object | The C instance. |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |
- Returns
- A C++ instance that wraps this C instance.
◆ gobject_
The documentation for this class was generated from the following file: