Why there are setter methods for setting lets say Size, Position in canvas slot, or text in textBlock (and many other properties), but there are no getters to read those values? Is there an important reason for that or is that just an oversight and those will be added soon?
This is a very good question that left me puzzled, too. I do wish I have more information about this subject since this caused me many headaches.
I’ve managed to find a something here:
There’s no getter for it because
that’s not how Slate works. The long
and short of it is that if Slate
permitted access to that data it would
only result in problems like layout
loops, and multi-frame lag between
layouts between dependent widgets. The
only widget that can know where a
widget is located is itself and it’s
parent and only during Tick/Paint.