Re: changing cursor

On Fri, 11 Jan 2019 at 21:28, Marty Moore <memoore gunnison com> wrote:
    // the following code workds
    guint *w, *h;
    Glib::RefPtr<Gdk::Display> display =
    Glib::RefPtr<Gdk::Window> win =

        Glib::RefPtr<Gdk::Cursor> cursor =
        Gdk::Cursor::create(display, Gdk::CROSSHAIR);

// the folling code  doesn't work
        display->gobj(),  w, h);
No idea on how to change the cursor size yet. I've set the cursor size of my gnome cusor to 64 or so, but it doesn't affect the gdk cursor that I've created above.

Can you define "doesn't work"? Are `w` and `h` not set to a valid cursor size?

but then maybe that's the real point: if you're trying to *set* the size, why call *get*_maximal_cursor_size()?

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]