Function xcb::parse_display [−][src]
pub fn parse_display(name: &str) -> Option<DisplayInfo>
Expand description
Parses a display string name in the form documented by (X(7x))man.
Parses the display string name in the form documented by (X(7x))man.
Returns Some(DisplayInfo)
on success and None
otherwise.
Has no side effects on failure.
If name
empty, it uses the environment variable DISPLAY
.
If name
does not contain a screen number, DisplayInfo::screen
is set to 0
.