Codebase list ruby-fxruby / run/69704b1d-de8d-4e66-a9aa-4f8a2c3f135a/upstream rdoc-sources / FXMemoryBuffer.rb
run/69704b1d-de8d-4e66-a9aa-4f8a2c3f135a/upstream

Tree @run/69704b1d-de8d-4e66-a9aa-4f8a2c3f135a/upstream (Download .tar.gz)

FXMemoryBuffer.rb @run/69704b1d-de8d-4e66-a9aa-4f8a2c3f135a/upstreamraw · history · blame

module Fox
  # This class is deprecated. Use FXImage methods instead.
  class FXMemoryBuffer

    #
    # Return a new FXMemoryBuffer instance, initialized with the
    # provided array of FXColor values.
    #
    # ==== Parameters:
    #
    # +data+:: the initial array of FXColor values.
    #
    def initialize(data); end

    # Return a copy of the pixel buffer, as an array of FXColor values [Array]
    def data; end
    alias to_a data

    # Return the size of the pixel buffer
    def size; end

    # Return the specified element (an FXColor value)
    def [](index); end

    # Set the specified element to _clr_.
    def []=(index, clr); end
  end
end