monitors

package module
v0.0.0-...-7b95c09 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: BSL-1.0 Imports: 2 Imported by: 1

README

monitors

GoDoc

About

monitors is a package for Go. It offers functions to query monitor metrics. It is published on https://github.com/vbsw/monitors.

Copyright 2021, Vitali Baumtrok (vbsw@mailbox.org).

monitors is distributed under the Boost Software License, version 1.0. (See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)

monitors is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Boost Software License for more details.

References

Documentation

Overview

Package monitors provides monitor metrics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Index

func Index(mtr *Monitor) int

Index returns the index of monitor in list from function All(). If monitor is not in list, the index of default monitor is returned. At failure, -1 is returned.

Types

type Monitor

type Monitor struct {
	X, Y, Width, Height int
	Default             bool
	InternalData        unsafe.Pointer
}

Monitor holds metrics of monitor.

func All

func All() []*Monitor

All returns all available monitors. At failure, nil is returned.

func Default

func Default() *Monitor

Default returns the default monitor. At failure, nil is returned.

func (*Monitor) Equals

func (monitor *Monitor) Equals(mtr *Monitor) bool

Equals returns true, if both monitors reference the same monitor.

Jump to

Keyboard shortcuts

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