|
FreeRDP
|
#include <sdl_context.hpp>

Public Types | |
| enum | CursorType { CURSOR_NULL , CURSOR_DEFAULT , CURSOR_IMAGE } |
Public Member Functions | |
| SdlContext (rdpContext *context) | |
| SdlContext (const SdlContext &other)=delete | |
| SdlContext (SdlContext &&other)=delete | |
| SdlContext & | operator= (const SdlContext &other)=delete |
| SdlContext & | operator= (SdlContext &&other)=delete |
| BOOL | update_resizeable (BOOL enable) |
| BOOL | update_fullscreen (BOOL enter) |
| BOOL | update_minimize () |
| rdpContext * | context () const |
| rdpClientContext * | common () const |
| std::shared_ptr< SdlAadAuthHelper > & | getAadAuthHelper () |
| SdlContext (rdpContext *context) | |
| SdlContext (const SdlContext &other)=delete | |
| SdlContext (SdlContext &&other)=delete | |
| SdlContext & | operator= (const SdlContext &other)=delete |
| SdlContext & | operator= (SdlContext &&other)=delete |
| bool | redraw (bool suppress=false) const |
| void | setConnected (bool val) |
| bool | isConnected () const |
| bool | abortConnect () const |
| void | cleanup () |
| bool | resizeable () const |
| bool | toggleResizeable () |
| bool | setResizeable (bool enable) |
| bool | fullscreen () const |
| bool | toggleFullscreen () |
| bool | setFullscreen (bool enter, bool forceOriginalDisplay=false) |
| bool | setMinimized () |
| bool | toggleOverlay () |
| bool | showOverlay (bool on) |
| bool | updateOverlay () |
| bool | grabMouse () const |
| bool | toggleGrabMouse () |
| bool | setGrabMouse (bool enter) |
| bool | grabKeyboard () const |
| bool | toggleGrabKeyboard () |
| bool | setGrabKeyboard (bool enter) |
| rdpContext * | context () const |
| rdpClientContext * | common () const |
| bool | setCursor (CursorType type) |
| bool | setCursor (const rdpPointer *cursor) |
| rdpPointer * | cursor () const |
| bool | restoreCursor () |
| void | setMonitorIds (const std::vector< SDL_DisplayID > &ids) |
| const std::vector< SDL_DisplayID > & | monitorIds () const |
| int64_t | monitorId (uint32_t index) const |
| void | push (std::vector< SDL_Rect > &&rects) |
| std::vector< SDL_Rect > | pop () |
| void | setHasCursor (bool val) |
| std::optional< bool > | allowScreenSaver () const |
| bool | hasCursor () const |
| void | setMetadata () |
| int | start () |
| int | join () |
| bool | shallAbort (bool ignoreDialogs=false) |
| bool | createWindows () |
| void | updateWindowInfo () |
| void | railWindowInfoChanged (uint64_t remoteId) |
| void | flushWindowInfo () |
| bool | presentRenderers () |
| bool | hasRenderers () |
| Uint64 | rendererAdd (UINT64 mappingId, IWTSBitmapRendererCallback *callback) |
| bool | rendererFrame (Uint64 id, const BYTE *data, UINT32 width, UINT32 height, LONG stride) |
| void | rendererRemove (Uint64 id) |
| bool | updateWindowList () |
| bool | updateWindow (SDL_WindowID id) |
| bool | drawToWindows (const std::vector< SDL_Rect > &rects={}) |
| bool | drawToWindow (SdlWindow &window, const std::vector< SDL_Rect > &rects={}) |
| bool | minimizeAllWindows () |
| int | exitCode () const |
| SDL_PixelFormat | pixelFormat () const |
| const SdlWindow * | getWindowForId (SDL_WindowID id) const |
| SdlWindow * | getWindowForId (SDL_WindowID id) |
| bool | allWindowsHidden () const |
| SdlWindow * | getFirstWindow () |
| bool | addDisplayWindow (SDL_DisplayID id) |
| bool | removeDisplayWindow (SDL_DisplayID id) |
| bool | detectDisplays () |
| rdpMonitor | getDisplay (SDL_DisplayID id) const |
| std::vector< SDL_DisplayID > | getDisplayIds () const |
| void | applyMonitorScaleOverride (rdpMonitor &monitor) const |
| sdlDispContext & | getDisplayChannelContext () |
| sdlInput & | getInputChannelContext () |
| sdlClip & | getClipboardChannelContext () |
| SdlRail & | getRailChannelContext () |
| SdlConnectionDialogWrapper & | getDialog () |
| wLog * | getWLog () |
| bool | moveMouseTo (const SDL_FPoint &pos) |
| SDL_FPoint | screenToPixel (SDL_WindowID id, const SDL_FPoint &pos) |
| SDL_FPoint | pixelToScreen (SDL_WindowID id, const SDL_FPoint &pos) |
| SDL_FRect | pixelToScreen (SDL_WindowID id, const SDL_FRect &pos, bool round=false) |
| bool | handleEvent (const SDL_Event &ev) |
| COMMAND_LINE_ARGUMENT_A * | args () |
| size_t | argsCount () const |
| CriticalSection & | lock () |
| std::vector< rdpPointer * > & | pointers () |
| bool | contains (const rdpPointer *ptr) const |
| bool | credentialsRead () const |
| void | setCredentialsRead () |
| SdlWheelAxis & | wheelAxis (bool horizontal) |
Static Public Member Functions | |
| static int | argumentHandler (const COMMAND_LINE_ARGUMENT_A *arg, void *custom) |
Data Fields | |
| wLog * | log |
| bool | fullscreen = false |
| bool | resizeable = false |
| bool | grab_mouse = false |
| bool | grab_kbd = false |
| bool | grab_kbd_enabled = true |
| std::map< Uint32, SdlWindow > | windows |
| CriticalSection | critical |
| std::thread | thread |
| WinPREvent | initialize |
| WinPREvent | initialized |
| WinPREvent | update_complete |
| WinPREvent | windows_created |
| int | exit_code = -1 |
| sdlDispContext | disp |
| sdlInput | input |
| SDLSurfacePtr | primary |
| SDLPixelFormatPtr | primary_format |
| Uint32 | sdl_pixel_format = 0 |
| std::unique_ptr< SDLConnectionDialog > | connection_dialog |
| std::atomic< bool > | rdp_thread_running |
FreeRDP: A Remote Desktop Protocol Implementation SDL Client
Copyright 2022 Armin Novak armin.nosp@m..nov.nosp@m.ak@th.nosp@m.inca.nosp@m.st.co.nosp@m.m
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition at line 48 of file SDL2/sdl_freerdp.hpp.
| enum SdlContext::CursorType |
Definition at line 52 of file sdl_context.hpp.
|
explicit |
Definition at line 1768 of file SDL2/sdl_freerdp.cpp.
|
default |
Definition at line 98 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2014 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1126 of file sdl_context.cpp.
|
nodiscard |
Definition at line 123 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1203 of file sdl_context.cpp.
| void SdlContext::applyMonitorScaleOverride | ( | rdpMonitor & | monitor | ) | const |
Definition at line 1824 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1779 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1784 of file sdl_context.cpp.
|
staticnodiscard |
Definition at line 1791 of file sdl_context.cpp.
| void SdlContext::cleanup | ( | ) |
Definition at line 171 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1782 of file SDL2/sdl_freerdp.cpp.
|
nodiscard |
Definition at line 1839 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1777 of file SDL2/sdl_freerdp.cpp.
|
nodiscard |
Definition at line 465 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1849 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2047 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1146 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1023 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1887 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1116 of file sdl_context.cpp.
| void SdlContext::flushWindowInfo | ( | ) |
main thread: refreshes the RemoteApp windows' info railWindowInfoChanged() queued
Definition at line 2300 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1787 of file SDL2/sdl_freerdp.cpp.
|
nodiscard |
Definition at line 1230 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1240 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1171 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1220 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1176 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1213 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1225 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1235 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1195 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1187 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1245 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2172 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2156 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1712 of file sdl_context.cpp.
|
nodiscard |
Definition at line 133 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2433 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2007 of file sdl_context.cpp.
|
nodiscard |
Definition at line 159 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1829 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1109 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2112 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2107 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1250 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1121 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1676 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1697 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1834 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2127 of file sdl_context.cpp.
|
nodiscard |
main thread: draws the mapped renderers (rdpContext::bitmapRenderService) where the Geometry Tracking channel puts them
Definition at line 2446 of file sdl_context.cpp.
References freerdp_settings_get_bool().

| void SdlContext::push | ( | std::vector< SDL_Rect > && | rects | ) |
Definition at line 2121 of file sdl_context.cpp.
| void SdlContext::railWindowInfoChanged | ( | uint64_t | remoteId | ) |
any thread: a RemoteApp window (remoteId) was created, moved, resized or deleted; its window info is refreshed on the main thread (flushWindowInfo)
Definition at line 2288 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1988 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1136 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2363 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2375 of file sdl_context.cpp.
| void SdlContext::rendererRemove | ( | Uint64 | id | ) |
Definition at line 2417 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2052 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1653 of file sdl_context.cpp.
| void SdlContext::setConnected | ( | bool | val | ) |
Definition at line 2002 of file sdl_context.cpp.
| void SdlContext::setCredentialsRead | ( | ) |
Definition at line 1854 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2037 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2031 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2139 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2182 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2166 of file sdl_context.cpp.
| void SdlContext::setHasCursor | ( | bool | val | ) |
Definition at line 128 of file sdl_context.cpp.
| void SdlContext::setMetadata | ( | ) |
Definition at line 138 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2151 of file sdl_context.cpp.
| void SdlContext::setMonitorIds | ( | const std::vector< SDL_DisplayID > & | ids | ) |
Definition at line 2094 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2188 of file sdl_context.cpp.
|
nodiscard |
Definition at line 179 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1080 of file sdl_context.cpp.
|
nodiscard |
Definition at line 153 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2220 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2177 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2161 of file sdl_context.cpp.
|
nodiscard |
The stats and info overlay, SDL's thread
Definition at line 1075 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2210 of file sdl_context.cpp.
| BOOL SdlContext::update_fullscreen | ( | BOOL | enter | ) |
Definition at line 1731 of file SDL2/sdl_freerdp.cpp.
| BOOL SdlContext::update_minimize | ( | ) |
Definition at line 1743 of file SDL2/sdl_freerdp.cpp.
| BOOL SdlContext::update_resizeable | ( | BOOL | enable | ) |
Definition at line 1749 of file SDL2/sdl_freerdp.cpp.
|
nodiscard |
Definition at line 1094 of file sdl_context.cpp.
|
nodiscard |
Definition at line 645 of file sdl_context.cpp.
| void SdlContext::updateWindowInfo | ( | ) |
main thread: recomputes what rdpContext::windowInfoService tells about the session window after it was created, resized or rescaled, and tells the subscriber
Definition at line 2251 of file sdl_context.cpp.
References freerdp_settings_get_uint32().

|
nodiscard |
Definition at line 610 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1859 of file sdl_context.cpp.
| std::unique_ptr<SDLConnectionDialog> SdlContext::connection_dialog |
Definition at line 90 of file SDL2/sdl_freerdp.hpp.
| CriticalSection SdlContext::critical |
Definition at line 74 of file SDL2/sdl_freerdp.hpp.
| sdlDispContext SdlContext::disp |
Definition at line 82 of file SDL2/sdl_freerdp.hpp.
| int SdlContext::exit_code = -1 |
Definition at line 80 of file SDL2/sdl_freerdp.hpp.
| bool SdlContext::fullscreen = false |
Definition at line 66 of file SDL2/sdl_freerdp.hpp.
| bool SdlContext::grab_kbd = false |
Definition at line 69 of file SDL2/sdl_freerdp.hpp.
| bool SdlContext::grab_kbd_enabled = true |
Definition at line 70 of file SDL2/sdl_freerdp.hpp.
| bool SdlContext::grab_mouse = false |
Definition at line 68 of file SDL2/sdl_freerdp.hpp.
| WinPREvent SdlContext::initialize |
Definition at line 76 of file SDL2/sdl_freerdp.hpp.
| WinPREvent SdlContext::initialized |
Definition at line 77 of file SDL2/sdl_freerdp.hpp.
| sdlInput SdlContext::input |
Definition at line 83 of file SDL2/sdl_freerdp.hpp.
| wLog* SdlContext::log |
Definition at line 63 of file SDL2/sdl_freerdp.hpp.
| SDLSurfacePtr SdlContext::primary |
Definition at line 85 of file SDL2/sdl_freerdp.hpp.
| SDLPixelFormatPtr SdlContext::primary_format |
Definition at line 86 of file SDL2/sdl_freerdp.hpp.
| std::atomic<bool> SdlContext::rdp_thread_running |
Definition at line 92 of file SDL2/sdl_freerdp.hpp.
| bool SdlContext::resizeable = false |
Definition at line 67 of file SDL2/sdl_freerdp.hpp.
| Uint32 SdlContext::sdl_pixel_format = 0 |
Definition at line 88 of file SDL2/sdl_freerdp.hpp.
| std::thread SdlContext::thread |
Definition at line 75 of file SDL2/sdl_freerdp.hpp.
| WinPREvent SdlContext::update_complete |
Definition at line 78 of file SDL2/sdl_freerdp.hpp.
| std::map<Uint32, SdlWindow> SdlContext::windows |
Definition at line 72 of file SDL2/sdl_freerdp.hpp.
| WinPREvent SdlContext::windows_created |
Definition at line 79 of file SDL2/sdl_freerdp.hpp.