display

package
v0.0.0-...-77ac5d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.

SPDX-License-Identifier: GPL-3.0-or-later

SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.

SPDX-License-Identifier: GPL-3.0-or-later

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Display

type Display interface {
	proxy.Object
	// contains filtered or unexported methods
}

func NewDisplay

func NewDisplay(conn *dbus.Conn) Display

type MockDisplay

type MockDisplay struct {
	MockInterfaceDisplay // interface com.deepin.daemon.Display
	proxy.MockObject
}

type MockInterfaceDisplay

type MockInterfaceDisplay struct {
	mock.Mock
}

func (*MockInterfaceDisplay) ApplyChanges

func (v *MockInterfaceDisplay) ApplyChanges(flags dbus.Flags) error

func (*MockInterfaceDisplay) AssociateTouch

func (v *MockInterfaceDisplay) AssociateTouch(flags dbus.Flags, outputName string, touchSerial string) error

func (*MockInterfaceDisplay) Brightness

func (*MockInterfaceDisplay) CanRotate

func (v *MockInterfaceDisplay) CanRotate(flags dbus.Flags) (bool, error)

func (*MockInterfaceDisplay) CanSetBrightness

func (v *MockInterfaceDisplay) CanSetBrightness(flags dbus.Flags, outputName string) (bool, error)

func (*MockInterfaceDisplay) ChangeBrightness

func (v *MockInterfaceDisplay) ChangeBrightness(flags dbus.Flags, raised bool) error

func (*MockInterfaceDisplay) ColorTemperatureManual

func (v *MockInterfaceDisplay) ColorTemperatureManual() proxy.PropInt32

func (*MockInterfaceDisplay) ColorTemperatureMode

func (v *MockInterfaceDisplay) ColorTemperatureMode() proxy.PropInt32

func (*MockInterfaceDisplay) CurrentCustomId

func (v *MockInterfaceDisplay) CurrentCustomId() proxy.PropString

func (*MockInterfaceDisplay) CustomIdList

func (v *MockInterfaceDisplay) CustomIdList() proxy.PropStringArray

func (*MockInterfaceDisplay) DeleteCustomMode

func (v *MockInterfaceDisplay) DeleteCustomMode(flags dbus.Flags, name string) error

func (*MockInterfaceDisplay) DisplayMode

func (v *MockInterfaceDisplay) DisplayMode() proxy.PropByte

func (*MockInterfaceDisplay) GetBrightness

func (v *MockInterfaceDisplay) GetBrightness(flags dbus.Flags) (map[string]float64, error)

func (*MockInterfaceDisplay) GetBuiltinMonitor

func (v *MockInterfaceDisplay) GetBuiltinMonitor(flags dbus.Flags) (string, dbus.ObjectPath, error)

func (*MockInterfaceDisplay) GetRealDisplayMode

func (v *MockInterfaceDisplay) GetRealDisplayMode(flags dbus.Flags) (uint8, error)

func (*MockInterfaceDisplay) GoApplyChanges

func (v *MockInterfaceDisplay) GoApplyChanges(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfaceDisplay) GoAssociateTouch

func (v *MockInterfaceDisplay) GoAssociateTouch(flags dbus.Flags, ch chan *dbus.Call, outputName string, touchSerial string) *dbus.Call

func (*MockInterfaceDisplay) GoCanRotate

func (v *MockInterfaceDisplay) GoCanRotate(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfaceDisplay) GoCanSetBrightness

func (v *MockInterfaceDisplay) GoCanSetBrightness(flags dbus.Flags, ch chan *dbus.Call, outputName string) *dbus.Call

func (*MockInterfaceDisplay) GoChangeBrightness

func (v *MockInterfaceDisplay) GoChangeBrightness(flags dbus.Flags, ch chan *dbus.Call, raised bool) *dbus.Call

func (*MockInterfaceDisplay) GoDeleteCustomMode

func (v *MockInterfaceDisplay) GoDeleteCustomMode(flags dbus.Flags, ch chan *dbus.Call, name string) *dbus.Call

func (*MockInterfaceDisplay) GoGetBrightness

func (v *MockInterfaceDisplay) GoGetBrightness(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfaceDisplay) GoGetBuiltinMonitor

func (v *MockInterfaceDisplay) GoGetBuiltinMonitor(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfaceDisplay) GoGetRealDisplayMode

func (v *MockInterfaceDisplay) GoGetRealDisplayMode(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfaceDisplay) GoListOutputNames

func (v *MockInterfaceDisplay) GoListOutputNames(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfaceDisplay) GoListOutputsCommonModes

func (v *MockInterfaceDisplay) GoListOutputsCommonModes(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfaceDisplay) GoModifyConfigName

func (v *MockInterfaceDisplay) GoModifyConfigName(flags dbus.Flags, ch chan *dbus.Call, name string, newName string) *dbus.Call

func (*MockInterfaceDisplay) GoRefreshBrightness

func (v *MockInterfaceDisplay) GoRefreshBrightness(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfaceDisplay) GoReset

func (v *MockInterfaceDisplay) GoReset(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfaceDisplay) GoResetChanges

func (v *MockInterfaceDisplay) GoResetChanges(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfaceDisplay) GoSave

func (v *MockInterfaceDisplay) GoSave(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfaceDisplay) GoSetAndSaveBrightness

func (v *MockInterfaceDisplay) GoSetAndSaveBrightness(flags dbus.Flags, ch chan *dbus.Call, outputName string, value float64) *dbus.Call

func (*MockInterfaceDisplay) GoSetBrightness

func (v *MockInterfaceDisplay) GoSetBrightness(flags dbus.Flags, ch chan *dbus.Call, outputName string, value float64) *dbus.Call

func (*MockInterfaceDisplay) GoSetColorTemperature

func (v *MockInterfaceDisplay) GoSetColorTemperature(flags dbus.Flags, ch chan *dbus.Call, value int32) *dbus.Call

func (*MockInterfaceDisplay) GoSetMethodAdjustCCT

func (v *MockInterfaceDisplay) GoSetMethodAdjustCCT(flags dbus.Flags, ch chan *dbus.Call, adjustMethod int32) *dbus.Call

func (*MockInterfaceDisplay) GoSetPrimary

func (v *MockInterfaceDisplay) GoSetPrimary(flags dbus.Flags, ch chan *dbus.Call, outputName string) *dbus.Call

func (*MockInterfaceDisplay) GoSwitchMode

func (v *MockInterfaceDisplay) GoSwitchMode(flags dbus.Flags, ch chan *dbus.Call, mode uint8, name string) *dbus.Call

func (*MockInterfaceDisplay) HasChanged

func (v *MockInterfaceDisplay) HasChanged() proxy.PropBool

func (*MockInterfaceDisplay) ListOutputNames

func (v *MockInterfaceDisplay) ListOutputNames(flags dbus.Flags) ([]string, error)

func (*MockInterfaceDisplay) ListOutputsCommonModes

func (v *MockInterfaceDisplay) ListOutputsCommonModes(flags dbus.Flags) ([][]interface{}, error)

func (*MockInterfaceDisplay) MaxBacklightBrightness

func (v *MockInterfaceDisplay) MaxBacklightBrightness() proxy.PropUint32

func (*MockInterfaceDisplay) ModifyConfigName

func (v *MockInterfaceDisplay) ModifyConfigName(flags dbus.Flags, name string, newName string) error

func (*MockInterfaceDisplay) Monitors

func (*MockInterfaceDisplay) Primary

func (v *MockInterfaceDisplay) Primary() proxy.PropString

func (*MockInterfaceDisplay) PrimaryRect

func (*MockInterfaceDisplay) RefreshBrightness

func (v *MockInterfaceDisplay) RefreshBrightness(flags dbus.Flags) error

func (*MockInterfaceDisplay) Reset

func (v *MockInterfaceDisplay) Reset(flags dbus.Flags) error

func (*MockInterfaceDisplay) ResetChanges

func (v *MockInterfaceDisplay) ResetChanges(flags dbus.Flags) error

func (*MockInterfaceDisplay) Save

func (v *MockInterfaceDisplay) Save(flags dbus.Flags) error

func (*MockInterfaceDisplay) ScreenHeight

func (v *MockInterfaceDisplay) ScreenHeight() proxy.PropUint16

func (*MockInterfaceDisplay) ScreenWidth

func (v *MockInterfaceDisplay) ScreenWidth() proxy.PropUint16

func (*MockInterfaceDisplay) SetAndSaveBrightness

func (v *MockInterfaceDisplay) SetAndSaveBrightness(flags dbus.Flags, outputName string, value float64) error

func (*MockInterfaceDisplay) SetBrightness

func (v *MockInterfaceDisplay) SetBrightness(flags dbus.Flags, outputName string, value float64) error

func (*MockInterfaceDisplay) SetColorTemperature

func (v *MockInterfaceDisplay) SetColorTemperature(flags dbus.Flags, value int32) error

func (*MockInterfaceDisplay) SetMethodAdjustCCT

func (v *MockInterfaceDisplay) SetMethodAdjustCCT(flags dbus.Flags, adjustMethod int32) error

func (*MockInterfaceDisplay) SetPrimary

func (v *MockInterfaceDisplay) SetPrimary(flags dbus.Flags, outputName string) error

func (*MockInterfaceDisplay) SwitchMode

func (v *MockInterfaceDisplay) SwitchMode(flags dbus.Flags, mode uint8, name string) error

func (*MockInterfaceDisplay) TouchMap

func (*MockInterfaceDisplay) Touchscreens

func (v *MockInterfaceDisplay) Touchscreens() PropTouchscreens

type MockInterfaceMonitor

type MockInterfaceMonitor struct {
	mock.Mock
}

func (*MockInterfaceMonitor) AvailableFillModes

func (v *MockInterfaceMonitor) AvailableFillModes() proxy.PropStringArray

func (*MockInterfaceMonitor) BestMode

func (v *MockInterfaceMonitor) BestMode() PropModeInfo

func (*MockInterfaceMonitor) Brightness

func (v *MockInterfaceMonitor) Brightness() proxy.PropDouble

func (*MockInterfaceMonitor) Connected

func (v *MockInterfaceMonitor) Connected() proxy.PropBool

func (*MockInterfaceMonitor) CurrentFillMode

func (v *MockInterfaceMonitor) CurrentFillMode() proxy.PropString

func (*MockInterfaceMonitor) CurrentMode

func (v *MockInterfaceMonitor) CurrentMode() PropModeInfo

func (*MockInterfaceMonitor) CurrentRotateMode

func (v *MockInterfaceMonitor) CurrentRotateMode() proxy.PropByte

func (*MockInterfaceMonitor) Enable

func (v *MockInterfaceMonitor) Enable(flags dbus.Flags, enabled bool) error

func (*MockInterfaceMonitor) Enabled

func (v *MockInterfaceMonitor) Enabled() proxy.PropBool

func (*MockInterfaceMonitor) GoEnable

func (v *MockInterfaceMonitor) GoEnable(flags dbus.Flags, ch chan *dbus.Call, enabled bool) *dbus.Call

func (*MockInterfaceMonitor) GoSetMode

func (v *MockInterfaceMonitor) GoSetMode(flags dbus.Flags, ch chan *dbus.Call, mode uint32) *dbus.Call

func (*MockInterfaceMonitor) GoSetModeBySize

func (v *MockInterfaceMonitor) GoSetModeBySize(flags dbus.Flags, ch chan *dbus.Call, width uint16, height uint16) *dbus.Call

func (*MockInterfaceMonitor) GoSetPosition

func (v *MockInterfaceMonitor) GoSetPosition(flags dbus.Flags, ch chan *dbus.Call, X int16, y int16) *dbus.Call

func (*MockInterfaceMonitor) GoSetReflect

func (v *MockInterfaceMonitor) GoSetReflect(flags dbus.Flags, ch chan *dbus.Call, value uint16) *dbus.Call

func (*MockInterfaceMonitor) GoSetRefreshRate

func (v *MockInterfaceMonitor) GoSetRefreshRate(flags dbus.Flags, ch chan *dbus.Call, value float64) *dbus.Call

func (*MockInterfaceMonitor) GoSetRotation

func (v *MockInterfaceMonitor) GoSetRotation(flags dbus.Flags, ch chan *dbus.Call, value uint16) *dbus.Call

func (*MockInterfaceMonitor) Height

func (*MockInterfaceMonitor) ID

func (*MockInterfaceMonitor) Manufacturer

func (v *MockInterfaceMonitor) Manufacturer() proxy.PropString

func (*MockInterfaceMonitor) MmHeight

func (v *MockInterfaceMonitor) MmHeight() proxy.PropUint32

func (*MockInterfaceMonitor) MmWidth

func (v *MockInterfaceMonitor) MmWidth() proxy.PropUint32

func (*MockInterfaceMonitor) Model

func (*MockInterfaceMonitor) Modes

func (*MockInterfaceMonitor) Name

func (*MockInterfaceMonitor) PreferredModes

func (v *MockInterfaceMonitor) PreferredModes() PropModeInfoSlice

func (*MockInterfaceMonitor) Reflect

func (v *MockInterfaceMonitor) Reflect() proxy.PropUint16

func (*MockInterfaceMonitor) Reflects

func (*MockInterfaceMonitor) RefreshRate

func (v *MockInterfaceMonitor) RefreshRate() proxy.PropDouble

func (*MockInterfaceMonitor) Rotation

func (v *MockInterfaceMonitor) Rotation() proxy.PropUint16

func (*MockInterfaceMonitor) Rotations

func (*MockInterfaceMonitor) SetMode

func (v *MockInterfaceMonitor) SetMode(flags dbus.Flags, mode uint32) error

func (*MockInterfaceMonitor) SetModeBySize

func (v *MockInterfaceMonitor) SetModeBySize(flags dbus.Flags, width uint16, height uint16) error

func (*MockInterfaceMonitor) SetPosition

func (v *MockInterfaceMonitor) SetPosition(flags dbus.Flags, X int16, y int16) error

func (*MockInterfaceMonitor) SetReflect

func (v *MockInterfaceMonitor) SetReflect(flags dbus.Flags, value uint16) error

func (*MockInterfaceMonitor) SetRefreshRate

func (v *MockInterfaceMonitor) SetRefreshRate(flags dbus.Flags, value float64) error

func (*MockInterfaceMonitor) SetRotation

func (v *MockInterfaceMonitor) SetRotation(flags dbus.Flags, value uint16) error

func (*MockInterfaceMonitor) Width

func (*MockInterfaceMonitor) X

func (*MockInterfaceMonitor) Y

type MockMonitor

type MockMonitor struct {
	MockInterfaceMonitor // interface com.deepin.daemon.Display.Monitor
	proxy.MockObject
}

type MockPropDisplayBrightness

type MockPropDisplayBrightness struct {
	mock.Mock
}

func (MockPropDisplayBrightness) ConnectChanged

func (p MockPropDisplayBrightness) ConnectChanged(cb func(hasValue bool, value map[string]float64)) error

func (MockPropDisplayBrightness) Get

func (p MockPropDisplayBrightness) Get(flags dbus.Flags) (value map[string]float64, err error)

func (MockPropDisplayBrightness) Set

func (p MockPropDisplayBrightness) Set(flags dbus.Flags, value map[string]float64) error

type MockPropDisplayPrimaryRect

type MockPropDisplayPrimaryRect struct {
	mock.Mock
}

func (MockPropDisplayPrimaryRect) ConnectChanged

func (p MockPropDisplayPrimaryRect) ConnectChanged(cb func(hasValue bool, value Rectangle)) error

func (MockPropDisplayPrimaryRect) Get

func (p MockPropDisplayPrimaryRect) Get(flags dbus.Flags) (value Rectangle, err error)

func (MockPropDisplayPrimaryRect) Set

func (p MockPropDisplayPrimaryRect) Set(flags dbus.Flags, value Rectangle) error

type MockPropDisplayTouchMap

type MockPropDisplayTouchMap struct {
	mock.Mock
}

func (MockPropDisplayTouchMap) ConnectChanged

func (p MockPropDisplayTouchMap) ConnectChanged(cb func(hasValue bool, value map[string]string)) error

func (MockPropDisplayTouchMap) Get

func (p MockPropDisplayTouchMap) Get(flags dbus.Flags) (value map[string]string, err error)

func (MockPropDisplayTouchMap) Set

func (p MockPropDisplayTouchMap) Set(flags dbus.Flags, value map[string]string) error

type MockPropModeInfo

type MockPropModeInfo struct {
	mock.Mock
}

func (MockPropModeInfo) ConnectChanged

func (p MockPropModeInfo) ConnectChanged(cb func(hasValue bool, value ModeInfo)) error

func (MockPropModeInfo) Get

func (p MockPropModeInfo) Get(flags dbus.Flags) (value ModeInfo, err error)

func (MockPropModeInfo) Set

func (p MockPropModeInfo) Set(flags dbus.Flags, value ModeInfo) error

type MockPropModeInfoSlice

type MockPropModeInfoSlice struct {
	mock.Mock
}

func (MockPropModeInfoSlice) ConnectChanged

func (p MockPropModeInfoSlice) ConnectChanged(cb func(hasValue bool, value []ModeInfo)) error

func (MockPropModeInfoSlice) Get

func (p MockPropModeInfoSlice) Get(flags dbus.Flags) (value []ModeInfo, err error)

func (MockPropModeInfoSlice) Set

func (p MockPropModeInfoSlice) Set(flags dbus.Flags, value []ModeInfo) error

type MockPropTouchscreens

type MockPropTouchscreens struct {
	mock.Mock
}

func (MockPropTouchscreens) ConnectChanged

func (p MockPropTouchscreens) ConnectChanged(cb func(hasValue bool, value []Touchscreen)) error

func (MockPropTouchscreens) Get

func (p MockPropTouchscreens) Get(flags dbus.Flags) (value []Touchscreen, err error)

func (MockPropTouchscreens) Set

func (p MockPropTouchscreens) Set(flags dbus.Flags, value []Touchscreen) error

type ModeInfo

type ModeInfo struct {
	Id     uint32
	Width  uint16
	Height uint16
	Rate   float64
}

type Monitor

type Monitor interface {
	proxy.Object
	// contains filtered or unexported methods
}

func NewMonitor

func NewMonitor(conn *dbus.Conn, path dbus.ObjectPath) (Monitor, error)

type PropDisplayBrightness

type PropDisplayBrightness interface {
	Get(flags dbus.Flags) (value map[string]float64, err error)
	Set(flags dbus.Flags, value map[string]float64) error
	ConnectChanged(cb func(hasValue bool, value map[string]float64)) error
}

type PropDisplayPrimaryRect

type PropDisplayPrimaryRect interface {
	Get(flags dbus.Flags) (value Rectangle, err error)
	Set(flags dbus.Flags, value Rectangle) error
	ConnectChanged(cb func(hasValue bool, value Rectangle)) error
}

type PropDisplayTouchMap

type PropDisplayTouchMap interface {
	Get(flags dbus.Flags) (value map[string]string, err error)
	Set(flags dbus.Flags, value map[string]string) error
	ConnectChanged(cb func(hasValue bool, value map[string]string)) error
}

type PropModeInfo

type PropModeInfo interface {
	Get(flags dbus.Flags) (value ModeInfo, err error)
	Set(flags dbus.Flags, value ModeInfo) error
	ConnectChanged(cb func(hasValue bool, value ModeInfo)) error
}

type PropModeInfoSlice

type PropModeInfoSlice interface {
	Get(flags dbus.Flags) (value []ModeInfo, err error)
	Set(flags dbus.Flags, value []ModeInfo) error
	ConnectChanged(cb func(hasValue bool, value []ModeInfo)) error
}

type PropTouchscreens

type PropTouchscreens interface {
	Get(flags dbus.Flags) (value []Touchscreen, err error)
	Set(flags dbus.Flags, value []Touchscreen) error
	ConnectChanged(cb func(hasValue bool, value []Touchscreen)) error
}

type Rectangle

type Rectangle struct {
	X      int16
	Y      int16
	Width  uint16
	Height uint16
}

type Touchscreen

type Touchscreen struct {
	Id         int32
	Node       string
	DeviceNode string
	Serial     string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL