mirror of
https://gitlab.com/sheaf/metabrush.git
synced 2024-12-27 07:44:06 +00:00
26 lines
583 B
Plaintext
26 lines
583 B
Plaintext
|
module MetaBrush.UI.InfoBar
|
||
|
( InfoBar(..), createInfoBar, updateInfoBar )
|
||
|
where
|
||
|
|
||
|
-- gi-gtk
|
||
|
import qualified GI.Gtk as GTK
|
||
|
|
||
|
-- MetaBrush
|
||
|
import MetaBrush.Asset.Colours
|
||
|
( Colours )
|
||
|
import {-# SOURCE #-} MetaBrush.Context
|
||
|
( Variables )
|
||
|
|
||
|
--------------------------------------------------------------------------------
|
||
|
|
||
|
data InfoBar
|
||
|
= InfoBar
|
||
|
{ infoBarArea :: !GTK.Box
|
||
|
, zoomText :: !GTK.Label
|
||
|
, cursorPosText, topLeftPosText, botRightPosText :: !GTK.Label
|
||
|
}
|
||
|
|
||
|
createInfoBar :: Colours -> IO InfoBar
|
||
|
|
||
|
updateInfoBar :: GTK.DrawingArea -> InfoBar -> Variables -> IO ()
|