Class: Fox::FXMemoryBuffer
- Inherits:
-
Object
- Object
- Fox::FXMemoryBuffer
- Defined in:
- rdoc-sources/FXMemoryBuffer.rb
Overview
This class is deprecated. Use FXImage methods instead.
Instance Method Summary collapse
-
#[](index) ⇒ Object
Return the specified element (an FXColor value).
-
#[]=(index, clr) ⇒ Object
Set the specified element to clr.
-
#data ⇒ Object
(also: #to_a)
Return a copy of the pixel buffer, as an array of FXColor values [Array].
-
#initialize(data) ⇒ FXMemoryBuffer
constructor
Return a new FXMemoryBuffer instance, initialized with the provided array of FXColor values.
-
#size ⇒ Object
Return the size of the pixel buffer.
Constructor Details
#initialize(data) ⇒ FXMemoryBuffer
Return a new FXMemoryBuffer instance, initialized with the provided array of FXColor values.
Parameters:
data
-
the initial array of FXColor values.
13 |
# File 'rdoc-sources/FXMemoryBuffer.rb', line 13 def initialize(data); end |
Instance Method Details
#[](index) ⇒ Object
Return the specified element (an FXColor value)
23 |
# File 'rdoc-sources/FXMemoryBuffer.rb', line 23 def [](index); end |
#[]=(index, clr) ⇒ Object
Set the specified element to clr.
26 |
# File 'rdoc-sources/FXMemoryBuffer.rb', line 26 def []=(index, clr); end |
#data ⇒ Object Also known as: to_a
Return a copy of the pixel buffer, as an array of FXColor values [Array]
16 |
# File 'rdoc-sources/FXMemoryBuffer.rb', line 16 def data; end |
#size ⇒ Object
Return the size of the pixel buffer
20 |
# File 'rdoc-sources/FXMemoryBuffer.rb', line 20 def size; end |