Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
pip._vendor.rich._win32_console.WindowsCoordinates Class Reference
Inheritance diagram for pip._vendor.rich._win32_console.WindowsCoordinates:
Inheritance graph
[legend]
Collaboration diagram for pip._vendor.rich._win32_console.WindowsCoordinates:
Collaboration graph
[legend]

Public Member Functions

COORD from_param (cls, "WindowsCoordinates" value)
 

Static Public Attributes

int row
 
int col
 

Detailed Description

Coordinates in the Windows Console API are (y, x), not (x, y).
This class is intended to prevent that confusion.
Rows and columns are indexed from 0.
This class can be used in place of wintypes._COORD in arguments and argtypes.

Member Function Documentation

◆ from_param()

COORD pip._vendor.rich._win32_console.WindowsCoordinates.from_param (   cls,
"WindowsCoordinates"  value 
)
Converts a WindowsCoordinates into a wintypes _COORD structure.
This classmethod is internally called by ctypes to perform the conversion.

Args:
    value (WindowsCoordinates): The input coordinates to convert.

Returns:
    wintypes._COORD: The converted coordinates struct.

The documentation for this class was generated from the following file: