devctrl.resources.icon.ThemedDeviceIconEngine#
- class ThemedDeviceIconEngine(device_class: type)[source]#
Bases:
ThemedIconEngineMethods
- class IconEngineHook(*values)#
Bases:
Enum- IsNullHook = 3#
- ScaledPixmapHook = 4#
- classmethod __contains__(value)#
Return True if
valueis incls.valueis inclsif: 1)valueis a member ofcls, or 2)valueis the value of one of thecls’s members. 3)valueis a pseudo-member (flags)
- classmethod __iter__()#
Return members in definition order.
- classmethod __len__()#
Return the number of members (no aliases)
- __members__ = mappingproxy({'IsNullHook': <IconEngineHook.IsNullHook: 3>, 'ScaledPixmapHook': <IconEngineHook.ScaledPixmapHook: 4>})#
- __module__ = 'PyQt6.QtGui'#
- __name__ = 'IconEngineHook'#
- __qualname__ = 'QIconEngine.IconEngineHook'#
- __sip__ = <capsule object NULL>#
- classmethod _missing_(object, /)#
- class ScaledPixmapArgument#
- class ScaledPixmapArgument(a0: QIconEngine.ScaledPixmapArgument)
Bases:
simplewrapper- __annotations__ = {}#
- __dict__ = mappingproxy({'__module__': 'PyQt6.QtGui', '__weakref__': <attribute '__weakref__' of 'ScaledPixmapArgument' objects>, '__doc__': 'QIconEngine.ScaledPixmapArgument()\nQIconEngine.ScaledPixmapArgument(a0: QIconEngine.ScaledPixmapArgument)', 'mode': <sip.variabledescriptor object>, 'pixmap': <sip.variabledescriptor object>, 'scale': <sip.variabledescriptor object>, 'size': <sip.variabledescriptor object>, 'state': <sip.variabledescriptor object>, '__annotations__': {}})#
- __init__(*args, **kwargs)#
- __module__ = 'PyQt6.QtGui'#
- classmethod __new__(*args, **kwargs)#
- __weakref__#
list of weak references to the object
- mode#
- pixmap#
- scale#
- size#
- state#
- __annotations__ = {}#
- __dict__ = mappingproxy({'__module__': 'devctrl.resources.icon', '__firstlineno__': 382, '__doc__': 'Themed icon engine for device class icons.\n\nThe icon path is resolved by walking the device class hierarchy\n(:func:`find_device_icon_path`).\n\n:param device_class: The device class to find the icon for.\n', '__init__': <function ThemedDeviceIconEngine.__init__>, '_find_path': <function ThemedDeviceIconEngine._find_path>, '__static_attributes__': ('device_class',), '__annotations__': {}})#
- __firstlineno__ = 382#
- __module__ = 'devctrl.resources.icon'#
- classmethod __new__(*args, **kwargs)#
- __static_attributes__ = ('device_class',)#
- __weakref__#
list of weak references to the object
- _get_icon() QIcon#
- _icons: dict[bool, QIcon]#
- actualSize(self, size: QSize, mode: QIcon.Mode, state: QIcon.State) QSize#
- classmethod addFile(self, fileName: str | None, size: QSize, mode: QIcon.Mode, state: QIcon.State)#
- classmethod addPixmap(self, pixmap: QPixmap, mode: QIcon.Mode, state: QIcon.State)#
- availableSizes(self, mode: QIcon.Mode = QIcon.Normal, state: QIcon.State = QIcon.Off) list[QSize]#
- clone(self) QIconEngine | None#
- classmethod iconName(self) str#
- isNull(self) bool#
- classmethod key(self) str#
- paint(self, painter: QPainter | None, rect: QRect, mode: QIcon.Mode, state: QIcon.State)#
- pixmap(self, size: QSize, mode: QIcon.Mode, state: QIcon.State) QPixmap#
- classmethod read(self, in_: QDataStream) bool#
- classmethod scaledPixmap(self, size: QSize, mode: QIcon.Mode, state: QIcon.State, scale: float) QPixmap#
- classmethod write(self, out: QDataStream) bool#