FLTK logo

Re: [fltk.general] Transparency on edge of Window with FL_ROUND_BOX

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

Re: Transparency on edge of Window with FL_ROUND_BOX Manolo Apr 30, 2021  
 
As already mentionned, the solution for this problem is to use the
Fl_Window::shape() member function. See :
    https://www.fltk.org/doc-1.3/classFl__Window.html#aeb3ffb4925bd90950de419f962bcf7f6
This feature is available in FLTK 1.4 and also starting from FLTK 1.3.3 provided the library is built with
    FL_ABI_VERSION = 10303  (or more)

Giving a window the shape of an Fl_ROUND_BOX is done in FLTK 1.4 to transiently
display the new value of the scale factor (type ctrl-+ (or cmd-+ on macOS)).

The code is found in function Fl_Screen_Driver::transient_scale_display() of
file Fl_Screen_Driver.cxx :
- lines 363-373 create an Fl_RGB_Image object containing the adequate shape information
- line 388 applies this shape to the window (and also set it without titlebar)
That should be enough.


--
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 fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/a02231d5-a441-42af-8528-681ed4b31157n%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

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