Work on boundaries for dragging windows

This commit is contained in:
2026-04-06 00:52:09 +01:00
parent ed28af8d11
commit 1f52c4b588
9 changed files with 17 additions and 20 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ import Control.Lens
-- a spScreenOff of 1 is the full length of the screen
-- for eg see fromTopLeft
data ScreenPos = ScreenPos
{ _spScreenOff :: Point2
{ _spScreenOff :: Point2 -- from bottom left
, _spPixelOff :: Point2
}
makeLenses ''ScreenPos
+2 -1
View File
@@ -9,12 +9,13 @@ import Data.IntMap.Strict (IntMap)
import Dodge.Data.CardinalPoint
import Dodge.Data.ScreenPos
import Picture.Data
import Linear
data LDParams = LDP -- List display parameters
{ _ldpPos :: ScreenPos
, _ldpScale :: Float
, _ldpVerticalGap :: Float
, _ldpBorder :: Maybe (Int,Int) -- the Ints give height and width for a border
, _ldpSize :: Maybe (V2 Int)
}
data CursorDisplay