|
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 |
| 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 97 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1999 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1116 of file sdl_context.cpp.
|
nodiscard |
Definition at line 122 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1193 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1769 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1774 of file sdl_context.cpp.
|
staticnodiscard |
Definition at line 1781 of file sdl_context.cpp.
| void SdlContext::cleanup | ( | ) |
Definition at line 170 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1782 of file SDL2/sdl_freerdp.cpp.
|
nodiscard |
Definition at line 1824 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1777 of file SDL2/sdl_freerdp.cpp.
|
nodiscard |
Definition at line 460 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1834 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2032 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1136 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1013 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1872 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1106 of file sdl_context.cpp.
| void SdlContext::flushWindowInfo | ( | ) |
main thread: refreshes the RemoteApp windows' info railWindowInfoChanged() queued
Definition at line 2285 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1787 of file SDL2/sdl_freerdp.cpp.
|
nodiscard |
Definition at line 1220 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1230 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1161 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1210 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1166 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1203 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1215 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1225 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1185 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1177 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1235 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2157 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2141 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1702 of file sdl_context.cpp.
|
nodiscard |
Definition at line 132 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2418 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1992 of file sdl_context.cpp.
|
nodiscard |
Definition at line 158 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1814 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1099 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2097 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2092 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1240 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1111 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1666 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1687 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1819 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2112 of file sdl_context.cpp.
|
nodiscard |
main thread: draws the mapped renderers (rdpContext::bitmapRenderService) where the Geometry Tracking channel puts them
Definition at line 2431 of file sdl_context.cpp.
References freerdp_settings_get_bool().

| void SdlContext::push | ( | std::vector< SDL_Rect > && | rects | ) |
Definition at line 2106 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 2273 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1973 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1126 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2348 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2360 of file sdl_context.cpp.
| void SdlContext::rendererRemove | ( | Uint64 | id | ) |
Definition at line 2402 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2037 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1643 of file sdl_context.cpp.
| void SdlContext::setConnected | ( | bool | val | ) |
Definition at line 1987 of file sdl_context.cpp.
| void SdlContext::setCredentialsRead | ( | ) |
Definition at line 1839 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2022 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2016 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2124 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2167 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2151 of file sdl_context.cpp.
| void SdlContext::setHasCursor | ( | bool | val | ) |
Definition at line 127 of file sdl_context.cpp.
| void SdlContext::setMetadata | ( | ) |
Definition at line 137 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2136 of file sdl_context.cpp.
| void SdlContext::setMonitorIds | ( | const std::vector< SDL_DisplayID > & | ids | ) |
Definition at line 2079 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2173 of file sdl_context.cpp.
|
nodiscard |
Definition at line 178 of file sdl_context.cpp.
|
nodiscard |
Definition at line 1070 of file sdl_context.cpp.
|
nodiscard |
Definition at line 152 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2205 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2162 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2146 of file sdl_context.cpp.
|
nodiscard |
The stats and info overlay, SDL's thread
Definition at line 1065 of file sdl_context.cpp.
|
nodiscard |
Definition at line 2195 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 1084 of file sdl_context.cpp.
|
nodiscard |
Definition at line 636 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 2236 of file sdl_context.cpp.
References freerdp_settings_get_uint32().

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