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

  • From: Ralf Schülke <ralf.schuelke@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 28 Feb 2017 11:09:36 +0000

AddLooser() +1


Am 28.02.2017 11:52 schrieb "Dewey" <james.dewey.taylor@xxxxxxxxx>:

Sorry about top post, on my phone...

Can I vote? +1 to AddSpring()... It sort of keeps in the structural vein
of AddStrut()


Brian Hill <brianh@xxxxxxxxxxxx> wrote:


On Feb 26, 2017, at 2:31 AM, Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>
wrote:

A nice thing about the BLayoutBuilder classes (where this is used) is
that they are template classes and almost completely inlined in the
places where they are used. So, we can change them without breaking the
ABI.
I don’t completely understand that but I’ll trust you do :-)

However, AddGlue has the advantage that it is short and easy to type.
Maybe a simple AddSpace or AddPadding would do?

I think some other UI toolkits call this a "filler", when it consist
mostly of empty space. Go figure :)

OK, so far the candidates are:

AddSpace() -Already downvoted by Stephan
AddPadding()
AddFiller()
AddSpring()
AddSpacer()
AddRubber()
AddElastic()
AddEmptySpace()
AddWhiteSpace()
AddNegativeSpace()

Any other ideas?

-Brian

Other related posts: