# encoding: utf-8
# module PyQt6.QtGui
# from C:\Users\xukai\Downloads\发票2\venv\Lib\site-packages\PyQt6\QtGui.pyd
# by generator 1.147
# no doc

# imports
import PyQt6.QtCore as __PyQt6_QtCore
import PyQt6.sip as __PyQt6_sip


class QTextFormat(__PyQt6_sip.simplewrapper):
    """
    QTextFormat()
    QTextFormat(type: int)
    QTextFormat(rhs: QTextFormat)
    QTextFormat(variant: Any)
    """
    def background(self): # real signature unknown; restored from __doc__
        """ background(self) -> QBrush """
        return QBrush

    def boolProperty(self, propertyId): # real signature unknown; restored from __doc__
        """ boolProperty(self, propertyId: int) -> bool """
        return False

    def brushProperty(self, propertyId): # real signature unknown; restored from __doc__
        """ brushProperty(self, propertyId: int) -> QBrush """
        return QBrush

    def clearBackground(self): # real signature unknown; restored from __doc__
        """ clearBackground(self) """
        pass

    def clearForeground(self): # real signature unknown; restored from __doc__
        """ clearForeground(self) """
        pass

    def clearProperty(self, propertyId): # real signature unknown; restored from __doc__
        """ clearProperty(self, propertyId: int) """
        pass

    def colorProperty(self, propertyId): # real signature unknown; restored from __doc__
        """ colorProperty(self, propertyId: int) -> QColor """
        return QColor

    def doubleProperty(self, propertyId): # real signature unknown; restored from __doc__
        """ doubleProperty(self, propertyId: int) -> float """
        return 0.0

    def foreground(self): # real signature unknown; restored from __doc__
        """ foreground(self) -> QBrush """
        return QBrush

    def hasProperty(self, propertyId): # real signature unknown; restored from __doc__
        """ hasProperty(self, propertyId: int) -> bool """
        return False

    def intProperty(self, propertyId): # real signature unknown; restored from __doc__
        """ intProperty(self, propertyId: int) -> int """
        return 0

    def isBlockFormat(self): # real signature unknown; restored from __doc__
        """ isBlockFormat(self) -> bool """
        return False

    def isCharFormat(self): # real signature unknown; restored from __doc__
        """ isCharFormat(self) -> bool """
        return False

    def isEmpty(self): # real signature unknown; restored from __doc__
        """ isEmpty(self) -> bool """
        return False

    def isFrameFormat(self): # real signature unknown; restored from __doc__
        """ isFrameFormat(self) -> bool """
        return False

    def isImageFormat(self): # real signature unknown; restored from __doc__
        """ isImageFormat(self) -> bool """
        return False

    def isListFormat(self): # real signature unknown; restored from __doc__
        """ isListFormat(self) -> bool """
        return False

    def isTableCellFormat(self): # real signature unknown; restored from __doc__
        """ isTableCellFormat(self) -> bool """
        return False

    def isTableFormat(self): # real signature unknown; restored from __doc__
        """ isTableFormat(self) -> bool """
        return False

    def isValid(self): # real signature unknown; restored from __doc__
        """ isValid(self) -> bool """
        return False

    def layoutDirection(self): # real signature unknown; restored from __doc__
        """ layoutDirection(self) -> Qt.LayoutDirection """
        pass

    def lengthProperty(self, propertyId): # real signature unknown; restored from __doc__
        """ lengthProperty(self, propertyId: int) -> QTextLength """
        return QTextLength

    def lengthVectorProperty(self, propertyId): # real signature unknown; restored from __doc__
        """ lengthVectorProperty(self, propertyId: int) -> List[QTextLength] """
        return []

    def merge(self, other): # real signature unknown; restored from __doc__
        """ merge(self, other: QTextFormat) """
        pass

    def objectIndex(self): # real signature unknown; restored from __doc__
        """ objectIndex(self) -> int """
        return 0

    def objectType(self): # real signature unknown; restored from __doc__
        """ objectType(self) -> int """
        return 0

    def penProperty(self, propertyId): # real signature unknown; restored from __doc__
        """ penProperty(self, propertyId: int) -> QPen """
        return QPen

    def properties(self): # real signature unknown; restored from __doc__
        """ properties(self) -> Dict[int, Any] """
        return {}

    def property(self, propertyId): # real signature unknown; restored from __doc__
        """ property(self, propertyId: int) -> Any """
        pass

    def propertyCount(self): # real signature unknown; restored from __doc__
        """ propertyCount(self) -> int """
        return 0

    def setBackground(self, brush, QBrush=None, QColor=None, Qt_GlobalColor=None, p_int=None, QGradient=None): # real signature unknown; restored from __doc__
        """ setBackground(self, brush: Union[QBrush, QColor, Qt.GlobalColor, int, QGradient]) """
        pass

    def setForeground(self, brush, QBrush=None, QColor=None, Qt_GlobalColor=None, p_int=None, QGradient=None): # real signature unknown; restored from __doc__
        """ setForeground(self, brush: Union[QBrush, QColor, Qt.GlobalColor, int, QGradient]) """
        pass

    def setLayoutDirection(self, direction): # real signature unknown; restored from __doc__
        """ setLayoutDirection(self, direction: Qt.LayoutDirection) """
        pass

    def setObjectIndex(self, p_object): # real signature unknown; restored from __doc__
        """ setObjectIndex(self, object: int) """
        pass

    def setObjectType(self, atype): # real signature unknown; restored from __doc__
        """ setObjectType(self, atype: int) """
        pass

    def setProperty(self, propertyId, *__args): # real signature unknown; restored from __doc__ with multiple overloads
        """
        setProperty(self, propertyId: int, lengths: Iterable[QTextLength])
        setProperty(self, propertyId: int, value: Any)
        """
        pass

    def stringProperty(self, propertyId): # real signature unknown; restored from __doc__
        """ stringProperty(self, propertyId: int) -> str """
        return ""

    def swap(self, other): # real signature unknown; restored from __doc__
        """ swap(self, other: QTextFormat) """
        pass

    def toBlockFormat(self): # real signature unknown; restored from __doc__
        """ toBlockFormat(self) -> QTextBlockFormat """
        return QTextBlockFormat

    def toCharFormat(self): # real signature unknown; restored from __doc__
        """ toCharFormat(self) -> QTextCharFormat """
        return QTextCharFormat

    def toFrameFormat(self): # real signature unknown; restored from __doc__
        """ toFrameFormat(self) -> QTextFrameFormat """
        return QTextFrameFormat

    def toImageFormat(self): # real signature unknown; restored from __doc__
        """ toImageFormat(self) -> QTextImageFormat """
        return QTextImageFormat

    def toListFormat(self): # real signature unknown; restored from __doc__
        """ toListFormat(self) -> QTextListFormat """
        return QTextListFormat

    def toTableCellFormat(self): # real signature unknown; restored from __doc__
        """ toTableCellFormat(self) -> QTextTableCellFormat """
        return QTextTableCellFormat

    def toTableFormat(self): # real signature unknown; restored from __doc__
        """ toTableFormat(self) -> QTextTableFormat """
        return QTextTableFormat

    def type(self): # real signature unknown; restored from __doc__
        """ type(self) -> int """
        return 0

    def __eq__(self, *args, **kwargs): # real signature unknown
        """ Return self==value. """
        pass

    def __ge__(self, *args, **kwargs): # real signature unknown
        """ Return self>=value. """
        pass

    def __gt__(self, *args, **kwargs): # real signature unknown
        """ Return self>value. """
        pass

    def __init__(self, *__args): # real signature unknown; restored from __doc__ with multiple overloads
        pass

    def __le__(self, *args, **kwargs): # real signature unknown
        """ Return self<=value. """
        pass

    def __lt__(self, *args, **kwargs): # real signature unknown
        """ Return self<value. """
        pass

    def __ne__(self, *args, **kwargs): # real signature unknown
        """ Return self!=value. """
        pass

    __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """list of weak references to the object (if defined)"""


    FormatType = None # (!) real value is "<enum 'FormatType'>"
    ObjectTypes = None # (!) real value is "<enum 'ObjectTypes'>"
    PageBreakFlag = None # (!) real value is "<flag 'PageBreakFlag'>"
    Property = None # (!) real value is "<enum 'Property'>"
    __hash__ = None


