# 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 QAbstractTextDocumentLayout(__PyQt6_QtCore.QObject):
    """ QAbstractTextDocumentLayout(doc: QTextDocument) """
    def anchorAt(self, pos): # real signature unknown; restored from __doc__
        """ anchorAt(self, pos: QPointF) -> str """
        return ""

    def blockBoundingRect(self, block): # real signature unknown; restored from __doc__
        """ blockBoundingRect(self, block: QTextBlock) -> QRectF """
        pass

    def blockWithMarkerAt(self, pos): # real signature unknown; restored from __doc__
        """ blockWithMarkerAt(self, pos: QPointF) -> QTextBlock """
        return QTextBlock

    def childEvent(self, *args, **kwargs): # real signature unknown
        pass

    def connectNotify(self, *args, **kwargs): # real signature unknown
        pass

    def customEvent(self, *args, **kwargs): # real signature unknown
        pass

    def disconnectNotify(self, *args, **kwargs): # real signature unknown
        pass

    def document(self): # real signature unknown; restored from __doc__
        """ document(self) -> QTextDocument """
        return QTextDocument

    def documentChanged(self, from_, charsRemoved, charsAdded): # real signature unknown; restored from __doc__
        """ documentChanged(self, from_: int, charsRemoved: int, charsAdded: int) """
        pass

    def documentSize(self): # real signature unknown; restored from __doc__
        """ documentSize(self) -> QSizeF """
        pass

    def documentSizeChanged(self, *args, **kwargs): # real signature unknown
        """
        pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
        
        types is normally a sequence of individual types.  Each type is either a
        type object or a string that is the name of a C++ type.  Alternatively
        each type could itself be a sequence of types each describing a different
        overloaded signal.
        name is the optional C++ name of the signal.  If it is not specified then
        the name of the class attribute that is bound to the signal is used.
        revision is the optional revision of the signal that is exported to QML.
        If it is not specified then 0 is used.
        arguments is the optional sequence of the names of the signal's arguments.
        """
        pass

    def draw(self, painter, context): # real signature unknown; restored from __doc__
        """ draw(self, painter: QPainter, context: QAbstractTextDocumentLayout.PaintContext) """
        pass

    def drawInlineObject(self, painter, rect, p_object, posInDocument, format): # real signature unknown; restored from __doc__
        """ drawInlineObject(self, painter: QPainter, rect: QRectF, object: QTextInlineObject, posInDocument: int, format: QTextFormat) """
        pass

    def format(self, pos): # real signature unknown; restored from __doc__
        """ format(self, pos: int) -> QTextCharFormat """
        return QTextCharFormat

    def formatAt(self, pos): # real signature unknown; restored from __doc__
        """ formatAt(self, pos: QPointF) -> QTextFormat """
        return QTextFormat

    def frameBoundingRect(self, frame): # real signature unknown; restored from __doc__
        """ frameBoundingRect(self, frame: QTextFrame) -> QRectF """
        pass

    def handlerForObject(self, objectType): # real signature unknown; restored from __doc__
        """ handlerForObject(self, objectType: int) -> QTextObjectInterface """
        return QTextObjectInterface

    def hitTest(self, point, accuracy): # real signature unknown; restored from __doc__
        """ hitTest(self, point: QPointF, accuracy: Qt.HitTestAccuracy) -> int """
        return 0

    def imageAt(self, pos): # real signature unknown; restored from __doc__
        """ imageAt(self, pos: QPointF) -> str """
        return ""

    def isSignalConnected(self, *args, **kwargs): # real signature unknown
        pass

    def pageCount(self): # real signature unknown; restored from __doc__
        """ pageCount(self) -> int """
        return 0

    def pageCountChanged(self, *args, **kwargs): # real signature unknown
        """
        pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
        
        types is normally a sequence of individual types.  Each type is either a
        type object or a string that is the name of a C++ type.  Alternatively
        each type could itself be a sequence of types each describing a different
        overloaded signal.
        name is the optional C++ name of the signal.  If it is not specified then
        the name of the class attribute that is bound to the signal is used.
        revision is the optional revision of the signal that is exported to QML.
        If it is not specified then 0 is used.
        arguments is the optional sequence of the names of the signal's arguments.
        """
        pass

    def paintDevice(self): # real signature unknown; restored from __doc__
        """ paintDevice(self) -> QPaintDevice """
        return QPaintDevice

    def positionInlineObject(self, item, posInDocument, format): # real signature unknown; restored from __doc__
        """ positionInlineObject(self, item: QTextInlineObject, posInDocument: int, format: QTextFormat) """
        pass

    def receivers(self, *args, **kwargs): # real signature unknown
        pass

    def registerHandler(self, objectType, component): # real signature unknown; restored from __doc__
        """ registerHandler(self, objectType: int, component: QObject) """
        pass

    def resizeInlineObject(self, item, posInDocument, format): # real signature unknown; restored from __doc__
        """ resizeInlineObject(self, item: QTextInlineObject, posInDocument: int, format: QTextFormat) """
        pass

    def sender(self, *args, **kwargs): # real signature unknown
        pass

    def senderSignalIndex(self, *args, **kwargs): # real signature unknown
        pass

    def setPaintDevice(self, device): # real signature unknown; restored from __doc__
        """ setPaintDevice(self, device: QPaintDevice) """
        pass

    def timerEvent(self, *args, **kwargs): # real signature unknown
        pass

    def unregisterHandler(self, objectType, component, QObject=None, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__ 
        """ unregisterHandler(self, objectType: int, component: typing.Optional[QObject] = None) """
        pass

    def update(self, *args, **kwargs): # real signature unknown
        """
        pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
        
        types is normally a sequence of individual types.  Each type is either a
        type object or a string that is the name of a C++ type.  Alternatively
        each type could itself be a sequence of types each describing a different
        overloaded signal.
        name is the optional C++ name of the signal.  If it is not specified then
        the name of the class attribute that is bound to the signal is used.
        revision is the optional revision of the signal that is exported to QML.
        If it is not specified then 0 is used.
        arguments is the optional sequence of the names of the signal's arguments.
        """
        pass

    def updateBlock(self, *args, **kwargs): # real signature unknown
        """
        pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
        
        types is normally a sequence of individual types.  Each type is either a
        type object or a string that is the name of a C++ type.  Alternatively
        each type could itself be a sequence of types each describing a different
        overloaded signal.
        name is the optional C++ name of the signal.  If it is not specified then
        the name of the class attribute that is bound to the signal is used.
        revision is the optional revision of the signal that is exported to QML.
        If it is not specified then 0 is used.
        arguments is the optional sequence of the names of the signal's arguments.
        """
        pass

    def __init__(self, doc): # real signature unknown; restored from __doc__
        pass

    PaintContext = None # (!) real value is "<class 'PyQt6.QtGui.QAbstractTextDocumentLayout.PaintContext'>"
    Selection = None # (!) real value is "<class 'PyQt6.QtGui.QAbstractTextDocumentLayout.Selection'>"


