@@ -116,46 +116,49 @@ impl<'gc> Default for InteractiveObjectBase<'gc> {
116116pub trait TInteractiveObject < ' gc > :
117117 ' gc + Clone + Copy + Collect + Debug + Into < InteractiveObject < ' gc > >
118118{
119- fn ibase ( & self ) -> Ref < InteractiveObjectBase < ' gc > > ;
119+ fn raw_interactive ( & self ) -> Ref < InteractiveObjectBase < ' gc > > ;
120120
121- fn ibase_mut ( & self , mc : MutationContext < ' gc , ' _ > ) -> RefMut < InteractiveObjectBase < ' gc > > ;
121+ fn raw_interactive_mut (
122+ & self ,
123+ mc : MutationContext < ' gc , ' _ > ,
124+ ) -> RefMut < InteractiveObjectBase < ' gc > > ;
122125
123126 fn as_displayobject ( self ) -> DisplayObject < ' gc > ;
124127
125128 /// Check if the interactive object accepts user input.
126129 fn mouse_enabled ( self ) -> bool {
127- self . ibase ( )
130+ self . raw_interactive ( )
128131 . flags
129132 . contains ( InteractiveObjectFlags :: MOUSE_ENABLED )
130133 }
131134
132135 /// Set if the interactive object accepts user input.
133136 fn set_mouse_enabled ( self , mc : MutationContext < ' gc , ' _ > , value : bool ) {
134- self . ibase_mut ( mc)
137+ self . raw_interactive_mut ( mc)
135138 . flags
136139 . set ( InteractiveObjectFlags :: MOUSE_ENABLED , value)
137140 }
138141
139142 /// Check if the interactive object accepts double-click events.
140143 fn double_click_enabled ( self ) -> bool {
141- self . ibase ( )
144+ self . raw_interactive ( )
142145 . flags
143146 . contains ( InteractiveObjectFlags :: DOUBLE_CLICK_ENABLED )
144147 }
145148
146149 // Set if the interactive object accepts double-click events.
147150 fn set_double_click_enabled ( self , mc : MutationContext < ' gc , ' _ > , value : bool ) {
148- self . ibase_mut ( mc)
151+ self . raw_interactive_mut ( mc)
149152 . flags
150153 . set ( InteractiveObjectFlags :: DOUBLE_CLICK_ENABLED , value)
151154 }
152155
153156 fn context_menu ( self ) -> Avm2Value < ' gc > {
154- self . ibase ( ) . context_menu
157+ self . raw_interactive ( ) . context_menu
155158 }
156159
157160 fn set_context_menu ( self , mc : MutationContext < ' gc , ' _ > , value : Avm2Value < ' gc > ) {
158- self . ibase_mut ( mc) . context_menu = value;
161+ self . raw_interactive_mut ( mc) . context_menu = value;
159162 }
160163
161164 /// Filter the incoming clip event.
@@ -254,7 +257,7 @@ pub trait TInteractiveObject<'gc>:
254257 ClipEventResult :: Handled
255258 }
256259 ClipEvent :: Release => {
257- let read = self . ibase ( ) ;
260+ let read = self . raw_interactive ( ) ;
258261 let last_click = read. last_click ;
259262 let this_click = Instant :: now ( ) ;
260263
@@ -282,7 +285,7 @@ pub trait TInteractiveObject<'gc>:
282285 log:: error!( "Got error when dispatching {:?} to AVM2: {}" , event, e) ;
283286 }
284287
285- self . ibase_mut ( context. gc_context ) . last_click = None ;
288+ self . raw_interactive_mut ( context. gc_context ) . last_click = None ;
286289 } else {
287290 let avm2_event = Avm2EventObject :: mouse_event (
288291 & mut activation,
@@ -298,7 +301,7 @@ pub trait TInteractiveObject<'gc>:
298301 log:: error!( "Got error when dispatching {:?} to AVM2: {}" , event, e) ;
299302 }
300303
301- self . ibase_mut ( context. gc_context ) . last_click = Some ( this_click) ;
304+ self . raw_interactive_mut ( context. gc_context ) . last_click = Some ( this_click) ;
302305 }
303306
304307 ClipEventResult :: Handled
@@ -316,7 +319,7 @@ pub trait TInteractiveObject<'gc>:
316319 log:: error!( "Got error when dispatching {:?} to AVM2: {}" , event, e) ;
317320 }
318321
319- self . ibase_mut ( context. gc_context ) . last_click = None ;
322+ self . raw_interactive_mut ( context. gc_context ) . last_click = None ;
320323
321324 ClipEventResult :: Handled
322325 }
@@ -359,7 +362,7 @@ pub trait TInteractiveObject<'gc>:
359362 rollover_target = tgt. parent ( ) ;
360363 }
361364
362- self . ibase_mut ( context. gc_context ) . last_click = None ;
365+ self . raw_interactive_mut ( context. gc_context ) . last_click = None ;
363366
364367 ClipEventResult :: Handled
365368 }
0 commit comments