indexing
description: "Pixel buffer used for storing RGBA values."
legal: "See notice at end of class."
status: "See notice at end of class."
keywords: "drawable, primitives, figures, buffer, bitmap, picture"
date: "$Date: 2007-10-09 11:12:13 -0700 (Tue, 09 Oct 2007) $"
revision: "$Revision: 70540 $"
class interface
EV_PIXEL_BUFFER
create
default_create
EV_ANY
require ANY
True
ensure then EV_ANY
is_coupled: implementation /= Void
is_initialized: is_initialized
default_create_called: default_create_called
is_in_default_state: is_in_default_state
make_with_size (a_width, a_height: INTEGER_32)
`a_width'`a_height'
require
a_width_valid: a_width > 0
a_height_valid: a_height > 0
make_with_pixmap (a_pixmap: EV_PIXMAP)
`a_pixmap'
require
not_void: a_pixmap /= Void
convert
make_with_pixmap ({EV_PIXMAP})
feature
data: ANY
EV_ANY
generating_type: STRING_8
ANY
ensure ANY
generating_type_not_void: Result /= Void
generating_type_not_empty: not Result.is_empty
generator: STRING_8
ANY
ensure ANY
generator_not_void: Result /= Void
generator_not_empty: not Result.is_empty
feature
frozen deep_equal (some: ?ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
shallow_implies_deep: standard_equal (some, other) implies Result
both_or_none_void: (some = Void) implies (Result = (other = Void))
same_type: (Result and (some /= Void)) implies (other /= Void and then some.same_type (other))
symmetric: Result implies deep_equal (other, some)
frozen equal (some: ?ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.is_equal (other))
frozen is_deep_equal (other: EV_PIXEL_BUFFER): BOOLEAN
`Current'`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
shallow_implies_deep: standard_is_equal (other) implies Result
same_type: Result implies same_type (other)
symmetric: Result implies other.is_deep_equal (Current)
is_equal (other: EV_PIXEL_BUFFER): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
symmetric: Result implies other.is_equal (Current)
consistent: standard_is_equal (other) implies Result
frozen standard_equal (some: ?ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.standard_is_equal (other))
frozen standard_is_equal (other: EV_PIXEL_BUFFER): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
same_type: Result implies same_type (other)
symmetric: Result implies other.standard_is_equal (Current)
feature
conforms_to (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
same_type (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
definition: Result = (conforms_to (other) and other.conforms_to (Current))
feature
set_data (some_data: like data)
`some_data'data
EV_ANY
require EV_ANY
not_destroyed: not is_destroyed
ensure EV_ANY
data_assigned: data = some_data
feature
copy (other: EV_PIXEL_BUFFER)
`other'
EV_ANY
require ANY
other_not_void: other /= Void
type_identity: same_type (other)
ensure ANY
is_equal: is_equal (other)
frozen deep_copy (other: EV_PIXEL_BUFFER)
copy`other'deep_twin
ANY
require ANY
other_not_void: other /= Void
ensure ANY
deep_equal: deep_equal (Current, other)
frozen deep_twin: EV_PIXEL_BUFFER
ANY
ensure ANY
deep_twin_not_void: Result /= Void
deep_equal: deep_equal (Current, Result)
frozen standard_copy (other: EV_PIXEL_BUFFER)
`other'
ANY
require ANY
other_not_void: other /= Void
type_identity: same_type (other)
ensure ANY
is_standard_equal: standard_is_equal (other)
frozen standard_twin: EV_PIXEL_BUFFER
`other'
ANY
ensure ANY
standard_twin_not_void: Result /= Void
equal: standard_equal (Result, Current)
frozen twin: EV_PIXEL_BUFFER
`Current'
twincopycopy
ANY
ensure ANY
twin_not_void: Result /= Void
is_equal: Result.is_equal (Current)
feature
frozen default: ?EV_PIXEL_BUFFER
ANY
frozen default_pointer: POINTER
`POINTER'
`p'default
`p'`POINTER'
ANY
default_rescue
ANY
frozen do_nothing
ANY
feature
implementation: EV_PIXEL_BUFFER_I
feature
destroy
`Current'
EV_ANY
ensure EV_ANY
is_destroyed: is_destroyed
draw_pixel_buffer_with_x_y (a_x, a_y: INTEGER_32; a_pixel_buffer: EV_PIXEL_BUFFER)
`a_pixel_buffer'`a_x'`a_y'
require
not_void: a_pixel_buffer /= Void
vaild: a_x >= 0 and a_y >= 0 and a_x < width and a_y < height
draw_text (a_text: STRING_GENERAL; a_font: EV_FONT; a_point: EV_COORDINATE)
`a_text'`a_font'`a_rect'
require
not_void: a_text /= Void
not_void: a_font /= Void
not_void: a_point /= Void
lock
require
not_locked: not is_locked
ensure
is_locked: is_locked
pixel_iterator: EV_PIXEL_BUFFER_ITERATOR
require
is_locked: is_locked
ensure
result_not_void: Result /= Void
save_to_named_file (a_file_name: STRING_8)
`a_file_name'
require
a_file_name_valid: a_file_name /= Void and then not a_file_name.is_empty
not_locked: not is_locked
set_with_named_file (a_file_name: STRING_8)
`a_file_name'
require
a_file_name_valid: a_file_name /= Void and then not a_file_name.is_empty
not_locked: not is_locked
sub_pixel_buffer (a_rect: EV_RECTANGLE): EV_PIXEL_BUFFER
`Current'`a_rect'
require
not_void: a_rect /= Void
not_locked: not is_locked
ensure
result_not_void: Result /= Void
result_not_current: Result /= Current
sub_pixmap (a_rect: EV_RECTANGLE): EV_PIXMAP
`Current'`a_rect'
require
not_void: a_rect /= Void
not_locked: not is_locked
ensure
result_not_void: Result /= Void
to_pixmap: EV_PIXMAP
unlock
pixel_iterator
ensure
not_locked: not is_locked
feature
io: STD_FILES
ANY
ensure ANY
io_not_void: Result /= Void
out: STRING_8
ANY
ensure ANY
out_not_void: Result /= Void
print (some: ?ANY)
`some'
ANY
frozen tagged_out: STRING_8
ANY
ensure ANY
tagged_out_not_void: Result /= Void
feature
operating_environment: OPERATING_ENVIRONMENT
ANY
ensure ANY
operating_environment_not_void: Result /= Void
feature
height: INTEGER_32
`Current'
ensure
valid_height: Result >= 0
is_locked: BOOLEAN
width: INTEGER_32
`Current'
ensure
valid_width: Result >= 0
feature
is_destroyed: BOOLEAN
`Current'
EV_ANY
ensure EV_ANY
bridge_ok: Result = implementation.is_destroyed
invariant
EV_ANY
is_initialized: is_initialized
is_coupled: implementation /= Void and then implementation.interface = Current
default_create_called: default_create_called
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
indexing
copyright: "Copyright (c) 1984-2006, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[
Eiffel Software
356 Storke Road, Goleta, CA 93117 USA
Telephone 805-685-1006, Fax 805-685-6869
Website http://www.eiffel.com
Customer support http://support.eiffel.com
]"
end EV_PIXEL_BUFFER