|
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 () |
| void | setSelectedPointer (rdpPointer *pointer) |
| bool | isSelectedPointer (const rdpPointer *pointer) |
| rdpPointer * | getSelectedPointer () const |
| 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 | setNotification (const std::string &message) |
| 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) |
| bool | screenToRdp (SDL_WindowID id, const SDL_FPoint &pos, SDL_FPoint &rpos, SDL_FPoint *delta=nullptr) |
| SDL_Point | inputOrigin () const |
| std::vector< SdlInputWindow > | inputWindows (SDL_WindowID id, const SDL_Point &origin, std::optional< size_t > &source) |
| 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 SdlInputWindow | inputWindowGeometry (SDL_Window *window, SDL_Renderer *renderer) |
| 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 53 of file sdl_context.hpp.
|
explicit |
Definition at line 1786 of file SDL2/sdl_freerdp.cpp.
|
default |
Definition at line 100 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2121 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1133 of file sdl_context.cpp.
|
nodiscard |
Definition at line 125 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1210 of file sdl_context.cpp.
| void SdlContext::applyMonitorScaleOverride | ( | rdpMonitor & | monitor | ) | const |
Definition at line 1931 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1886 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1891 of file sdl_context.cpp.
|
staticnodiscard |
Definition at line 1898 of file sdl_context.cpp.
| void SdlContext::cleanup | ( | ) |
Definition at line 178 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1800 of file SDL2/sdl_freerdp.cpp.
|
nodiscard |
Definition at line 1946 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1795 of file SDL2/sdl_freerdp.cpp.
|
nodiscard |
Definition at line 481 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1956 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2154 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1153 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1030 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1994 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1123 of file sdl_context.cpp.
| void SdlContext::flushWindowInfo | ( | ) |
main thread: refreshes the RemoteApp windows' info railWindowInfoChanged() queued
Definition at line 2407 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1805 of file SDL2/sdl_freerdp.cpp.
|
nodiscard |
Definition at line 1295 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1305 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1178 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1285 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1183 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1220 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1290 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1300 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1822 of file SDL2/sdl_freerdp.cpp.
|
nodiscard |
Definition at line 1202 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1194 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1310 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2279 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2263 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1819 of file sdl_context.cpp.
|
nodiscard |
Definition at line 135 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2540 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1715 of file sdl_context.cpp.
|
staticnodiscard |
Definition at line 1731 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1752 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2114 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1815 of file SDL2/sdl_freerdp.cpp.
|
nodiscard |
Definition at line 166 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1936 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1116 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2219 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2214 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1315 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1128 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1783 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1804 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1941 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2234 of file sdl_context.cpp.
|
nodiscard |
main thread: draws the mapped renderers (rdpContext::bitmapRenderService) where the Geometry Tracking channel puts them
Definition at line 2553 of file sdl_context.cpp.
References freerdp_settings_get_bool().

| void SdlContext::push | ( | std::vector< SDL_Rect > && | rects | ) |
Definition at line 2228 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 2395 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2095 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1143 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2470 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2482 of file sdl_context.cpp.
| void SdlContext::rendererRemove | ( | Uint64 | id | ) |
Definition at line 2524 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2159 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1698 of file sdl_context.cpp.
| void SdlContext::setConnected | ( | bool | val | ) |
Definition at line 2109 of file sdl_context.cpp.
| void SdlContext::setCredentialsRead | ( | ) |
Definition at line 1961 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2144 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2138 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2246 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2289 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2273 of file sdl_context.cpp.
| void SdlContext::setHasCursor | ( | bool | val | ) |
Definition at line 130 of file sdl_context.cpp.
| void SdlContext::setMetadata | ( | ) |
Definition at line 140 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2258 of file sdl_context.cpp.
| void SdlContext::setMonitorIds | ( | const std::vector< SDL_DisplayID > & | ids | ) |
Definition at line 2201 of file sdl_context.cpp.
|
nodiscard |
Shows message in the title of the first session window, or restores that title when message is empty. Can be called from any thread, the title changes on the main thread.
Definition at line 1227 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2295 of file sdl_context.cpp.
| void SdlContext::setSelectedPointer | ( | rdpPointer * | pointer | ) |
Definition at line 1810 of file SDL2/sdl_freerdp.cpp.
|
nodiscard |
Definition at line 186 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1087 of file sdl_context.cpp.
|
nodiscard |
Definition at line 160 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2327 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2284 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2268 of file sdl_context.cpp.
|
nodiscard |
The stats and info overlay, SDL's thread
Definition at line 1082 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2317 of file sdl_context.cpp.
| BOOL SdlContext::update_fullscreen | ( | BOOL | enter | ) |
Definition at line 1749 of file SDL2/sdl_freerdp.cpp.
| BOOL SdlContext::update_minimize | ( | ) |
Definition at line 1761 of file SDL2/sdl_freerdp.cpp.
| BOOL SdlContext::update_resizeable | ( | BOOL | enable | ) |
Definition at line 1767 of file SDL2/sdl_freerdp.cpp.
|
nodiscard |
Definition at line 1101 of file sdl_context.cpp.
|
nodiscard |
Definition at line 662 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 2358 of file sdl_context.cpp.
References freerdp_settings_get_uint32().

|
nodiscard |
Definition at line 627 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1966 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.