Skip to content
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

Attributes #15

Open
12 of 22 tasks
thelink2012 opened this issue May 28, 2015 · 2 comments
Open
12 of 22 tasks

Attributes #15

thelink2012 opened this issue May 28, 2015 · 2 comments

Comments

@thelink2012
Copy link
Collaborator

Tracking progress on attributes.
If you wish to implement any of those items leave a comment :)

This issue is not about method to access individual attributes on each control, instead about the general attribute system. At this moment making attributes as methods is not a priority (but will mostly like come to life later on) and thus why this is not a track of attribute as methods.

Main:
Some of the items here must be skeptically taken a look to realize if they are actually needed.

  • IupSetAttribute
    • IupSetAttribute
    • IupSetStrAttribute
    • IupSetAttributeId
    • IupSetStrAttributeId
    • IupSetAttributeId2
    • IupSetStrAttributeId2
  • IupResetAttribute
  • IupSetAttributeHandle
  • IupGetAttribute
    • IupGetAttribute
    • IupGetStrAttribute
    • IupGetAttributeId
    • IupGetStrAttributeId
    • IupGetAttributeId2
    • IupGetStrAttributeId2
  • IupGetAllAttributes
  • IupGetAttributeHandle
  • IupSetGlobal
  • IupSetStrGlobal
  • IupGetGlobal
  • IupGetStrGlobal

The IupSetAttributes IupGetAttributes, and IupSetAtt aren't going to be implemented either because they don't fit rust or to avoid over-bloat of functions that does essentially the same thing with no advantage over the simpler version.

Sub functions will not to be implemented (at least not until we start doing attribute methods), they are a major bloat that does not even provide a performance gain (please leave a comment if you disagree with this!)

@thelink2012
Copy link
Collaborator Author

Sub functions will not to be implemented (at least not until we start doing attribute methods), they are a major bloat that does not even provide a performance gain (please leave a comment if you disagree with this!)

@dcampbell24
Copy link
Owner

We don't ever need to use them. As the IUP documentation notes:

All the utility functions use the IupSetStrAttribute* functions internally.

So we can just use those and put our own safe wrappers around them when we do attribute methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants