Turtle programming game that was never finished to a playable state (but had cute graphics and sounds)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tortuga/src/net/tortuga/gui/widgets/IScrollable.java

42 lines
657 B

10 years ago
package net.tortuga.gui.widgets;
/**
* Scrollable element
*
* @author Ondřej Hruška (MightyPork)
10 years ago
*/
public interface IScrollable {
/**
* Get height of the entire content
*
* @return content height
*/
public double getContentSize();
/**
* When scrollbar is connected
*
* @param scrollbar scrollbar
*/
public void onScrollbarConnected(IScrollbar scrollbar);
/**
* Get view height (height of the visible area)
*
* @return view height
*/
public double getViewSize();
/**
* Hook called when scrollbar value changes
*
* @param value scrollbar value 0-1
*/
public void onScrollbarChange(double value);
}