Definition at line 46 of file SDL2/sdl_freerdp.hpp.
◆ SdlContext()
SdlContext::SdlContext |
( |
rdpContext * |
context | ) |
|
|
explicit |
Definition at line 1761 of file SDL2/sdl_freerdp.cpp.
1762 : _context(context), log(WLog_Get(SDL_TAG)), update_complete(true), disp(this), input(this),
1763 primary(nullptr, SDL_FreeSurface), primary_format(nullptr, SDL_FreeFormat),
1764 rdp_thread_running(false)
1765{
1766 WINPR_ASSERT(context);
1768}
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 1775 of file SDL2/sdl_freerdp.cpp.
1776{
1777 return reinterpret_cast<rdpClientContext*>(_context);
1778}
◆ 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 1840 of file SDL3/sdl_freerdp.cpp.
1841{
1842 if (index >= _monitorIds.size())
1843 {
1844 return -1;
1845 }
1846 return _monitorIds[index];
1847}
◆ monitorIds()
const std::vector< SDL_DisplayID > & SdlContext::monitorIds |
( |
| ) |
const |
◆ pop()
std::vector< SDL_Rect > SdlContext::pop |
( |
| ) |
|
Definition at line 1855 of file SDL3/sdl_freerdp.cpp.
1856{
1857 std::unique_lock lock(_queue_mux);
1858 if (_queue.empty())
1859 {
1860 return {};
1861 }
1862 auto val = std::move(_queue.front());
1863 _queue.pop();
1864 return val;
1865}
◆ push()
void SdlContext::push |
( |
std::vector< SDL_Rect > && |
rects | ) |
|
Definition at line 1849 of file SDL3/sdl_freerdp.cpp.
1850{
1851 std::unique_lock lock(_queue_mux);
1852 _queue.emplace(std::move(rects));
1853}
◆ redraw()
bool SdlContext::redraw |
( |
bool |
suppress = false | ) |
const |
Definition at line 1785 of file SDL3/sdl_freerdp.cpp.
1786{
1787 if (!_connected)
1788 return true;
1789
1790 auto gdi = context()->gdi;
1791 WINPR_ASSERT(gdi);
1792 return gdi_send_suppress_output(gdi, suppress);
1793}
◆ 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 1826 of file SDL3/sdl_freerdp.cpp.
1827{
1828 _monitorIds.clear();
1829 for (auto id : ids)
1830 {
1831 _monitorIds.push_back(id);
1832 }
1833}
◆ update_fullscreen() [1/2]
BOOL SdlContext::update_fullscreen |
( |
BOOL |
enter | ) |
|
Definition at line 1724 of file SDL2/sdl_freerdp.cpp.
1725{
1726 std::lock_guard<CriticalSection> lock(critical);
1727 for (const auto& window : windows)
1728 {
1729 if (!sdl_push_user_event(SDL_USEREVENT_WINDOW_FULLSCREEN, &window.second, enter))
1730 return FALSE;
1731 }
1732 fullscreen = enter;
1733 return TRUE;
1734}
◆ update_fullscreen() [2/2]
bool SdlContext::update_fullscreen |
( |
bool |
enter | ) |
|
Definition at line 1727 of file SDL3/sdl_freerdp.cpp.
1728{
1729 for (const auto& window : windows)
1730 {
1731 if (!sdl_push_user_event(SDL_EVENT_USER_WINDOW_FULLSCREEN, &window.second, enter))
1732 return false;
1733 }
1734 fullscreen = enter;
1735 return true;
1736}
◆ update_minimize()
bool SdlContext::update_minimize |
( |
| ) |
|
Definition at line 1736 of file SDL2/sdl_freerdp.cpp.
1737{
1738 std::lock_guard<CriticalSection> lock(critical);
1739 return sdl_push_user_event(SDL_USEREVENT_WINDOW_MINIMIZE);
1740}
◆ update_resizeable() [1/2]
BOOL SdlContext::update_resizeable |
( |
BOOL |
enable | ) |
|
Definition at line 1742 of file SDL2/sdl_freerdp.cpp.
1743{
1744 std::lock_guard<CriticalSection> lock(critical);
1745
1746 const auto settings = context()->settings;
1749 BOOL use = (dyn && enable) || smart;
1750
1751 for (const auto& window : windows)
1752 {
1753 if (!sdl_push_user_event(SDL_USEREVENT_WINDOW_RESIZEABLE, &window.second, use))
1754 return FALSE;
1755 }
1756 resizeable = use;
1757
1758 return TRUE;
1759}
◆ update_resizeable() [2/2]
bool SdlContext::update_resizeable |
( |
bool |
enable | ) |
|
Definition at line 1743 of file SDL3/sdl_freerdp.cpp.
1744{
1745 const auto settings = context()->settings;
1748 bool use = (dyn && enable) || smart;
1749
1750 for (const auto& window : windows)
1751 {
1752 if (!sdl_push_user_event(SDL_EVENT_USER_WINDOW_RESIZEABLE, &window.second, use))
1753 return false;
1754 }
1755 resizeable = use;
1756
1757 return true;
1758}
◆ 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: