The marker's color and size: brighter and larger when hovered, more when dragged.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(TimeHandle), | intent(inout) | :: | self |
subroutine time_show_state(self) class(TimeHandle), intent(inout) :: self real(wp) :: rgba(4), size, light if (.not. c_associated(self%marker)) return rgba = self%color() size = self%size_ light = 0.0_wp if (self%dragged()) then light = 0.6_wp size = 1.4_wp * size else if (self%hovered()) then light = 0.35_wp size = 1.2_wp * size end if rgba(1:3) = rgba(1:3) + light * (1.0_wp - rgba(1:3)) call check_status(marker_set_style(self%marker, real(rgba, c_float), real(size, c_float), self%shape_, & 0.0_c_float)) end subroutine time_show_state