dymokomi/luce-browser-engine
Source of release 0.6.0
0.6.0 / src / web / html / decoded_image_data.lucb
#==============================================================================================
#
# decoded_image_data - HTML::DecodedImageData: the abstract image data of an image request
#
# DESCRIPTION:
# Port of LibWeb/HTML/DecodedImageData.cpp (lines 1-15) and DecodedImageData.h: the
# defaulted constructor, the pure virtuals (which trap) and notify_frame_advanced's
# default body.
#
#==============================================================================================
## Ported from DecodedImageData.h:25 Web::HTML::DecodedImageData::frame_rect (virtual).
pub func html_decoded_image_data_frame_rect_impl(this: HtmlDecodedImageData*, frame_index: usize) -> gfx.DevicePixelRect?:
trap("pure virtual: Web::HTML::DecodedImageData::frame_rect")
## Ported from DecodedImageData.h:26 Web::HTML::DecodedImageData::paint (virtual).
pub func html_decoded_image_data_paint_impl(this: HtmlDecodedImageData*, arg0: DisplayListRecordingContext*, frame_index: usize, dst_rect: gfx.DevicePixelRect, clip_rect: gfx.DevicePixelRect, scaling_mode: gfx.ScalingMode):
trap("pure virtual: Web::HTML::DecodedImageData::paint")
## Ported from DecodedImageData.h:28 Web::HTML::DecodedImageData::bitmap (virtual).
pub func html_decoded_image_data_bitmap_impl(this: HtmlDecodedImageData*, frame_index: usize, arg1: gfx.IntSize) -> gfx.ImmutableBitmap*?:
trap("pure virtual: Web::HTML::DecodedImageData::bitmap")
## Ported from DecodedImageData.h:29 Web::HTML::DecodedImageData::frame_duration (virtual).
pub func html_decoded_image_data_frame_duration_impl(this: HtmlDecodedImageData*, frame_index: usize) -> i32:
trap("pure virtual: Web::HTML::DecodedImageData::frame_duration")
## Ported from DecodedImageData.h:31 Web::HTML::DecodedImageData::frame_count (virtual).
pub func html_decoded_image_data_frame_count_impl(this: HtmlDecodedImageData*) -> usize:
trap("pure virtual: Web::HTML::DecodedImageData::frame_count")
## Ported from DecodedImageData.h:32 Web::HTML::DecodedImageData::loop_count (virtual).
pub func html_decoded_image_data_loop_count_impl(this: HtmlDecodedImageData*) -> usize:
trap("pure virtual: Web::HTML::DecodedImageData::loop_count")
## Ported from DecodedImageData.h:33 Web::HTML::DecodedImageData::is_animated (virtual).
pub func html_decoded_image_data_is_animated_impl(this: HtmlDecodedImageData*) -> bool:
trap("pure virtual: Web::HTML::DecodedImageData::is_animated")
## Ported from DecodedImageData.h:35 Web::HTML::DecodedImageData::notify_frame_advanced (virtual).
pub func html_decoded_image_data_notify_frame_advanced_impl(this: HtmlDecodedImageData*, frame_index: usize) -> usize:
return frame_index
## Ported from DecodedImageData.h:37 Web::HTML::DecodedImageData::intrinsic_width (virtual).
pub func html_decoded_image_data_intrinsic_width_impl(this: HtmlDecodedImageData*) -> gfx.CssPixels?:
trap("pure virtual: Web::HTML::DecodedImageData::intrinsic_width")
## Ported from DecodedImageData.h:38 Web::HTML::DecodedImageData::intrinsic_height (virtual).
pub func html_decoded_image_data_intrinsic_height_impl(this: HtmlDecodedImageData*) -> gfx.CssPixels?:
trap("pure virtual: Web::HTML::DecodedImageData::intrinsic_height")
## Ported from DecodedImageData.h:39 Web::HTML::DecodedImageData::intrinsic_aspect_ratio (virtual).
pub func html_decoded_image_data_intrinsic_aspect_ratio_impl(this: HtmlDecodedImageData*) -> gfx.CssPixelFraction?:
trap("pure virtual: Web::HTML::DecodedImageData::intrinsic_aspect_ratio")
## Ported from DecodedImageData.cpp:11 Web::HTML::DecodedImageData::DecodedImageData.
pub func html_decoded_image_data_construct(this: HtmlDecodedImageData*):
# = default: JS::Cell's constructor has nothing to do.
return