struct SDL::PixelFormat

Defined in:

pixels.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pixel_format : Pointer(LibSDL::PixelFormat)) #

[View source]

Instance Method Detail

def a_loss(*args, **options) #

[View source]
def a_loss(*args, **options, &) #

[View source]
def a_mask(*args, **options) #

[View source]
def a_mask(*args, **options, &) #

[View source]
def a_shift(*args, **options) #

[View source]
def a_shift(*args, **options, &) #

[View source]
def b_loss(*args, **options) #

[View source]
def b_loss(*args, **options, &) #

[View source]
def b_mask(*args, **options) #

[View source]
def b_mask(*args, **options, &) #

[View source]
def b_shift(*args, **options) #

[View source]
def b_shift(*args, **options, &) #

[View source]
def bits_per_pixel #

[View source]
def bytes_per_pixel #

[View source]
def format(*args, **options) #

[View source]
def format(*args, **options, &) #

[View source]
def g_loss(*args, **options) #

[View source]
def g_loss(*args, **options, &) #

[View source]
def g_mask(*args, **options) #

[View source]
def g_mask(*args, **options, &) #

[View source]
def g_shift(*args, **options) #

[View source]
def g_shift(*args, **options, &) #

[View source]
def inspect(io : IO) #
Description copied from struct Struct

Appends this struct's name and instance variables names and values to the given IO.

struct Point
  def initialize(@x : Int32, @y : Int32)
  end
end

p1 = Point.new 1, 2
p1.to_s    # "Point(@x=1, @y=2)"
p1.inspect # "Point(@x=1, @y=2)"

[View source]
def r_loss(*args, **options) #

[View source]
def r_loss(*args, **options, &) #

[View source]
def r_mask(*args, **options) #

[View source]
def r_mask(*args, **options, &) #

[View source]
def r_shift(*args, **options) #

[View source]
def r_shift(*args, **options, &) #

[View source]
def to_unsafe : Pointer(LibSDL::PixelFormat) #

[View source]