Stub DisplayObject.opaqueBackground

This commit is contained in:
Lord-McSweeney 2023-01-30 18:55:51 -08:00 committed by Nathan Adams
parent 12c67d5068
commit 963f3240f2
1 changed files with 19 additions and 0 deletions

View File

@ -1077,6 +1077,24 @@ fn set_cache_as_bitmap<'gc>(
Ok(Value::Undefined)
}
/// Implements `opaqueBackground`'s getter.
pub fn opaque_background<'gc>(
_activation: &mut Activation<'_, 'gc>,
this: Option<Object<'gc>>,
_args: &[Value<'gc>],
) -> Result<Value<'gc>, Error<'gc>> {
Ok(Value::Null)
}
/// Implements `opaqueBackground`'s setter.
pub fn set_opaque_background<'gc>(
activation: &mut Activation<'_, 'gc>,
this: Option<Object<'gc>>,
args: &[Value<'gc>],
) -> Result<Value<'gc>, Error<'gc>> {
Ok(Value::Undefined)
}
/// Construct `DisplayObject`'s class.
pub fn create_class<'gc>(mc: MutationContext<'gc, '_>) -> GcCell<'gc, Class<'gc>> {
let class = Class::new(
@ -1135,6 +1153,7 @@ pub fn create_class<'gc>(mc: MutationContext<'gc, '_>) -> GcCell<'gc, Class<'gc>
("transform", Some(transform), Some(set_transform)),
("scrollRect", Some(scroll_rect), Some(set_scroll_rect)),
("mask", Some(mask), Some(set_mask)),
("opaqueBackground", Some(opaque_background), Some(set_opaque_background)),
(
"cacheAsBitmap",
Some(cache_as_bitmap),