Documentation
¶
Overview ¶
Package screenresolution is used to retrieve the current screen resolution.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolution ¶
type Resolution struct {
Width, Height int
}
Resolution represents the resolution of a single screen.
func GetPrimary ¶
func GetPrimary() *Resolution
GetPrimary returns the current screen resolution of the primary display.
Example ¶
fmt.Println(GetPrimary().String())
Output: 1024x768
func (*Resolution) String ¶
func (r *Resolution) String() string
Click to show internal directories.
Click to hide internal directories.