-
Notifications
You must be signed in to change notification settings - Fork 783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Block.inner* values public #23
Comments
Block.inner*
values public
👍 I've also wondered why they're not public but you can calculate them yourself. Disclaimer : I'm not the repo owner. Sent from my iPhone
|
PRs are welcome! The reason I set them private in the first place because the |
Have implemented an |
Fix #23 by implementing Block.InnerBounds() and associated test.
I'm currently writing a rich text widget which has a cursor and allows input, essentially allowing text editing using this library.
Basic functionality is already there but I'm not able to cleanly embed
Block
into my widget because theinnerX
,innerY
,innerWidth
andinnerHeight
values are all private.If you're happy to make them public somehow, would you prefer just expose the properties, or expose them through methods like
InnerX()
etc.? Or perhaps anInnerBounds() (x, y, width, height int)
method to get them all at once?If you're happy with one of those I'll throw something together and make a PR.
The text was updated successfully, but these errors were encountered: