All Downloads are FREE. Search and download functionalities are using the official Maven repository.

games.rednblack.h2d.common.view.tools.Tool Maven / Gradle / Ivy

The newest version!
/*
 * ******************************************************************************
 *  * Copyright 2015 See AUTHORS file.
 *  *
 *  * Licensed under the Apache License, Version 2.0 (the "License");
 *  * you may not use this file except in compliance with the License.
 *  * You may obtain a copy of the License at
 *  *
 *  *   http://www.apache.org/licenses/LICENSE-2.0
 *  *
 *  * Unless required by applicable law or agreed to in writing, software
 *  * distributed under the License is distributed on an "AS IS" BASIS,
 *  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  * See the License for the specific language governing permissions and
 *  * limitations under the License.
 *  *****************************************************************************
 */

package games.rednblack.h2d.common.view.tools;

import games.rednblack.puremvc.interfaces.INotification;

/**
 * Created by azakhary on 4/30/2015.
 */
public interface Tool {
    void initTool();
    boolean stageMouseDown(float x, float y);
    void stageMouseUp(float x, float y);
    void stageMouseDragged(float x, float y);
    void stageMouseDoubleClick(float x, float y);
    boolean stageMouseScrolled(float amountX, float amountY);
    boolean itemMouseDown(int entity, float x, float y);
    void itemMouseUp(int entity, float x, float y);
    void itemMouseDragged(int entity, float x, float y);
    void itemMouseDoubleClick(int entity, float x, float y);
    String getName();
    String getTitle();
    String getShortcut();
    void handleNotification(INotification notification);
    void keyDown(int entity, int keycode);
    void keyUp(int entity, int keycode);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy