~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/monomac/docs/en/MonoMac.CoreAnimation/CATiledLayer.xml

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
  </code>
37
37
      </example>
38
38
    </remarks>
 
39
    <related type="sample" href="http://samples.xamarin.com/Samples/ByGuid?guid=556b1b8f-088e-494f-bc1a-bd418c174ba3">ZoomingPdfViewer</related>
39
40
  </Docs>
40
41
  <Members>
41
42
    <Member MemberName=".ctor">
49
50
        <Attribute>
50
51
          <AttributeName>MonoMac.Foundation.Export("init")</AttributeName>
51
52
        </Attribute>
 
53
        <Attribute>
 
54
          <AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
 
55
        </Attribute>
52
56
      </Attributes>
53
57
      <Parameters />
54
58
      <Docs>
68
72
        <Attribute>
69
73
          <AttributeName>MonoMac.Foundation.Export("initWithCoder:")</AttributeName>
70
74
        </Attribute>
 
75
        <Attribute>
 
76
          <AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
 
77
        </Attribute>
71
78
      </Attributes>
72
79
      <Parameters>
73
80
        <Parameter Name="coder" Type="MonoMac.Foundation.NSCoder" />
85
92
      <AssemblyInfo>
86
93
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
87
94
      </AssemblyInfo>
 
95
      <Attributes>
 
96
        <Attribute>
 
97
          <AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
 
98
        </Attribute>
 
99
      </Attributes>
88
100
      <Parameters>
89
101
        <Parameter Name="t" Type="MonoMac.Foundation.NSObjectFlag" />
90
102
      </Parameters>
91
103
      <Docs>
92
104
        <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
93
 
        <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
 
105
        <summary>Constructor to call on derived classes when the derived class has an [Export] constructor.</summary>
94
106
        <remarks>
95
 
          <para>This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the NSObject.   This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object.   When you invoke the constructor that takes the NSObjectFlag.Empty you taking advatnage of a direct path that goes all the way up to NSObject to merely allocate the object's memory and bind the Objective-C and C# objects together.    The actual initialization of the object is up to you.</para>
96
 
          <para>This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place.   Once the allocation has taken place, the constructor has to initialize the object.   With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.</para>
97
 
          <para>It is your responsability to completely initialize the object if you chain up using the NSObjectFlag.Empty path.</para>
98
 
          <para>In general, if your constructors invokes the NSObjectFlag.Empty base implementation, then it should be calling an Objective-C init method.   If this is not the case, you should instead chain to the proper constructor in your class. </para>
99
 
          <para>The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic NSObject allocation and runtime type registration.  Typically the chaining would look like this:</para>
 
107
          <para>This constructor should be called by derived classes when they are initialized using an [Export] attribute. The argument value is ignore, typically the chaining would look like this:</para>
100
108
          <example>
101
109
            <code lang="C#">
102
 
//
103
 
// The NSObjectFlag merely allocates the object and registers the
104
 
// C# class with the Objective-C runtime if necessary, but no actual
105
 
// initXxx method is invoked, that is done later in the constructor
106
 
//
107
 
// This is taken from MonoMac's source code:
108
 
//
109
 
[Export ("initWithFrame:")]
110
 
public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
111
 
{
112
 
// Invoke the init method now.
113
 
        var initWithFrame = new Selector ("initWithFrame:").Handle;
114
 
        if (IsDirectBinding)
115
 
                Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend_RectangleF (this.Handle, initWithFrame, frame);
116
 
        else
117
 
                Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_RectangleF (this.SuperHandle, initWithFrame, frame);
118
 
}
 
110
public class MyClass : BaseClass {
 
111
    [Export ("initWithFoo:")]
 
112
    public MyClass (string foo) : base (NSObjectFlag.Empty)
 
113
    {
 
114
        ...
 
115
    }
119
116
</code>
120
117
          </example>
121
118
        </remarks>
128
125
      <AssemblyInfo>
129
126
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
130
127
      </AssemblyInfo>
 
128
      <Attributes>
 
129
        <Attribute>
 
130
          <AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
 
131
        </Attribute>
 
132
      </Attributes>
131
133
      <Parameters>
132
134
        <Parameter Name="handle" Type="System.IntPtr" />
133
135
      </Parameters>