Stub DisplayObject.opaqueBackground
This commit is contained in:
parent
12c67d5068
commit
963f3240f2
|
@ -1077,6 +1077,24 @@ fn set_cache_as_bitmap<'gc>(
|
||||||
Ok(Value::Undefined)
|
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.
|
/// Construct `DisplayObject`'s class.
|
||||||
pub fn create_class<'gc>(mc: MutationContext<'gc, '_>) -> GcCell<'gc, Class<'gc>> {
|
pub fn create_class<'gc>(mc: MutationContext<'gc, '_>) -> GcCell<'gc, Class<'gc>> {
|
||||||
let class = Class::new(
|
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)),
|
("transform", Some(transform), Some(set_transform)),
|
||||||
("scrollRect", Some(scroll_rect), Some(set_scroll_rect)),
|
("scrollRect", Some(scroll_rect), Some(set_scroll_rect)),
|
||||||
("mask", Some(mask), Some(set_mask)),
|
("mask", Some(mask), Some(set_mask)),
|
||||||
|
("opaqueBackground", Some(opaque_background), Some(set_opaque_background)),
|
||||||
(
|
(
|
||||||
"cacheAsBitmap",
|
"cacheAsBitmap",
|
||||||
Some(cache_as_bitmap),
|
Some(cache_as_bitmap),
|
||||||
|
|
Loading…
Reference in New Issue