Documentation ¶
Index ¶
- type CrtcInfo
- type ModeInfo
- type ModeInfos
- func (infos ModeInfos) Equal(list ModeInfos) bool
- func (infos ModeInfos) FilterBySize() ModeInfos
- func (infos ModeInfos) HasRefreshRate(rate float64) bool
- func (infos ModeInfos) Len() int
- func (infos ModeInfos) Less(i, j int) bool
- func (infos ModeInfos) Max() ModeInfo
- func (infos ModeInfos) Query(id uint32) ModeInfo
- func (infos ModeInfos) QueryBySize(width, height uint16) ModeInfos
- func (infos ModeInfos) String() string
- func (infos ModeInfos) Swap(i, j int)
- type OutputInfo
- type OutputInfos
- type ScreenInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModeInfos ¶
type ModeInfos []ModeInfo
func FindCommonModes ¶
func (ModeInfos) FilterBySize ¶
func (ModeInfos) HasRefreshRate ¶
func (ModeInfos) QueryBySize ¶
type OutputInfo ¶
type OutputInfos ¶
type OutputInfos []OutputInfo
func (OutputInfos) ListConnectionOutputs ¶
func (infos OutputInfos) ListConnectionOutputs() OutputInfos
func (OutputInfos) ListNames ¶
func (infos OutputInfos) ListNames() []string
func (OutputInfos) Query ¶
func (infos OutputInfos) Query(id uint32) OutputInfo
func (OutputInfos) QueryByName ¶
func (infos OutputInfos) QueryByName(name string) OutputInfo
type ScreenInfo ¶
type ScreenInfo struct { Outputs OutputInfos Modes ModeInfos // contains filtered or unexported fields }
func GetScreenInfo ¶
func GetScreenInfo(conn *x.Conn) (*ScreenInfo, error)
func (*ScreenInfo) GetPrimary ¶
func (info *ScreenInfo) GetPrimary() (*OutputInfo, error)
func (*ScreenInfo) GetScreenSize ¶
func (info *ScreenInfo) GetScreenSize() (uint16, uint16)
Click to show internal directories.
Click to hide internal directories.