peng3d/gui/layered.py
def getPos(self):
        """
        Returns the absolute position and size of the layer.
        
        This method is intended for use in vertex position calculation, as the border and offset have already been applied.
        
        The returned value is a 4-tuple of ``(sx,sy,ex,ey)``\ .
        The two values starting with an s are the "start" position, or the lower-left corner.
        The second pair of values signify the "end" position, or upper-right corner.
        """
        # Returns sx,sy,ex,ey
        # sx,sy are bottom-left/lowest
        # ex,ey are top-right/highest
        sx,sy = self.widget.pos[0]+self.border[0]+self.offset[0],                       self.widget.pos[1]+self.border[1]+self.offset[1]
        ex,ey = self.widget.pos[0]+self.widget.size[0]-self.border[0]+self.offset[0],   self.widget.pos[1]+self.widget.size[1]-self.border[1]+self.offset[1]
        return sx,sy,ex,ey
def getPos(self):
        """
        Returns the absolute position and size of the layer.
        
        This method is intended for use in vertex position calculation, as the border and offset have already been applied.
        
        The returned value is a 4-tuple of ``(sx,sy,ex,ey)``\ .
        The two values starting with an s are the "start" position, or the lower-left corner.
        The second pair of values signify the "end" position, or upper-right corner.
        """
        # Returns sx,sy,ex,ey
        # sx,sy are bottom-left/lowest
        # ex,ey are top-right/highest
        sx,sy = self.widget.pos[0]+self.border[0]+self.offset[0],                       self.widget.pos[1]+self.border[1]+self.offset[1]
        ex,ey = self.widget.pos[0]+self.widget.size[0]-self.border[0]+self.offset[0],   self.widget.pos[1]+self.widget.size[1]-self.border[1]+self.offset[1]
        return sx,sy,ex,ey
def getPos ( self ) : # Returns sx,sy,ex,ey # sx,sy are bottom-left/lowest # ex,ey are top-right/highest sx , sy = self . widget . pos [ 0 ] + self . border [ 0 ] + self . offset [ 0 ] , self . widget . pos [ 1 ] + self . border [ 1 ] + self . offset [ 1 ] ex , ey = self . widget . pos [ 0 ] + self . widget . size [ 0 ] - self . border [ 0 ] + self . offset [ 0 ] , self . widget . pos [ 1 ] + self . widget . size [ 1 ] - self . border [ 1 ] + self . offset [ 1 ] return sx , sy , ex , ey
Returns the absolute position and size of the layer.
        
        This method is intended for use in vertex position calculation, as the border and offset have already been applied.
        
        The returned value is a 4-tuple of ``(sx,sy,ex,ey)``\ .
        The two values starting with an s are the "start" position, or the lower-left corner.
        The second pair of values signify the "end" position, or upper-right corner.
Returns the absolute position and size of the layer . This method is intended for use in vertex position calculation as the border and offset have already been applied . The returned value is a 4 - tuple of ( sx sy ex ey ) \ . The two values starting with an s are the start position or the lower - left corner . The second pair of values signify the end position or upper - right corner .