Module Limelight::Builtin::Players::StageMover
In: lib/limelight/builtin/players/stage_mover.rb

Methods

Public Instance methods

[Source]

    # File lib/limelight/builtin/players/stage_mover.rb, line 15
15:         def mouse_dragged(e)
16:           dx = e.x - @drag_reference_x
17:           dy = e.y - @drag_reference_y 
18: 
19:           frame = scene.stage.frame
20:           location = frame.location
21: 
22:           location.x += dx
23:           location.y += dy
24:           frame.location = location
25:         end

[Source]

    # File lib/limelight/builtin/players/stage_mover.rb, line 10
10:         def mouse_pressed(e)        
11:           @drag_reference_x = e.x
12:           @drag_reference_y = e.y
13:         end

[Validate]