# 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 QTextLine(__PyQt6_sip.simplewrapper):
    """
    QTextLine()
    QTextLine(a0: QTextLine)
    """
    def ascent(self): # real signature unknown; restored from __doc__
        """ ascent(self) -> float """
        return 0.0

    def cursorToX(self, cursorPos, edge=None): # real signature unknown; restored from __doc__
        """ cursorToX(self, cursorPos: int, edge: QTextLine.Edge = QTextLine.Leading) -> Tuple[float, int] """
        pass

    def descent(self): # real signature unknown; restored from __doc__
        """ descent(self) -> float """
        return 0.0

    def draw(self, painter, position): # real signature unknown; restored from __doc__
        """ draw(self, painter: QPainter, position: QPointF) """
        pass

    def glyphRuns(self, from_=-1, length=-1): # real signature unknown; restored from __doc__
        """ glyphRuns(self, from_: int = -1, length: int = -1) -> List[QGlyphRun] """
        return []

    def height(self): # real signature unknown; restored from __doc__
        """ height(self) -> float """
        return 0.0

    def horizontalAdvance(self): # real signature unknown; restored from __doc__
        """ horizontalAdvance(self) -> float """
        return 0.0

    def isValid(self): # real signature unknown; restored from __doc__
        """ isValid(self) -> bool """
        return False

    def leading(self): # real signature unknown; restored from __doc__
        """ leading(self) -> float """
        return 0.0

    def leadingIncluded(self): # real signature unknown; restored from __doc__
        """ leadingIncluded(self) -> bool """
        return False

    def lineNumber(self): # real signature unknown; restored from __doc__
        """ lineNumber(self) -> int """
        return 0

    def naturalTextRect(self): # real signature unknown; restored from __doc__
        """ naturalTextRect(self) -> QRectF """
        pass

    def naturalTextWidth(self): # real signature unknown; restored from __doc__
        """ naturalTextWidth(self) -> float """
        return 0.0

    def position(self): # real signature unknown; restored from __doc__
        """ position(self) -> QPointF """
        pass

    def rect(self): # real signature unknown; restored from __doc__
        """ rect(self) -> QRectF """
        pass

    def setLeadingIncluded(self, included): # real signature unknown; restored from __doc__
        """ setLeadingIncluded(self, included: bool) """
        pass

    def setLineWidth(self, width): # real signature unknown; restored from __doc__
        """ setLineWidth(self, width: float) """
        pass

    def setNumColumns(self, columns, alignmentWidth=None): # real signature unknown; restored from __doc__ with multiple overloads
        """
        setNumColumns(self, columns: int)
        setNumColumns(self, columns: int, alignmentWidth: float)
        """
        pass

    def setPosition(self, pos): # real signature unknown; restored from __doc__
        """ setPosition(self, pos: QPointF) """
        pass

    def textLength(self): # real signature unknown; restored from __doc__
        """ textLength(self) -> int """
        return 0

    def textStart(self): # real signature unknown; restored from __doc__
        """ textStart(self) -> int """
        return 0

    def width(self): # real signature unknown; restored from __doc__
        """ width(self) -> float """
        return 0.0

    def x(self): # real signature unknown; restored from __doc__
        """ x(self) -> float """
        return 0.0

    def xToCursor(self, x, edge=None): # real signature unknown; restored from __doc__
        """ xToCursor(self, x: float, edge: QTextLine.CursorPosition = QTextLine.CursorBetweenCharacters) -> int """
        return 0

    def y(self): # real signature unknown; restored from __doc__
        """ y(self) -> float """
        return 0.0

    def __init__(self, a0=None): # real signature unknown; restored from __doc__ with multiple overloads
        pass

    __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """list of weak references to the object (if defined)"""


    CursorPosition = None # (!) real value is "<enum 'CursorPosition'>"
    Edge = None # (!) real value is "<enum 'Edge'>"


