FLTK logo

Renaming for Clarity: was Re: [fltk.general] Fl_Image_Surface, alpha, caching fl_draw

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 ]

Renaming for Clarity: was Re: Fl_Image_Surface, alpha, caching fl_draw duncan Jun 04, 2021  
 
Use this virtual member function of class Fl_Gl_Window_Driver :
  virtual char *alpha_mask_for_string(const char *str, int n, int w, int h, Fl_Fontsize fs);
where
  str is the UTF8 text to draw, n is its length
 . . .

I looked at this and immediately thought, "is n the size in characters, or bytes?" and
then wondered whether it would make sense, over time, to rename "str" variables as
"utf8" and "n" variables as "nbytes" so it would be more obvious and self documenting.

Just a thought

--
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/2bb0fb06-4a6b-44b8-96e4-c7ad7ad74d63n%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-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.