Beispiel #1
0
 // Get the background information for use in graphics object clears.
 internal void GetBackgroundInfo(out Color bg, out Pixmap pixmap,
                                 out int tx, out int ty)
 {
     if (background.Index == StandardColor.Inherit)
     {
         InputOutputWidget parent =
             (Parent as InputOutputWidget);
         if (parent != null)
         {
             parent.GetBackgroundInfo
                 (out bg, out pixmap, out tx, out ty);
             tx -= x;
             ty -= y;
         }
         else
         {
             bg     = new Color(StandardColor.Background);
             pixmap = null;
             tx     = 0;
             ty     = 0;
         }
     }
     else if (background.Index == StandardColor.Pixmap)
     {
         bg     = background;
         pixmap = backgroundPixmap;
         tx     = 0;
         ty     = 0;
     }
     else
     {
         bg     = background;
         pixmap = null;
         tx     = 0;
         ty     = 0;
     }
 }