Go to the first, previous, next, last section, table of contents.

Aspect combinator

Maintaining a proportional relationship between the width and height of a component:


aspect :: Int -> Int -> DisplayHandle -> DisplayHandle
aspect px py dh


main =
 mkDC ["*name: Aspect"]       >>= \ dc ->
  button (text "Buttons are forever") () dc >>= \ (_,dh) ->
 realiseDH dc (aspect 3 4 dh) >>
 return ()

Aspect combinator


Go to the first, previous, next, last section, table of contents.