Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is UIRectFill() in Monotouch?

In a couple of ObjC projects in the overloaded drawRect: methods I have seen UIRectFill() being used. What is it doing and what is the equivalent of it in Monotouch?

For instance here, where is it putting the filled rectangle to/wher is it drawing it to:

CGRect borderRect = bounds;
UIRectFill(borderRect);
borderRect.origin.x = CGRectGetMaxX(bounds) - borderThickness;
UIRectFill(borderRect);
like image 374
Krumelur Avatar asked Oct 23 '25 05:10

Krumelur


2 Answers

You're looking for UIKit.UIGraphics.RectFill.

like image 87
Rolf Bjarne Kvinge Avatar answered Oct 25 '25 09:10

Rolf Bjarne Kvinge


You can use miguel de icaza's Rosetta Stone to find out the mappings between objective-c selectors and monotouch methods.

I also find the monotouch API documentation very useful although there is no direct mapping between functions and selectors.

like image 20
madoke Avatar answered Oct 25 '25 09:10

madoke



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!