All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bugvm.apple.coregraphics.CGAffineTransform Maven / Gradle / Ivy

There is a newer version: 1.2.9
Show newest version
/*
 * Copyright (C) 2013-2015 RoboVM AB
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.bugvm.apple.coregraphics;

/**/
import java.io.*;
import java.nio.*;
import java.util.*;
import com.bugvm.objc.*;
import com.bugvm.objc.annotation.*;
import com.bugvm.objc.block.*;
import com.bugvm.rt.*;
import com.bugvm.rt.annotation.*;
import com.bugvm.rt.bro.*;
import com.bugvm.rt.bro.annotation.*;
import com.bugvm.rt.bro.ptr.*;
import com.bugvm.apple.corefoundation.*;
import com.bugvm.apple.foundation.*;
import com.bugvm.apple.uikit.*;
/**/

/**/

/**/
/**/@Library("CoreGraphics")/**/
/**/public/**/ class /**/CGAffineTransform/**/ 
    extends /**/Struct/**/ 
    /**//**/ {

    /**/public static class CGAffineTransformPtr extends Ptr {}/**/
    /**/static { Bro.bind(CGAffineTransform.class); }/**/
    /**//**/
    /**/
    public CGAffineTransform() {}
    public CGAffineTransform(@MachineSizedFloat double a, @MachineSizedFloat double b, @MachineSizedFloat double c, @MachineSizedFloat double d, @MachineSizedFloat double tx, @MachineSizedFloat double ty) {
        this.setA(a);
        this.setB(b);
        this.setC(c);
        this.setD(d);
        this.setTx(tx);
        this.setTy(ty);
    }
    /**/
    /**//**/
    /**/
    @StructMember(0) public native @MachineSizedFloat double getA();
    @StructMember(0) public native CGAffineTransform setA(@MachineSizedFloat double a);
    @StructMember(1) public native @MachineSizedFloat double getB();
    @StructMember(1) public native CGAffineTransform setB(@MachineSizedFloat double b);
    @StructMember(2) public native @MachineSizedFloat double getC();
    @StructMember(2) public native CGAffineTransform setC(@MachineSizedFloat double c);
    @StructMember(3) public native @MachineSizedFloat double getD();
    @StructMember(3) public native CGAffineTransform setD(@MachineSizedFloat double d);
    @StructMember(4) public native @MachineSizedFloat double getTx();
    @StructMember(4) public native CGAffineTransform setTx(@MachineSizedFloat double tx);
    @StructMember(5) public native @MachineSizedFloat double getTy();
    @StructMember(5) public native CGAffineTransform setTy(@MachineSizedFloat double ty);
    /**/
    
    @WeaklyLinked
    public static CGAffineTransform fromString(String string) {
        return UIGeometry.stringToCGAffineTransform(string);
    }
    
    @Override
    public boolean equals(Object obj) {
        return obj instanceof CGAffineTransform && equalsTo(this, (CGAffineTransform) obj);
    }
    
    @WeaklyLinked
    @Override
    public String toString() {
        return UIGeometry.toString(this);
    }
    
    /**/
    /**
     * @since Available in iOS 2.0 and later.
     */
    @GlobalValue(symbol="CGAffineTransformIdentity", optional=true)
    public static native @ByVal CGAffineTransform Identity();
    
    /**
     * @since Available in iOS 2.0 and later.
     */
    @Bridge(symbol="CGAffineTransformMakeTranslation", optional=true)
    public static native @ByVal CGAffineTransform createTranslation(@MachineSizedFloat double tx, @MachineSizedFloat double ty);
    /**
     * @since Available in iOS 2.0 and later.
     */
    @Bridge(symbol="CGAffineTransformMakeScale", optional=true)
    public static native @ByVal CGAffineTransform createScale(@MachineSizedFloat double sx, @MachineSizedFloat double sy);
    /**
     * @since Available in iOS 2.0 and later.
     */
    @Bridge(symbol="CGAffineTransformMakeRotation", optional=true)
    public static native @ByVal CGAffineTransform createRotation(@MachineSizedFloat double angle);
    /**
     * @since Available in iOS 2.0 and later.
     */
    public boolean isIdentity() { return isIdentity(this); }
    /**
     * @since Available in iOS 2.0 and later.
     */
    @Bridge(symbol="CGAffineTransformIsIdentity", optional=true)
    private static native boolean isIdentity(@ByVal CGAffineTransform t);
    /**
     * @since Available in iOS 2.0 and later.
     */
    public CGAffineTransform translate(@MachineSizedFloat double tx, @MachineSizedFloat double ty) { return translate(this, tx, ty); }
    /**
     * @since Available in iOS 2.0 and later.
     */
    @Bridge(symbol="CGAffineTransformTranslate", optional=true)
    private static native @ByVal CGAffineTransform translate(@ByVal CGAffineTransform t, @MachineSizedFloat double tx, @MachineSizedFloat double ty);
    /**
     * @since Available in iOS 2.0 and later.
     */
    public CGAffineTransform scale(@MachineSizedFloat double sx, @MachineSizedFloat double sy) { return scale(this, sx, sy); }
    /**
     * @since Available in iOS 2.0 and later.
     */
    @Bridge(symbol="CGAffineTransformScale", optional=true)
    private static native @ByVal CGAffineTransform scale(@ByVal CGAffineTransform t, @MachineSizedFloat double sx, @MachineSizedFloat double sy);
    /**
     * @since Available in iOS 2.0 and later.
     */
    public CGAffineTransform rotate(@MachineSizedFloat double angle) { return rotate(this, angle); }
    /**
     * @since Available in iOS 2.0 and later.
     */
    @Bridge(symbol="CGAffineTransformRotate", optional=true)
    private static native @ByVal CGAffineTransform rotate(@ByVal CGAffineTransform t, @MachineSizedFloat double angle);
    /**
     * @since Available in iOS 2.0 and later.
     */
    public CGAffineTransform invert() { return invert(this); }
    /**
     * @since Available in iOS 2.0 and later.
     */
    @Bridge(symbol="CGAffineTransformInvert", optional=true)
    private static native @ByVal CGAffineTransform invert(@ByVal CGAffineTransform t);
    /**
     * @since Available in iOS 2.0 and later.
     */
    public CGAffineTransform concat(CGAffineTransform t2) { return concat(this, t2); }
    /**
     * @since Available in iOS 2.0 and later.
     */
    @Bridge(symbol="CGAffineTransformConcat", optional=true)
    private static native @ByVal CGAffineTransform concat(@ByVal CGAffineTransform t1, @ByVal CGAffineTransform t2);
    /**
     * @since Available in iOS 2.0 and later.
     */
    public boolean equalsTo(CGAffineTransform t2) { return equalsTo(this, t2); }
    /**
     * @since Available in iOS 2.0 and later.
     */
    @Bridge(symbol="CGAffineTransformEqualToTransform", optional=true)
    private static native boolean equalsTo(@ByVal CGAffineTransform t1, @ByVal CGAffineTransform t2);
    /**/
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy