Package edu.duke.cs.osprey.molscope.gui

Types

Link copied to clipboard
class Alert
Link copied to clipboard
class ClickTracker(tolerance: Int)

Tracks the mouse down and mouse up positions during a click or drag. If the two positions match (within tolerance), a clicked returns true.

Link copied to clipboard
class ContextMenu
Link copied to clipboard
class ExceptionViewer
Link copied to clipboard
interface SlideCommands
Link copied to clipboard
interface SlideFeature : HasFeatureId
Link copied to clipboard
class ViewIndexed(view: RenderView, target: Any)
Link copied to clipboard
class Window(title: String, width: Int, height: Int) : AutoCloseable

Thread-safe API for the windowing system. On OSX, this must be called on the main thread.

Link copied to clipboard
interface WindowCommands

Interface to talk to the window that is hosting this feature.

Link copied to clipboard
interface WindowFeature : HasFeatureId
Link copied to clipboard
interface WindowMenu
Link copied to clipboard
interface WithColumns

Functions

Link copied to clipboard
fun Commands.columns(num: Int, border: Boolean = false, block: WithColumns.() -> Unit)
Link copied to clipboard
inline fun <R> Commands.disabledIf(isDisabled: Boolean, block: () -> R): R
Link copied to clipboard
inline fun <R> Commands.enabledIf(isEnabled: Boolean, block: () -> R): R
Link copied to clipboard
fun Commands.image(img: LoadedImage)
Link copied to clipboard
fun Commands.infoTip(block: () -> Unit)

Renders a "i" icon which when hovered will show a popup.

fun Commands.infoTip(text: String, wrapWidth: Float = 200.0f)

Calls infoTip(block) to display text in the tooltip. All newlines in the text are discarded and the text is wrapped at the desired width.

Link copied to clipboard
inline fun Commands.listBox(label: String, itemsCount: Int, heightInItems: Int = itemsCount, block: () -> Unit)
Link copied to clipboard
fun Commands.popDisabled(num: Int = 1)
Link copied to clipboard
fun Commands.pushDisabled()

Calls pushStyleVar to temporarily modify the ImGUI style, and pushItemFlag to disable interactions with controls. Make sure to nest other calls to push/pop StyleVar and push/pop ItemFlag correctly.