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

Xwt.Size: Point conversion operator would be nice #16

Closed
lytico opened this issue Feb 27, 2012 · 4 comments
Closed

Xwt.Size: Point conversion operator would be nice #16

lytico opened this issue Feb 27, 2012 · 4 comments

Comments

@lytico
Copy link
Contributor

lytico commented Feb 27, 2012

hello,
would you mind to have a Size-Point-Conversion?
Point.-Size is already here, so ...

public struct Size
{
....

public static explicit operator Point(Size size)
{
return new Point(size.Width, size.Height);
}


Xwt is amazing!
many thanks for it!
I just started to refactor my application to work with xwt, and started a System.Windows.Forms-Backend
(http://limada.git.sourceforge.net/git/gitweb.cgi?p=limada/limada;a=tree;f=src/Xwt.SWF)

so, how is the best way to contribute?
greetings
lytico

@slluis
Copy link
Member

slluis commented Feb 27, 2012

Size-Point conversion is something I can add. I'm glad you find XWT useful! If you want to contribute, the best way to do it is to fork xwt to your own github account and then provide the changes through pull requests.
Thanks!

@luiscubal
Copy link
Contributor

Could you give an example of a situation in which this feature would simplify something?

@lytico
Copy link
Contributor Author

lytico commented Feb 27, 2012

mostly by adapting graphic libs to xwt, as
System.Drawing.Size
http://msdn.microsoft.com/en-us/library/system.drawing.size.op_explicit.aspx
System.Windows.Size:
http://msdn.microsoft.com/en-us/library/ms521907.aspx
have the Size-Point-Conversion

@lytico lytico closed this as completed Feb 28, 2012
@lytico lytico reopened this Feb 28, 2012
@lytico
Copy link
Contributor Author

lytico commented Feb 28, 2012

pull request did a new issue:
#19
so i close this

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

No branches or pull requests

3 participants