mirror of
https://github.com/Drezil/dear-imgui.hs.git
synced 2025-07-07 13:35:50 +02:00
Wrap ImGui::Begin/EndTooltip()
This commit is contained in:
@ -80,6 +80,10 @@ module DearImGui
|
||||
, endMenu
|
||||
, menuItem
|
||||
|
||||
-- * Tooltips
|
||||
, beginTooltip
|
||||
, endTooltip
|
||||
|
||||
-- * Popups/Modals
|
||||
, beginPopup
|
||||
, beginPopupModal
|
||||
@ -493,6 +497,21 @@ menuItem label = liftIO do
|
||||
(1 ==) <$> [C.exp| bool { MenuItem($(char* labelPtr)) } |]
|
||||
|
||||
|
||||
-- | Begin/append a tooltip window to create full-featured tooltip (with any
|
||||
-- kind of items).
|
||||
--
|
||||
-- Wraps @ImGui::BeginTooltip()@
|
||||
beginTooltip :: MonadIO m => m ()
|
||||
beginTooltip = liftIO do
|
||||
[C.exp| void { BeginTooltip() } |]
|
||||
|
||||
|
||||
-- | Wraps @ImGui::EndTooltip()@
|
||||
endTooltip :: MonadIO m => m ()
|
||||
endTooltip = liftIO do
|
||||
[C.exp| void { EndTooltip() } |]
|
||||
|
||||
|
||||
-- | Returns 'True' if the popup is open, and you can start outputting to it.
|
||||
--
|
||||
-- Wraps @ImGui::BeginPopup()@
|
||||
|
Reference in New Issue
Block a user