Search in sources :

Example 31 with Panel

use of limelight.ui.Panel in project limelight by slagyr.

the class Mouse method enter.

public static void enter(PropProxy prop, int x, int y, int modifiers, int click_count) {
    Point location = pointFor(prop, x, y);
    Panel owner = ownerOf(location, prop);
    new MouseEnteredEvent(modifiers, location, click_count).dispatch(owner);
}
Also used : Panel(limelight.ui.Panel) PropPanel(limelight.ui.model.PropPanel)

Example 32 with Panel

use of limelight.ui.Panel in project limelight by slagyr.

the class Mouse method exit.

public static void exit(PropProxy prop, int x, int y, int modifiers, int click_count) {
    Point location = pointFor(prop, x, y);
    Panel owner = ownerOf(location, prop);
    new MouseExitedEvent(modifiers, location, click_count).dispatch(owner);
}
Also used : Panel(limelight.ui.Panel) PropPanel(limelight.ui.model.PropPanel)

Example 33 with Panel

use of limelight.ui.Panel in project limelight by slagyr.

the class Mouse method click.

public static void click(PropProxy prop, int x, int y, int modifiers, int click_count) {
    Point location = pointFor(prop, x, y);
    Panel owner = ownerOf(location, prop);
    new MouseClickedEvent(modifiers, location, click_count).dispatch(owner);
}
Also used : Panel(limelight.ui.Panel) PropPanel(limelight.ui.model.PropPanel)

Example 34 with Panel

use of limelight.ui.Panel in project limelight by slagyr.

the class Mouse method move.

public static void move(PropProxy prop, int x, int y, int modifiers, int click_count) {
    Point location = pointFor(prop, x, y);
    Panel owner = ownerOf(location, prop);
    new MouseMovedEvent(modifiers, location, click_count).dispatch(owner);
}
Also used : Panel(limelight.ui.Panel) PropPanel(limelight.ui.model.PropPanel)

Example 35 with Panel

use of limelight.ui.Panel in project limelight by slagyr.

the class Mouse method press.

public static void press(PropProxy prop, int x, int y, int modifiers, int click_count) {
    Point location = pointFor(prop, x, y);
    Panel owner = ownerOf(location, prop);
    new MousePressedEvent(modifiers, location, click_count).dispatch(owner);
}
Also used : Panel(limelight.ui.Panel) PropPanel(limelight.ui.model.PropPanel)

Aggregations

Panel (limelight.ui.Panel)38 Test (org.junit.Test)13 MockPanel (limelight.ui.MockPanel)12 PropPanel (limelight.ui.model.PropPanel)9 BufferedImage (java.awt.image.BufferedImage)4 java.util (java.util)2 MockChangeablePanel (limelight.ui.model.MockChangeablePanel)2 InputPanel (limelight.ui.model.inputs.InputPanel)2 ScrollBarPanel (limelight.ui.model.inputs.ScrollBarPanel)2 Box (limelight.util.Box)2 Before (org.junit.Before)2 LinkedList (java.util.LinkedList)1 FakeProduction (limelight.model.FakeProduction)1 FakePlayerRecruiter (limelight.model.api.FakePlayerRecruiter)1 IntegerAttributeCompiler (limelight.styles.compiling.IntegerAttributeCompiler)1 SimpleIntegerValue (limelight.styles.values.SimpleIntegerValue)1 BufferedImagePool (limelight.ui.BufferedImagePool)1 limelight.ui.events.panel (limelight.ui.events.panel)1 PanelEvent (limelight.ui.events.panel.PanelEvent)1 TextLocation (limelight.ui.text.TextLocation)1