Skip to content

Commit

Permalink
Fix retard IDEA renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-arold committed Sep 23, 2018
1 parent 9613e18 commit 6614e77
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 31 deletions.
Expand Up @@ -17,23 +17,23 @@ interface CursorHandler {
/**
* Moves the cursor to a new location on this [CursorHandler].
* Does nothing if the cursor is already at the given position.
* @returnThis `true` if the cursor position changed `false` if not.
* @return `true` if the cursor position changed `false` if not.
*/
fun putCursorAt(cursorPosition: Position): Boolean

/**
* Moves the cursor one [Position] to the right. If the [Position] would be out
* of bound regards to columns, the cursor will be moved the the 0th position
* in the next row or left where it was if there is no next row.
* @returnThis `true` if the cursor position changed `false` if not.
* @return `true` if the cursor position changed `false` if not.
*/
fun moveCursorForward(): Boolean

/**
* Moves the cursor one [Position] to the left. If the [Position] would be out
* of bounds regards to columns, the cursor will be moved the the last position
* in the previous row or left where it was if there is no previous row.
* @returnThis `true` if the cursor position changed `false` if not.
* @return `true` if the cursor position changed `false` if not.
*/
fun moveCursorBackward(): Boolean

Expand Down Expand Up @@ -64,7 +64,7 @@ interface CursorHandler {

/**
* Sets the visibility of the cursor. `true` is visible, `false` is not.
* @returnThis `true` if change happened, `false` if not.
* @return `true` if change happened, `false` if not.
*/
fun setCursorVisibility(cursorVisible: Boolean): Boolean
}
Expand Up @@ -12,7 +12,7 @@ interface Movable : Positionable {
* Sets the position of this [Movable].
* Note that if the supplied `position` is same as the [Movable]'s current
* position nothing will change.
* @returnThis `true` if the position was changed `false` otherwise
* @return `true` if the position was changed `false` otherwise
*/
fun moveTo(position: Position): Boolean

Expand Down
Expand Up @@ -35,57 +35,57 @@ interface Scrollable {
/**
* Scrolls this [Scrollable] with one width to the right.
* If the bounds of the virtual space are already reached this method has no effect.
* @returnThis the new visible offset
* @return the new visible offset
*/
fun scrollOneRight(): Position

/**
* Scrolls this [Scrollable] with one width to the left.
* If the bounds of the virtual space are already reached this method has no effect.
* @returnThis the new visible offset
* @return the new visible offset
*/
fun scrollOneLeft(): Position

/**
* Scrolls this [Scrollable] with one depth up.
* If the bounds of the virtual space are already reached this method has no effect.
* @returnThis the new visible offset
* @return the new visible offset
*/
fun scrollOneUp(): Position

/**
* Scrolls this [Scrollable] with one depth down.
* If the bounds of the virtual space are already reached this method has no effect.
* @returnThis the new visible offset
* @return the new visible offset
*/
fun scrollOneDown(): Position

/**
* Scrolls this [Scrollable] by `width` width to the right.
* If the bounds of the virtual space are already reached this method has no effect.
* @returnThis the new visible offset
* @return the new visible offset
*/
fun scrollRightBy(columns: Int): Position

/**
* Scrolls this [Scrollable] with `width` width to the left.
* If the bounds of the virtual space are already reached this method has no effect.
* @returnThis the new visible offset
* @return the new visible offset
*/
fun scrollLeftBy(columns: Int): Position

/**
* Scrolls this [Scrollable] by `depth` depth up.
* If the bounds of the virtual space are already reached this method has no effect.
* @returnThis the new visible offset
* @return the new visible offset
*/
fun scrollUpBy(rows: Int): Position


/**
* Scrolls this [Scrollable] with `depth` depth down.
* If the bounds of the virtual space are already reached this method has no effect.
* @returnThis the new visible offset
* @return the new visible offset
*/
fun scrollDownBy(rows: Int): Position

Expand Down
Expand Up @@ -85,7 +85,7 @@ interface Component : Identifiable, Layer {

/**
* Applies a [ColorTheme] to this component and recursively to all its children (if any).
* @returnThis the [ComponentStyleSet] which the [ColorTheme] was converted to
* @return the [ComponentStyleSet] which the [ColorTheme] was converted to
*/
fun applyColorTheme(colorTheme: ColorTheme): ComponentStyleSet

Expand Down
Expand Up @@ -29,7 +29,7 @@ interface ComponentContainer {
* *Note that* this function is applied recursively until
* it either traverses the whole component tree or finds
* the component to remove.
* @returnThis `true` if change happened, `false` if not
* @return `true` if change happened, `false` if not
*/
fun removeComponent(component: Component): Boolean

Expand Down
Expand Up @@ -36,7 +36,7 @@ interface Container : Component {
* *Note that* this function is applied recursively until
* it either traverses the whole component tree or finds
* the component to remove.
* @returnThis true if a removal happened
* @return true if a removal happened
*/
fun removeComponent(component: Component): Boolean

Expand Down
Expand Up @@ -25,7 +25,7 @@ interface RadioButtonGroup : Component, Scrollable {

/**
* Clears the selected item in this [RadioButtonGroup].
* @returnThis `true` if the selection changed `false` if not
* @return `true` if the selection changed `false` if not
*/
fun clearSelection(): Boolean

Expand Down
Expand Up @@ -17,7 +17,7 @@ interface TextArea : Component, Scrollable {

/**
* Sets the text of this [TextArea].
* @returnThis `true` if the box was changed `false` if the old text was the same as the new
* @return `true` if the box was changed `false` if the old text was the same as the new
*/
fun setText(text: String): Boolean

Expand Down
Expand Up @@ -16,7 +16,7 @@ interface Focusable {
/**
* Gives focus to this [Focusable].
* @param input the [Input] (if any) which triggered the focus change
* @returnThis true if the focus was accepted, false if not
* @return true if the focus was accepted, false if not
*/
fun giveFocus(input: Maybe<Input> = Maybe.empty()): Boolean

Expand Down
Expand Up @@ -34,87 +34,87 @@ interface Scrollable3D {
/**
* Scrolls this [Scrollable3D] with one unit to the right (width axis).
* If the bounds of the virtual space are already reached this method has no effect.
* @returnThis the new visible offset
* @return the new visible offset
*/
fun scrollOneRight(): Position3D

/**
* Scrolls this [Scrollable3D] with one unit to the left (width axis).
* If the bounds of the virtual space are already reached this method has no effect.
* @returnThis the new visible offset
* @return the new visible offset
*/
fun scrollOneLeft(): Position3D

/**
* Scrolls this [Scrollable3D] with one unit up (height axis).
* If the bounds of the virtual space are already reached this method has no effect.
* @returnThis the new visible offset
* @return the new visible offset
*/
fun scrollOneUp(): Position3D

/**
* Scrolls this [Scrollable3D] with one unit down (height axis).
* If the bounds of the virtual space are already reached this method has no effect.
* @returnThis the new visible offset
* @return the new visible offset
*/
fun scrollOneDown(): Position3D

/**
* Scrolls this [Scrollable3D] with one unit forward (depth axis, away from the observer).
* If the bounds of the virtual space are already reached this method has no effect.
* @returnThis the new visible offset
* @return the new visible offset
*/
fun scrollOneForward(): Position3D

/**
* Scrolls this [Scrollable3D] with one unit backward (depth axis, towards the observer).
* If the bounds of the virtual space are already reached this method has no effect.
* @returnThis the new visible offset
* @return the new visible offset
*/
fun scrollOneBackward(): Position3D

/**
* Scrolls this [Scrollable3D] by `width` units to the right (width axis).
* If the bounds of the virtual space are already reached this method has no effect.
* @returnThis the new visible offset
* @return the new visible offset
*/
fun scrollRightBy(x: Int): Position3D


/**
* Scrolls this [Scrollable3D] with `width` units to the left (width axis).
* If the bounds of the virtual space are already reached this method has no effect.
* @returnThis the new visible offset
* @return the new visible offset
*/
fun scrollLeftBy(x: Int): Position3D

/**
* Scrolls this [Scrollable3D] by `height` units up (height axis).
* If the bounds of the virtual space are already reached this method has no effect.
* @returnThis the new visible offset
* @return the new visible offset
*/
fun scrollUpBy(z: Int): Position3D


/**
* Scrolls this [Scrollable3D] with `height` units down (height axis).
* If the bounds of the virtual space are already reached this method has no effect.
* @returnThis the new visible offset
* @return the new visible offset
*/
fun scrollDownBy(z: Int): Position3D

/**
* Scrolls this [Scrollable3D] by `depth` units forward (depth axis).
* If the bounds of the virtual space are already reached this method has no effect.
* @returnThis the new visible offset
* @return the new visible offset
*/
fun scrollForwardBy(y: Int): Position3D


/**
* Scrolls this [Scrollable3D] with `depth` units backward (depth axis).
* If the bounds of the virtual space are already reached this method has no effect.
* @returnThis the new visible offset
* @return the new visible offset
*/
fun scrollBackwardBy(y: Int): Position3D
}

0 comments on commit 6614e77

Please sign in to comment.