set_callback Subroutine

private subroutine set_callback(self, callback)

Compute the segments each frame with callback (see the module documentation; it must stay alive while set).

Type Bound

CustomLineSegments

Arguments

Type IntentOptional Attributes Name
class(CustomLineSegments), intent(inout) :: self
class(LineSegmentsCallback), intent(in), target :: callback

the callback (not owned)


Source Code

    subroutine set_callback(self, callback)
        class(CustomLineSegments), intent(inout) :: self
        class(LineSegmentsCallback), intent(in), target :: callback !! the callback (not owned)
        self%callback => callback
    end subroutine set_callback