summaryrefslogtreecommitdiff
path: root/CocoaSharp/UIKit/Protocols/UIDynamicItem.cs
blob: e30429cf866e22b63c9195a0d584ef2cbc6f0df3 (plain)
1
using ObjectiveC;
using System;
using SharpSwift.Attributes;
using System.Collections.Generic;
using Foundation;
using CoreGraphics;

namespace UIKit
{
    /// <summary>
    /// To make a custom object eligible to participate in UIKit Dynamics, adopt the UIDynamicItem protocol in the object’s class.
    /// </summary>
    /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDynamicItem_Protocol/index.html#//apple_ref/occ/intf/UIDynamicItem"/>
    [iOSVersion(7)]
    public interface UIDynamicItem//: NSObjectProtocol
    {
        /// <summary>
        /// Called when a dynamic animator needs the bounds of the dynamic item. (required) (read-only)
        /// </summary>
        [iOSVersion(7)]
        [Export("bounds")]
        CGRect Bounds { get; }
        
        /// <summary>
        /// The center point of the dynamic item. (required)
        /// </summary>
        [iOSVersion(7)]
        [Export("center")]
        CGPoint Center { get; set; }
        
        /// <summary>
        /// The rotation of the dynamic item. (required)
        /// </summary>
        [iOSVersion(7)]
        [Export("transform")]
        CGAffineTransform Transform { get; set; }
    }
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback