CIVector Constructeurs

Définition

Surcharges

Nom Description
CIVector(CGAffineTransform)

Crée un nouveau CIVector en aplatissant les six valeurs d’une transformation affine en six premières positions du nouveau CIVector.

CIVector(CGPoint)

Crée un nouveau CIVector pour le point spécifié.

CIVector(CGRect)

Crée un nouveau CIVector et le remplit avec les valeurs X, Y, height et width.

CIVector(NSCoder)

Constructeur qui initialise l’objet à partir des données stockées dans l’objet unarchiver.

CIVector(NSObjectFlag)

Constructeur pour appeler des classes dérivées pour ignorer l’initialisation et simplement allouer l’objet.

CIVector(NativeHandle)

Constructeur utilisé lors de la création de représentations managées d’objets non managés. Appelé par le runtime.

CIVector(NFloat)

Crée un vecteur unidimensionnel.

CIVector(NFloat[])

Crée un vecteur à partir du tableau de valeurs.

CIVector(String)

Crée un nouveau CIVector à partir de la représentation sous forme de chaîne spécifiée.

CIVector(NFloat, NFloat)

Crée un nouveau CIVector avec les coordonnées X et Y spécifiées.

CIVector(NFloat[], IntPtr)
CIVector(NFloat, NFloat, NFloat)

Crée un nouveau CIVector avec les coordonnées X, Y et Z spécifiées.

CIVector(NFloat, NFloat, NFloat, NFloat)

Crée un nouveau CIVector avec les coordonnées X, Y, Z et W spécifiées.

CIVector(CGAffineTransform)

Crée un nouveau CIVector en aplatissant les six valeurs d’une transformation affine en six premières positions du nouveau CIVector.

[Foundation.Export("initWithCGAffineTransform:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public CIVector(CoreGraphics.CGAffineTransform r);
[<Foundation.Export("initWithCGAffineTransform:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
new CoreImage.CIVector : CoreGraphics.CGAffineTransform -> CoreImage.CIVector

Paramètres

Attributs

S’applique à

CIVector(CGPoint)

Crée un nouveau CIVector pour le point spécifié.

[Foundation.Export("initWithCGPoint:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public CIVector(CoreGraphics.CGPoint p);
[<Foundation.Export("initWithCGPoint:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
new CoreImage.CIVector : CoreGraphics.CGPoint -> CoreImage.CIVector

Paramètres

Attributs

S’applique à

CIVector(CGRect)

Crée un nouveau CIVector et le remplit avec les valeurs X, Y, height et width.

[Foundation.Export("initWithCGRect:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public CIVector(CoreGraphics.CGRect r);
[<Foundation.Export("initWithCGRect:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
new CoreImage.CIVector : CoreGraphics.CGRect -> CoreImage.CIVector

Paramètres

r
CGRect
Attributs

S’applique à

CIVector(NSCoder)

Constructeur qui initialise l’objet à partir des données stockées dans l’objet unarchiver.

[Foundation.Export("initWithCoder:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
[ObjCRuntime.DesignatedInitializer]
public CIVector(Foundation.NSCoder coder);
[<Foundation.Export("initWithCoder:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<ObjCRuntime.DesignatedInitializer>]
new CoreImage.CIVector : Foundation.NSCoder -> CoreImage.CIVector

Paramètres

coder
NSCoder

Objet unarchiver.

Attributs

Remarques

Ce constructeur est fourni pour permettre à la classe d’être initialisée à partir d’une hiérarchie nonarchiver (par exemple, lors de la désérialisation niB). Il s’agit d’une partie du NSCoding protocole.

Si les développeurs souhaitent créer une sous-classe de cet objet et continuer à prendre en charge la désérialisation à partir d’une archive, ils doivent implémenter un constructeur avec une signature identique : prendre un seul paramètre de type NSCoder et le décorer avec l’attribut [Export("initWithCoder:"] .

L’état de cet objet peut également être sérialisé à l’aide de la EncodeTo(NSCoder) méthode complémentaire.

S’applique à

CIVector(NSObjectFlag)

Constructeur pour appeler des classes dérivées pour ignorer l’initialisation et simplement allouer l’objet.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
protected CIVector(Foundation.NSObjectFlag t);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
new CoreImage.CIVector : Foundation.NSObjectFlag -> CoreImage.CIVector

Paramètres

t
NSObjectFlag

Valeur sentinel inutilisée, transmettez NSObjectFlag.Empty.

Attributs

Remarques

Ce constructeur doit être appelé par des classes dérivées lorsqu’ils construisent complètement l’objet dans le code managé et veulent simplement que le runtime alloue et initialise le NSObject. Cela est nécessaire pour implémenter le processus d’initialisation en deux étapes que Objective-C utilise, la première étape consiste à effectuer l’allocation d’objet, la deuxième étape consiste à initialiser l’objet. Lorsque les développeurs appellent ce constructeur, ils tirent parti d’un chemin d’accès direct qui va jusqu’à NSObject allouer simplement la mémoire de l’objet et lier les objets Objective-C et C# ensemble. L’initialisation réelle de l’objet est à la hauteur du développeur.

Ce constructeur est généralement utilisé par le générateur de liaison pour allouer l’objet, mais empêche l’initialisation réelle. Une fois l’allocation effectuée, le constructeur doit initialiser l’objet. Avec les constructeurs générés par le générateur de liaison, cela signifie qu’il appelle manuellement l’une des méthodes « init » pour initialiser l’objet.

Il incombe au développeur d’initialiser complètement l’objet s’il s’agit d’un chaîné à l’aide de cette chaîne de constructeur.

En général, si le constructeur du développeur appelle l’implémentation de base correspondante, il doit également appeler une méthode d’init Objective-C. Si ce n’est pas le cas, les développeurs doivent plutôt chaîner au constructeur approprié dans leur classe.

La valeur de l’argument est ignorée et garantit simplement que le seul code exécuté est la phase de construction est l’allocation de base NSObject et l’inscription de type runtime. En règle générale, le chaînage ressemble à ceci :

//
// The NSObjectFlag constructor merely allocates the object and registers the C# class with the Objective-C runtime if necessary.
// No actual initXxx method is invoked, that is done later in the constructor
//
// This is taken from the iOS SDK's source code for the UIView class:
//
[Export ("initWithFrame:")]
public UIView (CGRect frame) : base (NSObjectFlag.Empty)
{
    // Invoke the init method now.
    var initWithFrame = new Selector ("initWithFrame:").Handle;
    if (IsDirectBinding) {
        Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
    } else {
        Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
    }
}

S’applique à

CIVector(NativeHandle)

Constructeur utilisé lors de la création de représentations managées d’objets non managés. Appelé par le runtime.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
protected internal CIVector(ObjCRuntime.NativeHandle handle);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
new CoreImage.CIVector : ObjCRuntime.NativeHandle -> CoreImage.CIVector

Paramètres

handle
NativeHandle

Pointeur (handle) vers l’objet non managé.

Attributs

Remarques

Ce constructeur est appelé par l’infrastructure d’exécution (GetNSObject(IntPtr)) pour créer une représentation managée pour un pointeur vers un objet Objective-C non managé. Les développeurs ne doivent pas appeler cette méthode directement, au lieu de cela, ils doivent appeler GetNSObject(IntPtr) , car ils empêchent deux instances d’un objet managé pointant vers le même objet natif.

S’applique à

CIVector(NFloat)

Crée un vecteur unidimensionnel.

[Foundation.Export("initWithX:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public CIVector(System.Runtime.InteropServices.NFloat x);
[<Foundation.Export("initWithX:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
new CoreImage.CIVector : System.Runtime.InteropServices.NFloat -> CoreImage.CIVector

Paramètres

x
NFloat
Attributs

S’applique à

CIVector(NFloat[])

Crée un vecteur à partir du tableau de valeurs.

public CIVector(System.Runtime.InteropServices.NFloat[] values);
new CoreImage.CIVector : System.Runtime.InteropServices.NFloat[] -> CoreImage.CIVector

Paramètres

values
NFloat[]

S’applique à

CIVector(String)

Crée un nouveau CIVector à partir de la représentation sous forme de chaîne spécifiée.

[Foundation.Export("initWithString:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public CIVector(string representation);
[<Foundation.Export("initWithString:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
new CoreImage.CIVector : string -> CoreImage.CIVector

Paramètres

representation
String
Attributs

S’applique à

CIVector(NFloat, NFloat)

Crée un nouveau CIVector avec les coordonnées X et Y spécifiées.

[Foundation.Export("initWithX:Y:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public CIVector(System.Runtime.InteropServices.NFloat x, System.Runtime.InteropServices.NFloat y);
[<Foundation.Export("initWithX:Y:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
new CoreImage.CIVector : System.Runtime.InteropServices.NFloat * System.Runtime.InteropServices.NFloat -> CoreImage.CIVector

Paramètres

x
NFloat
y
NFloat
Attributs

S’applique à

CIVector(NFloat[], IntPtr)

[Foundation.Export("initWithValues:count:")]
[ObjCRuntime.DesignatedInitializer]
public CIVector(System.Runtime.InteropServices.NFloat[] values, IntPtr count);
[<Foundation.Export("initWithValues:count:")>]
[<ObjCRuntime.DesignatedInitializer>]
new CoreImage.CIVector : System.Runtime.InteropServices.NFloat[] * nativeint -> CoreImage.CIVector

Paramètres

values
NFloat[]
count
IntPtr

nativeint

Attributs

S’applique à

CIVector(NFloat, NFloat, NFloat)

Crée un nouveau CIVector avec les coordonnées X, Y et Z spécifiées.

[Foundation.Export("initWithX:Y:Z:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public CIVector(System.Runtime.InteropServices.NFloat x, System.Runtime.InteropServices.NFloat y, System.Runtime.InteropServices.NFloat z);
[<Foundation.Export("initWithX:Y:Z:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
new CoreImage.CIVector : System.Runtime.InteropServices.NFloat * System.Runtime.InteropServices.NFloat * System.Runtime.InteropServices.NFloat -> CoreImage.CIVector

Paramètres

x
NFloat
y
NFloat
z
NFloat
Attributs

S’applique à

CIVector(NFloat, NFloat, NFloat, NFloat)

Crée un nouveau CIVector avec les coordonnées X, Y, Z et W spécifiées.

[Foundation.Export("initWithX:Y:Z:W:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public CIVector(System.Runtime.InteropServices.NFloat x, System.Runtime.InteropServices.NFloat y, System.Runtime.InteropServices.NFloat z, System.Runtime.InteropServices.NFloat w);
[<Foundation.Export("initWithX:Y:Z:W:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
new CoreImage.CIVector : System.Runtime.InteropServices.NFloat * System.Runtime.InteropServices.NFloat * System.Runtime.InteropServices.NFloat * System.Runtime.InteropServices.NFloat -> CoreImage.CIVector

Paramètres

x
NFloat
y
NFloat
z
NFloat
w
NFloat
Attributs

S’applique à