Whether the mouse may grab the handle (default true).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(DragHandle), | intent(inout) | :: | self | |||
| logical, | intent(in) | :: | draggable |
true: the mouse may grab it |
subroutine set_draggable(self, draggable) class(DragHandle), intent(inout) :: self logical, intent(in) :: draggable !! true: the mouse may grab it self%draggable_ = draggable if (.not. draggable .and. self%hovered_) call self%set_hovered(.false.) end subroutine set_draggable