[ CCode ( cname = "xfw_screen_get_primary_monitor" ) ]
[ Version ( since = "4.19.4" ) ]
public unowned Monitor? get_primary_monitor ()
Returns the monitor designated as "primary".
This function will do its best to return something other than null. If the windowing system has no concept of a primary monitor, or if the primary monitor is unset, a likely candidate will be chosen from the list of available monitors.
However, if no monitors are connected, null can still be returned.
| this |
an Screen. |
|
this's primary Monitor, or null. |