diff options
author | Joshua Slack <[email protected]> | 2018-01-15 12:05:59 -0600 |
---|---|---|
committer | Joshua Slack <[email protected]> | 2018-01-15 12:05:59 -0600 |
commit | ec71ecdbbb1437dd57a0f47a1f70d36a25529038 (patch) | |
tree | 1b3eb134296e5341fcc75959fbe6c048edbe8b47 /ardor3d-core | |
parent | 7f712e9e1516547a9472d424ff8f47b726066358 (diff) |
Added new method to Canvas interface providing a way to store and retrieve the mouse manager for a given canvas.
Diffstat (limited to 'ardor3d-core')
-rw-r--r-- | ardor3d-core/src/main/java/com/ardor3d/framework/Canvas.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/ardor3d-core/src/main/java/com/ardor3d/framework/Canvas.java b/ardor3d-core/src/main/java/com/ardor3d/framework/Canvas.java index 444a3ce..2658c86 100644 --- a/ardor3d-core/src/main/java/com/ardor3d/framework/Canvas.java +++ b/ardor3d-core/src/main/java/com/ardor3d/framework/Canvas.java @@ -13,6 +13,7 @@ package com.ardor3d.framework; import java.util.concurrent.CountDownLatch; import com.ardor3d.annotation.MainThread; +import com.ardor3d.input.MouseManager; /** * This interface defines the View, and should maybe be called the ViewUpdater. It owns the rendering phase, and @@ -29,7 +30,7 @@ public interface Canvas { /** * Ask the canvas to render itself. Note that this may occur in another thread and therefore a latch is given so the * caller may know when the draw has completed. - * + * * @param latch * a counter that should be decremented once drawing has completed. */ @@ -40,4 +41,17 @@ public interface Canvas { * @return the CanvasRenderer associated with this Canvas. */ CanvasRenderer getCanvasRenderer(); + + /** + * @return the MouseManager associated with this Canvas, if any + */ + MouseManager getMouseManager(); + + /** + * Sets a MouseManager to be associated with this Canvas. + * + * @param manager + * the manager to associate + */ + void setMouseManager(MouseManager manager); } |