Skip to content
Close

Pico Windows (PW)

 

PW is a window oriented graphic library. It supports multiple overlapping windows and can draw inside them clipping away obscured regions. Drawing is based on graphic contextes which can represent windows, specific areas of windows or bitmaps. Interaction with the application is event based. It is quite fast and has a small memory footprint wich makes it ideal for small embedded systems. It was written to support small B/W graphics LCD screens, but it was designed to support also the colored ones.

Supported drawing primitives:

  • points
  • lines
  • rectangles
  • full rectangles
  • ellipses
  • full ellipses
  • bitmaps
  • bitmap fonts (a BDF font converter is also provided)

 

Supported window manipulation:

  • creating/destroying
  • moving/resizeing
  • repainting
  • showing/hiding
  • bringing to front/back
  • setting focus

 

Supported events:

  • key press event
  • key release event
  • xinput event (when window receives data from some extra input)
  • focus in event (when window receives focus (i.e. will get key events))
  • focus out event (when window loses focus)
  • repaint event (when some part of window needs to be repainted)
     - map event (when window becomes visible)
  • unmap event (when window becomes invisible)
  • reshape event (when window shape is changed)
  • destroy event (when window is about to be destroyed)