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.
41 lines
657 B
41 lines
657 B
package net.tortuga.gui.widgets;
|
|
|
|
|
|
/**
|
|
* Scrollable element
|
|
*
|
|
* @author Ondřej Hruška (MightyPork)
|
|
*/
|
|
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);
|
|
}
|
|
|