remove_hud_text Subroutine

private subroutine remove_hud_text(self, h)

Stop showing h in the window.

Type Bound

WindowProxy

Arguments

Type IntentOptional Attributes Name
class(WindowProxy), intent(inout) :: self
type(HUDText), intent(in), target :: h

the text to stop showing


Calls

proc~~remove_hud_text~~CallsGraph proc~remove_hud_text WindowProxy%remove_hud_text interface~vkf_node_delete vkf_node_delete proc~remove_hud_text->interface~vkf_node_delete interface~vkf_viewer_hud_remove vkf_viewer_hud_remove proc~remove_hud_text->interface~vkf_viewer_hud_remove

Source Code

    subroutine remove_hud_text(self, h)
        class(WindowProxy), intent(inout) :: self
        type(HUDText), intent(in), target :: h              !! the text to stop showing
        integer(c_int) :: status
        integer :: k
        do k = 1, self%n_huds
            if (.not. associated(self%huds(k)%p, h)) cycle
            if (c_associated(self%huds(k)%node)) then
                status = vkf_viewer_hud_remove(self%viewer_, self%huds(k)%node)    ! (not shown yet: -1)
                call vkf_node_delete(self%huds(k)%node)
            end if
            self%huds(k:self%n_huds-1) = self%huds(k+1:self%n_huds)
            self%n_huds = self%n_huds - 1
            return
        end do
    end subroutine remove_hud_text