Skip to content

SurfaceMixin

Subclasses

Class Module Description
Surface prettyqt.gui.surface
WindowMixin prettyqt.gui.window

⋔ Inheritance diagram

graph TD
  1473245537744["gui.SurfaceMixin"]
  140713234304496["builtins.object"]
  140713234304496 --> 1473245537744

🛈 DocStrings

Source code in prettyqt\gui\surface.py
class SurfaceMixin:
    def __repr__(self):
        return get_repr(self)

    def get_surface_class(self) -> SurfaceClassStr:
        """Get the current surface class.

        Returns:
            surface class
        """
        return SURFACE_CLASS.inverse[self.surfaceClass()]

    def get_surface_type(self) -> SurfaceTypeStr:
        """Get the current surface type.

        Returns:
            surface type
        """
        return SURFACE_TYPES.inverse[self.surfaceType()]

get_surface_class() -> SurfaceClassStr

Get the current surface class.

Source code in prettyqt\gui\surface.py
def get_surface_class(self) -> SurfaceClassStr:
    """Get the current surface class.

    Returns:
        surface class
    """
    return SURFACE_CLASS.inverse[self.surfaceClass()]

get_surface_type() -> SurfaceTypeStr

Get the current surface type.

Source code in prettyqt\gui\surface.py
def get_surface_type(self) -> SurfaceTypeStr:
    """Get the current surface type.

    Returns:
        surface type
    """
    return SURFACE_TYPES.inverse[self.surfaceType()]