2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
25 bool operator==(XMode
& mode
) const
29 if (name
!= mode
.name
)
33 if (isPreferred
!= mode
.isPreferred
)
35 if (isCurrent
!= mode
.isCurrent
)
45 return name
.back() == 'i';
62 w
= h
= x
= y
= wmm
= hmm
= 0;
74 std::vector
<XMode
> modes
;
81 explicit CXRandR(bool query
=false);
82 bool Query(bool force
=false, bool ignoreoff
=true);
83 bool Query(bool force
, int screennum
, bool ignoreoff
=true);
84 std::vector
<XOutput
> GetModes(void);
85 XMode
GetCurrentMode(const std::string
& outputName
);
86 XMode
GetPreferredMode(const std::string
& outputName
);
87 XOutput
*GetOutput(const std::string
& outputName
);
88 bool SetMode(const XOutput
& output
, const XMode
& mode
);
89 void LoadCustomModeLinesToAllOutputs(void);
91 void SetNumScreens(unsigned int num
);
92 bool IsOutputConnected(const std::string
& name
);
93 bool TurnOffOutput(const std::string
& name
);
94 bool TurnOnOutput(const std::string
& name
);
95 int GetCrtc(int x
, int y
, float &hz
);
103 std::vector
<XOutput
> m_outputs
;
104 std::string m_currentOutput
;
105 std::string m_currentMode
;
106 unsigned int m_numScreens
;
109 extern CXRandR g_xrandr
;