# generated by 'rake generate'
require 'cocoa/bindings/NSObject'
module Cocoa
  class NSImage < Cocoa::NSObject
    attach_method :CGImageForProposedRect, :args=>3, :names=>[:context, :hints], :types=>["^{CGRect={CGPoint=dd}{CGSize=dd}}", "@", "@"], :retval=>"^{CGImage=}"
    attach_method :TIFFRepresentation, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :TIFFRepresentationUsingCompression, :args=>2, :names=>[:factor], :types=>["Q", "f"], :retval=>"@"
    attach_method :accessibilityDescription, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :addRepresentation, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :addRepresentations, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :alignmentRect, :args=>0, :names=>[], :types=>[], :retval=>"{CGRect={CGPoint=dd}{CGSize=dd}}"
    attach_method :backgroundColor, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :bestRepresentationForDevice, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
    attach_method :bestRepresentationForRect, :args=>3, :names=>[:context, :hints], :types=>["{CGRect={CGPoint=dd}{CGSize=dd}}", "@", "@"], :retval=>"@"
    attach_method :cacheDepthMatchesImageDepth, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :cacheMode, :args=>0, :names=>[], :types=>[], :retval=>"Q"
    attach_singular_method :canInitWithPasteboard, :args=>1, :names=>[], :types=>["@"], :retval=>"B"
    attach_method :cancelIncrementalLoad, :args=>0, :names=>[], :types=>[], :retval=>"v"
    attach_method :compositeToPoint, [{:args=>3, :names=>[:fromRect, :operation], :types=>["{CGPoint=dd}", "{CGRect={CGPoint=dd}{CGSize=dd}}", "Q"], :retval=>"v"}, {:args=>4, :names=>[:fromRect, :operation, :fraction], :types=>["{CGPoint=dd}", "{CGRect={CGPoint=dd}{CGSize=dd}}", "Q", "d"], :retval=>"v"}, {:args=>2, :names=>[:operation], :types=>["{CGPoint=dd}", "Q"], :retval=>"v"}, {:args=>3, :names=>[:operation, :fraction], :types=>["{CGPoint=dd}", "Q", "d"], :retval=>"v"}]
    attach_method :delegate, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :dissolveToPoint, [{:args=>2, :names=>[:fraction], :types=>["{CGPoint=dd}", "d"], :retval=>"v"}, {:args=>3, :names=>[:fromRect, :fraction], :types=>["{CGPoint=dd}", "{CGRect={CGPoint=dd}{CGSize=dd}}", "d"], :retval=>"v"}]
    attach_method :drawAtPoint, :args=>4, :names=>[:fromRect, :operation, :fraction], :types=>["{CGPoint=dd}", "{CGRect={CGPoint=dd}{CGSize=dd}}", "Q", "d"], :retval=>"v"
    attach_method :drawInRect, [{:args=>4, :names=>[:fromRect, :operation, :fraction], :types=>["{CGRect={CGPoint=dd}{CGSize=dd}}", "{CGRect={CGPoint=dd}{CGSize=dd}}", "Q", "d"], :retval=>"v"}, {:args=>6, :names=>[:fromRect, :operation, :fraction, :respectFlipped, :hints], :types=>["{CGRect={CGPoint=dd}{CGSize=dd}}", "{CGRect={CGPoint=dd}{CGSize=dd}}", "Q", "d", "B", "@"], :retval=>"v"}]
    attach_method :drawRepresentation, :args=>2, :names=>[:inRect], :types=>["@", "{CGRect={CGPoint=dd}{CGSize=dd}}"], :retval=>"B"
    attach_method :hitTestRect, :args=>5, :names=>[:withImageDestinationRect, :context, :hints, :flipped], :types=>["{CGRect={CGPoint=dd}{CGSize=dd}}", "{CGRect={CGPoint=dd}{CGSize=dd}}", "@", "@", "B"], :retval=>"B"
    attach_singular_method :imageFileTypes, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_singular_method :imageNamed, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
    attach_singular_method :imagePasteboardTypes, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_singular_method :imageTypes, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_singular_method :imageUnfilteredFileTypes, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_singular_method :imageUnfilteredPasteboardTypes, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_singular_method :imageUnfilteredTypes, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_singular_method :imageWithSize, :args=>3, :names=>[:flipped, :drawingHandler], :types=>["{CGSize=dd}", "B", "@?"], :retval=>"@"
    attach_method :initByReferencingFile, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
    attach_method :initByReferencingURL, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
    attach_method :initWithCGImage, :args=>2, :names=>[:size], :types=>["^{CGImage=}", "{CGSize=dd}"], :retval=>"@"
    attach_method :initWithContentsOfFile, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
    attach_method :initWithContentsOfURL, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
    attach_method :initWithData, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
    attach_method :initWithDataIgnoringOrientation, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
    attach_method :initWithIconRef, :args=>1, :names=>[], :types=>["^{OpaqueIconRef=}"], :retval=>"@"
    attach_method :initWithPasteboard, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
    attach_method :initWithSize, :args=>1, :names=>[], :types=>["{CGSize=dd}"], :retval=>"@"
    attach_method :isCachedSeparately, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :isDataRetained, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :isFlipped, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :isTemplate, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :isValid, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :layerContentsForContentsScale, :args=>1, :names=>[], :types=>["d"], :retval=>"@"
    attach_method :lockFocus, :args=>0, :names=>[], :types=>[], :retval=>"v"
    attach_method :lockFocusFlipped, :args=>1, :names=>[], :types=>["B"], :retval=>"v"
    attach_method :lockFocusOnRepresentation, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :matchesOnMultipleResolution, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :matchesOnlyOnBestFittingAxis, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :name, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :prefersColorMatch, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :recache, :args=>0, :names=>[], :types=>[], :retval=>"v"
    attach_method :recommendedLayerContentsScale, :args=>1, :names=>[], :types=>["d"], :retval=>"d"
    attach_method :removeRepresentation, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :representations, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :scalesWhenResized, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :setAccessibilityDescription, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :setAlignmentRect, :args=>1, :names=>[], :types=>["{CGRect={CGPoint=dd}{CGSize=dd}}"], :retval=>"v"
    attach_method :setBackgroundColor, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :setCacheDepthMatchesImageDepth, :args=>1, :names=>[], :types=>["B"], :retval=>"v"
    attach_method :setCacheMode, :args=>1, :names=>[], :types=>["Q"], :retval=>"v"
    attach_method :setCachedSeparately, :args=>1, :names=>[], :types=>["B"], :retval=>"v"
    attach_method :setDataRetained, :args=>1, :names=>[], :types=>["B"], :retval=>"v"
    attach_method :setDelegate, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :setFlipped, :args=>1, :names=>[], :types=>["B"], :retval=>"v"
    attach_method :setMatchesOnMultipleResolution, :args=>1, :names=>[], :types=>["B"], :retval=>"v"
    attach_method :setMatchesOnlyOnBestFittingAxis, :args=>1, :names=>[], :types=>["B"], :retval=>"v"
    attach_method :setName, :args=>1, :names=>[], :types=>["@"], :retval=>"B"
    attach_method :setPrefersColorMatch, :args=>1, :names=>[], :types=>["B"], :retval=>"v"
    attach_method :setScalesWhenResized, :args=>1, :names=>[], :types=>["B"], :retval=>"v"
    attach_method :setSize, :args=>1, :names=>[], :types=>["{CGSize=dd}"], :retval=>"v"
    attach_method :setTemplate, :args=>1, :names=>[], :types=>["B"], :retval=>"v"
    attach_method :setUsesEPSOnResolutionMismatch, :args=>1, :names=>[], :types=>["B"], :retval=>"v"
    attach_method :size, :args=>0, :names=>[], :types=>[], :retval=>"{CGSize=dd}"
    attach_method :unlockFocus, :args=>0, :names=>[], :types=>[], :retval=>"v"
    attach_method :usesEPSOnResolutionMismatch, :args=>0, :names=>[], :types=>[], :retval=>"B"
  end
end
