powcshell.desktopwallpaper module

目次

powcshell.desktopwallpaper module#

デスクトップの壁紙。

主なクラスは DesktopWallpaper です。

class powcshell.desktopwallpaper.DesktopSlideshowDirection(*values)#

ベースクラス: IntEnum

DESKTOP_SLIDESHOW_DIRECTION

BACKWARD = 1#
FORWARD = 0#
class powcshell.desktopwallpaper.DesktopSlideshowOption(*values)#

ベースクラス: IntFlag

DESKTOP_SLIDESHOW_OPTIONS

SHUFFLE_IMAGES = 1#
class powcshell.desktopwallpaper.DesktopSlideshowState(*values)#

ベースクラス: IntFlag

DESKTOP_SLIDESHOW_STATE

DISABLED_BY_REMOTE_SESSION = 4#
ENABLED = 1#
SLIDESHOW = 2#
class powcshell.desktopwallpaper.DesktopWallpaper(o: Any)#

ベースクラス: object

デスクトップ壁紙の設定。IDesktopWallpaperのラッパーです。

サンプル

>>> from powcshell.desktopwallpaper import DesktopWallpaper
>>>
>>> wallpaper = DesktopWallpaper.create()
>>>
>>> print(
>>>     f"""
>>>     壁紙:{wallpaper.get_wallpaper(0)}
>>>     表示位置:{wallpaper.position}
>>>     背景色:{wallpaper.bgcolor}
>>>     モニタデバイスパス:{tuple(wallpaper.monitor_device_paths)}
>>>     """
>>> )
class SlideshowOptions(options: int | powcshell.desktopwallpaper.DesktopSlideshowState, slideshow_tick: int)#

ベースクラス: object

options: int | DesktopSlideshowState#
slideshow_tick: int#
advance_slideshow_nothrow(monitor_id_or_index: int | str, direction: DesktopSlideshowDirection) ComResult[None]#
property bgcolor: int#
property bgcolor_nothrow: ComResult[int]#
static create() DesktopWallpaper#
get_monitordevicepathat(monitor_index: int) str#
get_monitordevicepathat_nothrow(monitor_index: int) ComResult[str]#
get_monitorrect(monitor_id_or_index: int | str) RECT#
get_monitorrect_nothrow(monitor_id_or_index: int | str) ComResult[RECT]#
get_wallpaper(monitor_id_or_index: str | int) str#
get_wallpaper_nothrow(monitor_id_or_index: str | int) ComResult[str]#
property monitordevicepathcount: int#
property monitordevicepathcount_nothrow: ComResult[int]#
property monitordevicepaths: Iterator[str]#
property monitorrects: Iterator[RECT]#
property position: DesktopWallpaperPosition#
property position_nothrow: ComResult[DesktopWallpaperPosition]#
set_bgcolor_nothrow(value: int) ComResult[None]#
set_enable(value: bool) None#
set_enable_nothrow(value: bool) ComResult[None]#
set_position_nothrow(value: DesktopWallpaperPosition | int) ComResult[None]#
set_slideshow_nothrow(value: ShellItemArray) ComResult[None]#
set_slideshowoptions_nothrow(value: SlideshowOptions) ComResult[None]#
set_wallpaper(monitor_id_or_index: str | int, wallpaper: str) None#
set_wallpaper_nothrow(monitor_id_or_index: str | int, wallpaper: str) ComResult[None]#
property slideshow: ShellItemArray#
property slideshow_nothrow: ComResult[ShellItemArray]#
property slideshowoptions: SlideshowOptions#
property slideshowoptions_nothrow: ComResult[SlideshowOptions]#
property status: DesktopSlideshowState#
property status_nothrow: ComResult[DesktopSlideshowState]#
property wallpapers: Iterator[str]#
property wrapped_obj: c_void_p#
class powcshell.desktopwallpaper.DesktopWallpaperPosition(*values)#

ベースクラス: IntEnum

DESKTOP_WALLPAPER_POSITION

CENTER = 0#
FILL = 4#
FIT = 3#
SPAN = 5#
STRETCH = 2#
TILE = 1#
class powcshell.desktopwallpaper.IDesktopWallpaper#

ベースクラス: IUnknown

AdvanceSlideshow = <COM method offset 16: WinFunctionType>#
Enable = <COM method offset 18: WinFunctionType>#
GetBackgroundColor = <COM method offset 9: WinFunctionType>#
GetMonitorDevicePathAt = <COM method offset 5: WinFunctionType>#
GetMonitorDevicePathCount = <COM method offset 6: WinFunctionType>#
GetMonitorRECT = <COM method offset 7: WinFunctionType>#
GetPosition = <COM method offset 11: WinFunctionType>#
GetSlideshow = <COM method offset 13: WinFunctionType>#
GetSlideshowOptions = <COM method offset 15: WinFunctionType>#
GetStatus = <COM method offset 17: WinFunctionType>#
GetWallpaper = <COM method offset 4: WinFunctionType>#
SetBackgroundColor = <COM method offset 8: WinFunctionType>#
SetPosition = <COM method offset 10: WinFunctionType>#
SetSlideshow = <COM method offset 12: WinFunctionType>#
SetSlideshowOptions = <COM method offset 14: WinFunctionType>#
SetWallpaper = <COM method offset 3: WinFunctionType>#