FLTK logo

Re: [fltk.general] Re: Can custom box type functions handle their own high-DPI screen scaling? - [General Use]

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: Re: Can custom box type functions handle their own high-DPI screen scaling? - [General Use] Albrecht Schlosser Feb 25, 2021  
 
[I proposed:]

float fl_reset_scale(); / void fl_restore_scale(float s);

[Manolo wrote:]

What about
fl_undo_scale() / fl_redo_scale()
or
fl_scale_undo() / fl_scale_redo()


[Ian wrote:]

I quite fancy:

	fl_override_scale()  paired with  fl_restore_scale()

Just to add extra confusion to the discussion.

[Greg wrote:]

     Throwing my hat in the ring:

fl_unscale() / fl_rescale()

     ..or if there's a stack:

fl_push_scale() / fl_pop_scale()

The latter would be my favorite *if* we had a stack, in analogy to fl_push_clip() and fl_pop_clip() which appears related - and indeed it is somehow because you can't change scaling w/o taking care of clipping.

So this would be (with types and parameters):

float fl_push_scale(float s); / void fl_pop_scale();

The former would return the previous scale value (or void would also be OK). The latter *could* return the /new/ scale value but void would be fine.

Unless we go the push/pop route with stack I'd favor Ian's fl_override_scale() or my proposal fl_reset_scale().

Or, what about this?

  float fl_set_scale(float s);    // returns old value
  void fl_restore_scale(float s); // as we have now

--
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/7615d3d7-a21d-f71d-ec68-f6b1d376bb04%40online.de.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

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