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

API implementation or DrawReversibleFrame and FillReversibleRectangle #26

Open
joyinfo opened this issue Aug 11, 2019 · 1 comment
Open

Comments

@joyinfo
Copy link

joyinfo commented Aug 11, 2019

I need to use the API of DrawReversibleFrame and FillReversibleRectangle, but they are not implemented neither in XplatUICocoa.cs nor in XplatUICarbon.cs.

		internal override void DrawReversibleLine(Point start, Point end, Color backColor) {
//			throw new NotImplementedException();
		}

		internal override void FillReversibleRectangle (Rectangle rectangle, Color backColor) {
//			throw new NotImplementedException();
		}

		internal override void DrawReversibleFrame (Rectangle rectangle, Color backColor, FrameStyle style) {
//			throw new NotImplementedException();
		}

Can you give me some thought on how to implement them in Cocoa?

Thanks

@filipnavara
Copy link
Collaborator

filipnavara commented Aug 11, 2019

They are not implemented because they are used for direct drawing on screen which is not supported on macOS. There is no easy way around it. For controls like splitters we usually create temporary half-transparent windows with a pattern drawn on them to simulate similar effect.

I am on vacation till end of the next week so I will be slow to reply

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

2 participants