[haiku-development] AddGlue() as a metaphor behaves opposite what is expected

  • From: Brian Hill <brianh@xxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 25 Feb 2017 09:16:22 -0500

This may be a slight rant but I am always struggling with remembering the 
proper use of the layout builder AddGlue() function.  It exhibits a totally 
opposite behavior from real life glue, which is used to stick two things 
together so they do not separate.  AddGlue() does the opposite, adds an 
expandable space layout item so the two things you stick the AddGlue() to can 
move apart.  It is probably too late to change, but can we deprecate AddGlue() 
and replace it with something else like AddEmptySpace(), AddWhiteSpace() or 
even AddNegativeSpace()?

-Brian

Other related posts: