Skip to content

Instantly share code, notes, and snippets.

@topgenorth
Created June 17, 2013 15:51
Show Gist options
  • Save topgenorth/5797966 to your computer and use it in GitHub Desktop.
Save topgenorth/5797966 to your computer and use it in GitHub Desktop.
using System;
using System.Drawing;
using MonoTouch.ObjCRuntime;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
namespace InfColorPicker
{
[BaseType(typeof(UIView))]
public partial interface InfColorBarView
{
}
[BaseType(typeof(UIImageView))]
public partial interface InfColorSquareView
{
[Export("hue")]
float Hue { get; set; }
}
[BaseType(typeof(UIControl))]
public partial interface InfColorBarPicker
{
[Export("value")]
float Value { get; set; }
}
[BaseType(typeof(UIControl))]
public partial interface InfColorSquarePicker
{
[Export("hue")]
float Hue { get; set; }
[Export("value")]
PointF Value { get; set; }
}
[BaseType(typeof(UIViewController))]
public partial interface InfColorPickerController
{
[Export("initWithFrame:")]
IntPtr Constructor (RectangleF frame);
[Export("sourceColor")]
UIColor SourceColor { get; set; }
[Export("resultColor")]
UIColor ResultColor { get; set; }
[Export("presentModallyOverViewController")]
void PresentModallyOverViewController (UIViewController controller);
}
[BaseType(typeof(NSObject))]
[Model]
public partial interface InfColorPickerControllerDelegate
{
[Export("colorPickerControllerDidFinish")]
void ColorPickerControllerDidFinish (InfColorPickerController controller);
[Export("colorPickerControllerDidChangeColor")]
void ColorPickerControllerDidChangeColor(InfColorPickerController controller);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment