Class: Wx::AnimationDecoder

Inherits:
Object
  • Object
show all
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.

Requires:

  • USE_ANIMATIONCTRL

Instance Method Summary collapse

Constructor Details

#initializeWx::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.

Parameters:

Returns:

  • (Boolean)


199
# File 'lib/wx/doc/gen/animation.rb', line 199

def can_read(stream) end

#cloneWx::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.

Parameters:

  • frame (Integer)

Returns:



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.

Parameters:

Returns:

  • (Boolean)


264
# File 'lib/wx/doc/gen/animation.rb', line 264

def do_can_read(stream) end

#get_animation_sizeWx::Size Also known as: animation_size

Returns:



247
# File 'lib/wx/doc/gen/animation.rb', line 247

def get_animation_size; end

#get_background_colourWx::Colour Also known as: background_colour

Returns:



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.

Parameters:

  • frame (Integer)

Returns:

  • (Integer)


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.

Parameters:

  • frame (Integer)

Returns:



229
# File 'lib/wx/doc/gen/animation.rb', line 229

def get_disposal_method(frame) end

#get_frame_countInteger Also known as: frame_count

Returns:

  • (Integer)


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

Parameters:

  • frame (Integer)

Returns:



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

Parameters:

  • frame (Integer)

Returns:



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.

Parameters:

  • frame (Integer)

Returns:



243
# File 'lib/wx/doc/gen/animation.rb', line 243

def get_transparent_colour(frame) end

#get_typeWx::AnimationType Also known as: type

Return the animation type this decoder implements.

Returns:



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.

Parameters:

Returns:

  • (Boolean)


194
# File 'lib/wx/doc/gen/animation.rb', line 194

def load(stream) end