Definition at line 46 of file SDL2/sdl_freerdp.hpp.
◆ SdlContext()
SdlContext::SdlContext |
( |
rdpContext * |
context | ) |
|
|
explicit |
Definition at line 1747 of file SDL2/sdl_freerdp.cpp.
1748 : _context(context), log(WLog_Get(SDL_TAG)), update_complete(true), disp(this), input(this),
1749 primary(nullptr, SDL_FreeSurface), primary_format(nullptr, SDL_FreeFormat),
1750 rdp_thread_running(false)
1751{
1752 WINPR_ASSERT(context);
1754}
FREERDP_API BOOL freerdp_settings_get_bool(const rdpSettings *settings, FreeRDP_Settings_Keys_Bool id)
Returns a boolean settings value.
◆ common()
rdpClientContext * SdlContext::common |
( |
| ) |
const |
Definition at line 1761 of file SDL2/sdl_freerdp.cpp.
1762{
1763 return reinterpret_cast<rdpClientContext*>(_context);
1764}
◆ context()
rdpContext * SdlContext::context |
( |
| ) |
const |
◆ cursor()
rdpPointer * SdlContext::cursor |
( |
| ) |
const |
◆ hasCursor()
bool SdlContext::hasCursor |
( |
| ) |
const |
◆ isConnected()
bool SdlContext::isConnected |
( |
| ) |
const |
◆ monitorId()
int64_t SdlContext::monitorId |
( |
uint32_t |
index | ) |
const |
Definition at line 1824 of file SDL3/sdl_freerdp.cpp.
1825{
1826 if (index >= _monitorIds.size())
1827 {
1828 return -1;
1829 }
1830 return _monitorIds[index];
1831}
◆ monitorIds()
const std::vector< SDL_DisplayID > & SdlContext::monitorIds |
( |
| ) |
const |
◆ pop()
std::vector< SDL_Rect > SdlContext::pop |
( |
| ) |
|
Definition at line 1839 of file SDL3/sdl_freerdp.cpp.
1840{
1841 std::unique_lock lock(_queue_mux);
1842 if (_queue.empty())
1843 {
1844 return {};
1845 }
1846 auto val = std::move(_queue.front());
1847 _queue.pop();
1848 return val;
1849}
◆ push()
void SdlContext::push |
( |
std::vector< SDL_Rect > && |
rects | ) |
|
Definition at line 1833 of file SDL3/sdl_freerdp.cpp.
1834{
1835 std::unique_lock lock(_queue_mux);
1836 _queue.emplace(std::move(rects));
1837}
◆ redraw()
bool SdlContext::redraw |
( |
bool |
suppress = false | ) |
const |
Definition at line 1769 of file SDL3/sdl_freerdp.cpp.
1770{
1771 if (!_connected)
1772 return true;
1773
1774 auto gdi = context()->gdi;
1775 WINPR_ASSERT(gdi);
1776 return gdi_send_suppress_output(gdi, suppress);
1777}
◆ setConnected()
void SdlContext::setConnected |
( |
bool |
val | ) |
|
◆ setCursor()
void SdlContext::setCursor |
( |
rdpPointer * |
cursor | ) |
|
◆ setHasCursor()
void SdlContext::setHasCursor |
( |
bool |
val | ) |
|
◆ setMonitorIds()
void SdlContext::setMonitorIds |
( |
const std::vector< SDL_DisplayID > & |
ids | ) |
|
Definition at line 1810 of file SDL3/sdl_freerdp.cpp.
1811{
1812 _monitorIds.clear();
1813 for (auto id : ids)
1814 {
1815 _monitorIds.push_back(id);
1816 }
1817}
◆ update_fullscreen() [1/2]
BOOL SdlContext::update_fullscreen |
( |
BOOL |
enter | ) |
|
Definition at line 1710 of file SDL2/sdl_freerdp.cpp.
1711{
1712 std::lock_guard<CriticalSection> lock(critical);
1713 for (const auto& window : windows)
1714 {
1715 if (!sdl_push_user_event(SDL_USEREVENT_WINDOW_FULLSCREEN, &window.second, enter))
1716 return FALSE;
1717 }
1718 fullscreen = enter;
1719 return TRUE;
1720}
◆ update_fullscreen() [2/2]
bool SdlContext::update_fullscreen |
( |
bool |
enter | ) |
|
Definition at line 1719 of file SDL3/sdl_freerdp.cpp.
1720{
1721 for (const auto& window : windows)
1722 {
1723 if (!sdl_push_user_event(SDL_EVENT_USER_WINDOW_FULLSCREEN, &window.second, enter))
1724 return false;
1725 }
1726 fullscreen = enter;
1727 return true;
1728}
◆ update_minimize()
bool SdlContext::update_minimize |
( |
| ) |
|
Definition at line 1722 of file SDL2/sdl_freerdp.cpp.
1723{
1724 std::lock_guard<CriticalSection> lock(critical);
1725 return sdl_push_user_event(SDL_USEREVENT_WINDOW_MINIMIZE);
1726}
◆ update_resizeable() [1/2]
BOOL SdlContext::update_resizeable |
( |
BOOL |
enable | ) |
|
Definition at line 1728 of file SDL2/sdl_freerdp.cpp.
1729{
1730 std::lock_guard<CriticalSection> lock(critical);
1731
1732 const auto settings = context()->settings;
1735 BOOL use = (dyn && enable) || smart;
1736
1737 for (const auto& window : windows)
1738 {
1739 if (!sdl_push_user_event(SDL_USEREVENT_WINDOW_RESIZEABLE, &window.second, use))
1740 return FALSE;
1741 }
1742 resizeable = use;
1743
1744 return TRUE;
1745}
◆ update_resizeable() [2/2]
bool SdlContext::update_resizeable |
( |
bool |
enable | ) |
|
Definition at line 1735 of file SDL3/sdl_freerdp.cpp.
1736{
1737 const auto settings = context()->settings;
1740 bool use = (dyn && enable) || smart;
1741
1742 for (const auto& window : windows)
1743 {
1744 if (!sdl_push_user_event(SDL_EVENT_USER_WINDOW_RESIZEABLE, &window.second, use))
1745 return false;
1746 }
1747 resizeable = use;
1748
1749 return true;
1750}
◆ clip
◆ connection_dialog
◆ critical
◆ dialog
◆ disp
◆ exit_code
int SdlContext::exit_code = -1 |
◆ fullscreen
bool SdlContext::fullscreen = false |
◆ grab_kbd
bool SdlContext::grab_kbd = false |
◆ grab_kbd_enabled
bool SdlContext::grab_kbd_enabled = true |
◆ grab_mouse
bool SdlContext::grab_mouse = false |
◆ initialize
◆ initialized
◆ input
◆ log
◆ primary
SDLSurfacePtr SdlContext::primary |
◆ primary_format
SDLPixelFormatPtr SdlContext::primary_format |
◆ rdp_thread_running
std::atomic< bool > SdlContext::rdp_thread_running |
◆ resizeable
bool SdlContext::resizeable = false |
◆ sdl_pixel_format [1/2]
Uint32 SdlContext::sdl_pixel_format = 0 |
◆ sdl_pixel_format [2/2]
SDL_PixelFormat SdlContext::sdl_pixel_format = SDL_PIXELFORMAT_UNKNOWN |
◆ thread
std::thread SdlContext::thread |
◆ update_complete
◆ windows
std::map< Uint32, SdlWindow > SdlContext::windows |
◆ windows_created
The documentation for this class was generated from the following files: