set_position Subroutine

private subroutine set_position(self, position)

Set where the text is.

Type Bound

HUDText

Arguments

Type IntentOptional Attributes Name
class(HUDText), intent(inout) :: self
real(kind=wp), intent(in) :: position(2)

[x, y] (0 to 1 across the window, y up)


Source Code

    subroutine set_position(self, position)
        class(HUDText), intent(inout) :: self
        real(wp), intent(in) :: position(2)     !! [x, y] (0 to 1 across the window, y up)
        self%position_ = position
        self%revision_ = self%revision_ + 1
    end subroutine set_position