Generates a new pixmap for the inputed color and style.  If no
        size is provided, then the default 32x32 will be used.
        
        :return     <QPixmap>

def generatePixmap(color, style=Style.Plain, size=None):
        """
        Generates a new pixmap for the inputed color and style.  If no
        size is provided, then the default 32x32 will be used.
        
        :return     <QPixmap>
        """
        if size is None:
            size = QSize(32, 32)
        
        pixmap = QPixmap(size)
        
        # create a plain pixmap
        if style == XColorIcon.Style.Plain:
            pixmap.fill(color)
        
        return pixmap