mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-17 16:38:22 +00:00
Convert leading spaces to tabs
This commit is contained in:
@@ -7,44 +7,44 @@ BitmapImageRep :: struct { using _: Object }
|
||||
|
||||
@(objc_type=BitmapImageRep, objc_name="alloc", objc_is_class_method=true)
|
||||
BitmapImageRep_alloc :: proc "c" () -> ^BitmapImageRep {
|
||||
return msgSend(^BitmapImageRep, BitmapImageRep, "alloc")
|
||||
return msgSend(^BitmapImageRep, BitmapImageRep, "alloc")
|
||||
}
|
||||
|
||||
@(objc_type=BitmapImageRep, objc_name="initWithBitmapDataPlanes")
|
||||
BitmapImageRep_initWithBitmapDataPlanes :: proc "c" (
|
||||
self: ^BitmapImageRep,
|
||||
bitmapDataPlanes: ^^u8,
|
||||
pixelsWide: Integer,
|
||||
pixelsHigh: Integer,
|
||||
bitsPerSample: Integer,
|
||||
samplesPerPixel: Integer,
|
||||
hasAlpha: bool,
|
||||
isPlanar: bool,
|
||||
colorSpaceName: ^String,
|
||||
bytesPerRow: Integer,
|
||||
bitsPerPixel: Integer) -> ^BitmapImageRep {
|
||||
self: ^BitmapImageRep,
|
||||
bitmapDataPlanes: ^^u8,
|
||||
pixelsWide: Integer,
|
||||
pixelsHigh: Integer,
|
||||
bitsPerSample: Integer,
|
||||
samplesPerPixel: Integer,
|
||||
hasAlpha: bool,
|
||||
isPlanar: bool,
|
||||
colorSpaceName: ^String,
|
||||
bytesPerRow: Integer,
|
||||
bitsPerPixel: Integer) -> ^BitmapImageRep {
|
||||
|
||||
return msgSend(^BitmapImageRep,
|
||||
self,
|
||||
"initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bytesPerRow:bitsPerPixel:",
|
||||
bitmapDataPlanes,
|
||||
pixelsWide,
|
||||
pixelsHigh,
|
||||
bitsPerSample,
|
||||
samplesPerPixel,
|
||||
hasAlpha,
|
||||
isPlanar,
|
||||
colorSpaceName,
|
||||
bytesPerRow,
|
||||
bitsPerPixel)
|
||||
self,
|
||||
"initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bytesPerRow:bitsPerPixel:",
|
||||
bitmapDataPlanes,
|
||||
pixelsWide,
|
||||
pixelsHigh,
|
||||
bitsPerSample,
|
||||
samplesPerPixel,
|
||||
hasAlpha,
|
||||
isPlanar,
|
||||
colorSpaceName,
|
||||
bytesPerRow,
|
||||
bitsPerPixel)
|
||||
}
|
||||
|
||||
@(objc_type=BitmapImageRep, objc_name="bitmapData")
|
||||
BitmapImageRep_bitmapData :: proc "c" (self: ^BitmapImageRep) -> rawptr {
|
||||
return msgSend(rawptr, self, "bitmapData")
|
||||
return msgSend(rawptr, self, "bitmapData")
|
||||
}
|
||||
|
||||
@(objc_type=BitmapImageRep, objc_name="CGImage")
|
||||
BitmapImageRep_CGImage :: proc "c" (self: ^BitmapImageRep) -> rawptr {
|
||||
return msgSend(rawptr, self, "CGImage")
|
||||
return msgSend(rawptr, self, "CGImage")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user