Class: Wx::AnimationDecoder
- Inherits:
-
Object
- Object
- Wx::AnimationDecoder
- Defined in:
- lib/wx/doc/gen/animation.rb
Overview
AnimationDecoder is used by Animation for loading frames and other information for the animation from the animation image file.
Instance Method Summary collapse
-
#can_read(stream) ⇒ Boolean
(also: #can_read?)
Returns true if this decoder supports loading from the given stream.
-
#clone ⇒ Wx::AnimationDecoder
Create a copy of this decoder.
-
#convert_to_image(frame) ⇒ Array(Boolean,Wx::Image)
Convert given frame to Image.
-
#do_can_read(stream) ⇒ Boolean
protected
Checks the signature of the data in the given stream and returns true if it appears to be a valid animation format recognized by the animation decoder; this function should modify the stream current position without taking care of restoring it since
can_read
will do it. - #get_animation_size ⇒ Wx::Size (also: #animation_size)
- #get_background_colour ⇒ Wx::Colour (also: #background_colour)
-
#get_delay(frame) ⇒ Integer
(also: #delay)
Return the number of milliseconds this frame should be displayed.
-
#get_disposal_method(frame) ⇒ Wx::AnimationDisposal
(also: #disposal_method)
What should be done after displaying this frame.
- #get_frame_count ⇒ Integer (also: #frame_count)
- #get_frame_position(frame) ⇒ Wx::Point (also: #frame_position)
- #get_frame_size(frame) ⇒ Wx::Size (also: #frame_size)
-
#get_transparent_colour(frame) ⇒ Wx::Colour
(also: #transparent_colour)
The transparent colour for this frame, if any, or NULL_COLOUR.
-
#get_type ⇒ Wx::AnimationType
(also: #type)
Return the animation type this decoder implements.
- #initialize ⇒ Wx::AnimationDecoder constructor
-
#load(stream) ⇒ Boolean
Load the animation image frames from the given stream.
Constructor Details
#initialize ⇒ Wx::AnimationDecoder
189 |
# File 'lib/wx/doc/gen/animation.rb', line 189 def initialize; end |
Instance Method Details
#can_read(stream) ⇒ Boolean Also known as: can_read?
Returns true if this decoder supports loading from the given stream.
199 |
# File 'lib/wx/doc/gen/animation.rb', line 199 def can_read(stream) end |
#clone ⇒ Wx::AnimationDecoder
Create a copy of this decoder.
204 |
# File 'lib/wx/doc/gen/animation.rb', line 204 def clone; end |
#convert_to_image(frame) ⇒ Array(Boolean,Wx::Image)
Convert given frame to Image.
214 |
# File 'lib/wx/doc/gen/animation.rb', line 214 def convert_to_image(frame) end |
#do_can_read(stream) ⇒ Boolean (protected)
Checks the signature of the data in the given stream and returns true if it appears to be a valid animation format recognized by the animation decoder; this function should modify the stream current position without taking care of restoring it since can_read
will do it.
264 |
# File 'lib/wx/doc/gen/animation.rb', line 264 def do_can_read(stream) end |
#get_animation_size ⇒ Wx::Size Also known as: animation_size
247 |
# File 'lib/wx/doc/gen/animation.rb', line 247 def get_animation_size; end |
#get_background_colour ⇒ Wx::Colour Also known as: background_colour
251 |
# File 'lib/wx/doc/gen/animation.rb', line 251 def get_background_colour; end |
#get_delay(frame) ⇒ Integer Also known as: delay
Return the number of milliseconds this frame should be displayed.
If -1 is returned then the frame must be displayed forever.
237 |
# File 'lib/wx/doc/gen/animation.rb', line 237 def get_delay(frame) end |
#get_disposal_method(frame) ⇒ Wx::AnimationDisposal Also known as: disposal_method
What should be done after displaying this frame.
229 |
# File 'lib/wx/doc/gen/animation.rb', line 229 def get_disposal_method(frame) end |
#get_frame_count ⇒ Integer Also known as: frame_count
255 |
# File 'lib/wx/doc/gen/animation.rb', line 255 def get_frame_count; end |
#get_frame_position(frame) ⇒ Wx::Point Also known as: frame_position
223 |
# File 'lib/wx/doc/gen/animation.rb', line 223 def get_frame_position(frame) end |
#get_frame_size(frame) ⇒ Wx::Size Also known as: frame_size
218 |
# File 'lib/wx/doc/gen/animation.rb', line 218 def get_frame_size(frame) end |
#get_transparent_colour(frame) ⇒ Wx::Colour Also known as: transparent_colour
The transparent colour for this frame, if any, or NULL_COLOUR.
243 |
# File 'lib/wx/doc/gen/animation.rb', line 243 def get_transparent_colour(frame) end |
#get_type ⇒ Wx::AnimationType Also known as: type
Return the animation type this decoder implements.
208 |
# File 'lib/wx/doc/gen/animation.rb', line 208 def get_type; end |
#load(stream) ⇒ Boolean
Load the animation image frames from the given stream.
194 |
# File 'lib/wx/doc/gen/animation.rb', line 194 def load(stream) end |