Re: [fltk.general] Support for More (or Custom) Cursors?

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
Previous Message ]New Message | Reply ]Next Message ]

Re: Support for More (or Custom) Cursors? Albrecht Schlosser Apr 27, 2021 top right image
On 4/27/21 12:12 PM Ian MacArthur wrote:
On Tuesday, 27 April 2021 at 07:28:03 UTC+1 Webb wrote:

    I was returning to this thread because I was wondering if anyone had
    any thoughts on how scaling the cursor image across different
    monitors might work, so very happy to see some examples. Any
    thoughts on why cursor must take an RgbImage and not an SVG?

Have you tried the Fl_SVG_Image type? As Greg points out, it may well Just Work if the SVG is loaded and scaled appropriately.

Yep, that's what I assume too, with two constraints:

(1) as with other image types, use copy(), not scale() to scale the image

(2) call "normalize" before using the image as the cursor

The latter is likely necessary only for SVG images but can be called on all image types.

Both restrictions may be lifted in further FLTK 1.4 development.

Note that scale() and normalize() and the entire SVG support (Fl_SVG_Image) are not available in 1.3.

You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
Direct Link to Message ]
bottom left image   bottom right image
Previous Message ]New Message | Reply ]Next Message ]

Comments are owned by the poster. All other content is copyright 1998-2022 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to ''.