Logo Search packages:      
Sourcecode: labyrinth version File versions  Download package

def src::MMapArea::MMapArea::invalidate (   self,
  transformed_area = None 
)

Helper function to invalidate the entire screen, forcing a redraw

Definition at line 680 of file MMapArea.py.

00680                                                     :
            '''Helper function to invalidate the entire screen, forcing a redraw'''
            rect = None
            if not transformed_area:
                  alloc = self.get_allocation ()
                  rect = gtk.gdk.Rectangle (0, 0, alloc.width, alloc.height)
            else:
                  ul = self.untransform_coords(transformed_area[0], transformed_area[1])
                  lr = self.untransform_coords(transformed_area[2], transformed_area[3])
                  rect = gtk.gdk.Rectangle (int(ul[0]), int(ul[1]), int(lr[0]-ul[0]), int(lr[1]-ul[1]))
            self.window.invalidate_rect (rect, True)

      def expose (self, widget, event):


Generated by  Doxygen 1.6.0   Back to index