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

« back to all changes in this revision

Viewing changes to external/monomac/docs/en/MonoMac.AppKit/NSColorSpace.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:
30
30
        <Attribute>
31
31
          <AttributeName>MonoMac.Foundation.Export("init")</AttributeName>
32
32
        </Attribute>
 
33
        <Attribute>
 
34
          <AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
 
35
        </Attribute>
33
36
      </Attributes>
34
37
      <Parameters />
35
38
      <Docs>
70
73
        <Attribute>
71
74
          <AttributeName>MonoMac.Foundation.Export("initWithCoder:")</AttributeName>
72
75
        </Attribute>
 
76
        <Attribute>
 
77
          <AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
 
78
        </Attribute>
73
79
      </Attributes>
74
80
      <Parameters>
75
81
        <Parameter Name="coder" Type="MonoMac.Foundation.NSCoder" />
108
114
      <AssemblyInfo>
109
115
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
110
116
      </AssemblyInfo>
 
117
      <Attributes>
 
118
        <Attribute>
 
119
          <AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
 
120
        </Attribute>
 
121
      </Attributes>
111
122
      <Parameters>
112
123
        <Parameter Name="t" Type="MonoMac.Foundation.NSObjectFlag" />
113
124
      </Parameters>
114
125
      <Docs>
115
126
        <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
116
 
        <summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
 
127
        <summary>Constructor to call on derived classes when the derived class has an [Export] constructor.</summary>
117
128
        <remarks>
118
 
          <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>
119
 
          <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>
120
 
          <para>It is your responsability to completely initialize the object if you chain up using the NSObjectFlag.Empty path.</para>
121
 
          <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>
122
 
          <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>
 
129
          <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>
123
130
          <example>
124
131
            <code lang="C#">
125
 
//
126
 
// The NSObjectFlag merely allocates the object and registers the
127
 
// C# class with the Objective-C runtime if necessary, but no actual
128
 
// initXxx method is invoked, that is done later in the constructor
129
 
//
130
 
// This is taken from MonoMac's source code:
131
 
//
132
 
[Export ("initWithFrame:")]
133
 
public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
134
 
{
135
 
// Invoke the init method now.
136
 
        var initWithFrame = new Selector ("initWithFrame:").Handle;
137
 
        if (IsDirectBinding)
138
 
                Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend_RectangleF (this.Handle, initWithFrame, frame);
139
 
        else
140
 
                Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_RectangleF (this.SuperHandle, initWithFrame, frame);
141
 
}
 
132
public class MyClass : BaseClass {
 
133
    [Export ("initWithFoo:")]
 
134
    public MyClass (string foo) : base (NSObjectFlag.Empty)
 
135
    {
 
136
        ...
 
137
    }
142
138
</code>
143
139
          </example>
144
140
        </remarks>
151
147
      <AssemblyInfo>
152
148
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
153
149
      </AssemblyInfo>
 
150
      <Attributes>
 
151
        <Attribute>
 
152
          <AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
 
153
        </Attribute>
 
154
      </Attributes>
154
155
      <Parameters>
155
156
        <Parameter Name="handle" Type="System.IntPtr" />
156
157
      </Parameters>
219
220
        <ReturnType>MonoMac.Foundation.NSString</ReturnType>
220
221
      </ReturnValue>
221
222
      <Docs>
222
 
        <summary>To be added.</summary>
223
 
        <value>To be added.</value>
 
223
        <summary>Represents the value associated with the constant NSCalibratedBlackColorSpace</summary>
 
224
        <value>
 
225
        </value>
224
226
        <remarks>To be added.</remarks>
225
227
      </Docs>
226
228
    </Member>
235
237
        <ReturnType>MonoMac.Foundation.NSString</ReturnType>
236
238
      </ReturnValue>
237
239
      <Docs>
238
 
        <summary>To be added.</summary>
239
 
        <value>To be added.</value>
 
240
        <summary>Represents the value associated with the constant NSCalibratedRGBColorSpace</summary>
 
241
        <value>
 
242
        </value>
240
243
        <remarks>To be added.</remarks>
241
244
      </Docs>
242
245
    </Member>
251
254
        <ReturnType>MonoMac.Foundation.NSString</ReturnType>
252
255
      </ReturnValue>
253
256
      <Docs>
254
 
        <summary>To be added.</summary>
255
 
        <value>To be added.</value>
 
257
        <summary>Represents the value associated with the constant NSCalibratedWhiteColorSpace</summary>
 
258
        <value>
 
259
        </value>
256
260
        <remarks>To be added.</remarks>
257
261
      </Docs>
258
262
    </Member>
367
371
        <ReturnType>MonoMac.Foundation.NSString</ReturnType>
368
372
      </ReturnValue>
369
373
      <Docs>
370
 
        <summary>To be added.</summary>
371
 
        <value>To be added.</value>
 
374
        <summary>Represents the value associated with the constant NSCustomColorSpace</summary>
 
375
        <value>
 
376
        </value>
372
377
        <remarks>To be added.</remarks>
373
378
      </Docs>
374
379
    </Member>
383
388
        <ReturnType>MonoMac.Foundation.NSString</ReturnType>
384
389
      </ReturnValue>
385
390
      <Docs>
386
 
        <summary>To be added.</summary>
387
 
        <value>To be added.</value>
 
391
        <summary>Represents the value associated with the constant NSDeviceBlackColorSpace</summary>
 
392
        <value>
 
393
        </value>
388
394
        <remarks>To be added.</remarks>
389
395
      </Docs>
390
396
    </Member>
399
405
        <ReturnType>MonoMac.Foundation.NSString</ReturnType>
400
406
      </ReturnValue>
401
407
      <Docs>
402
 
        <summary>To be added.</summary>
403
 
        <value>To be added.</value>
 
408
        <summary>Represents the value associated with the constant NSDeviceCMYKColorSpace</summary>
 
409
        <value>
 
410
        </value>
404
411
        <remarks>To be added.</remarks>
405
412
      </Docs>
406
413
    </Member>
457
464
        <ReturnType>MonoMac.Foundation.NSString</ReturnType>
458
465
      </ReturnValue>
459
466
      <Docs>
460
 
        <summary>To be added.</summary>
461
 
        <value>To be added.</value>
 
467
        <summary>Represents the value associated with the constant NSDeviceRGBColorSpace</summary>
 
468
        <value>
 
469
        </value>
462
470
        <remarks>To be added.</remarks>
463
471
      </Docs>
464
472
    </Member>
494
502
        <ReturnType>MonoMac.Foundation.NSString</ReturnType>
495
503
      </ReturnValue>
496
504
      <Docs>
497
 
        <summary>To be added.</summary>
498
 
        <value>To be added.</value>
 
505
        <summary>Represents the value associated with the constant NSDeviceWhiteColorSpace</summary>
 
506
        <value>
 
507
        </value>
499
508
        <remarks>To be added.</remarks>
500
509
      </Docs>
501
510
    </Member>
516
525
        <param name="disposing">
517
526
          <para>If set to <see langword="true" />, the method is invoked directly and will dispose manage and unmanaged resources;   If set to <see langword="false" /> the method is being called by the garbage collector finalizer and should only release unmanaged resources.</para>
518
527
        </param>
519
 
        <summary>Releases the resourced used by the NSColorSpace object.</summary>
 
528
        <summary>Releases the resources used by the NSColorSpace object.</summary>
520
529
        <remarks>
521
530
          <para>This Dispose method releases the resources used by the NSColorSpace class.</para>
522
531
          <para>This method is called by both the Dispose() method and the object finalizer (Finalize).    When invoked by the Dispose method, the parameter disposting <paramref name="disposing" /> is set to <see langword="true" /> and any managed object references that this object holds are also disposed or released;  when invoked by the object finalizer, on the finalizer thread the value is set to <see langword="false" />. </para>
662
671
        <ReturnType>MonoMac.Foundation.NSString</ReturnType>
663
672
      </ReturnValue>
664
673
      <Docs>
665
 
        <summary>To be added.</summary>
666
 
        <value>To be added.</value>
 
674
        <summary>Represents the value associated with the constant NSNamedColorSpace</summary>
 
675
        <value>
 
676
        </value>
667
677
        <remarks>To be added.</remarks>
668
678
      </Docs>
669
679
    </Member>
678
688
        <ReturnType>MonoMac.Foundation.NSString</ReturnType>
679
689
      </ReturnValue>
680
690
      <Docs>
681
 
        <summary>To be added.</summary>
682
 
        <value>To be added.</value>
 
691
        <summary>Represents the value associated with the constant NSPatternColorSpace</summary>
 
692
        <value>
 
693
        </value>
683
694
        <remarks>To be added.</remarks>
684
695
      </Docs>
685
696
    </Member>