|
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 |
| 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 | 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) |
| bool | hasCursor () const |
| void | setMetadata () |
| int | start () |
| int | join () |
| bool | shallAbort (bool ignoreDialogs=false) |
| bool | createWindows () |
| 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 () |
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 48 of file sdl_context.hpp.
|
explicit |
Definition at line 1768 of file SDL2/sdl_freerdp.cpp.
| bool SdlContext::addDisplayWindow | ( | SDL_DisplayID | id | ) |
Definition at line 1075 of file sdl_context.cpp.
| bool SdlContext::allWindowsHidden | ( | ) | const |
Definition at line 1142 of file sdl_context.cpp.
| COMMAND_LINE_ARGUMENT_A * SdlContext::args | ( | ) |
Definition at line 1710 of file sdl_context.cpp.
| size_t SdlContext::argsCount | ( | ) | const |
Definition at line 1715 of file sdl_context.cpp.
|
static |
Definition at line 1722 of file sdl_context.cpp.
| void SdlContext::cleanup | ( | ) |
Definition at line 121 of file sdl_context.cpp.
| rdpClientContext * SdlContext::common | ( | ) | const |
Definition at line 1782 of file SDL2/sdl_freerdp.cpp.
| bool SdlContext::contains | ( | const rdpPointer * | ptr | ) | const |
Definition at line 1759 of file sdl_context.cpp.
| rdpContext * SdlContext::context | ( | ) | const |
Definition at line 1777 of file SDL2/sdl_freerdp.cpp.
| bool SdlContext::createWindows | ( | ) |
Definition at line 380 of file sdl_context.cpp.
| bool SdlContext::credentialsRead | ( | ) | const |
Definition at line 1769 of file sdl_context.cpp.
| rdpPointer * SdlContext::cursor | ( | ) | const |
Definition at line 1954 of file sdl_context.cpp.
| bool SdlContext::detectDisplays | ( | ) |
Definition at line 1095 of file sdl_context.cpp.
| bool SdlContext::drawToWindow | ( | SdlWindow & | window, |
| const std::vector< SDL_Rect > & | rects = {} |
||
| ) |
Definition at line 1014 of file sdl_context.cpp.
| bool SdlContext::drawToWindows | ( | const std::vector< SDL_Rect > & | rects = {} | ) |
Definition at line 1802 of file sdl_context.cpp.
| int SdlContext::exitCode | ( | ) | const |
Definition at line 1065 of file sdl_context.cpp.
| std::shared_ptr< SdlAadAuthHelper > & SdlContext::getAadAuthHelper | ( | ) |
Definition at line 1787 of file SDL2/sdl_freerdp.cpp.
| sdlClip & SdlContext::getClipboardChannelContext | ( | ) |
Definition at line 1169 of file sdl_context.cpp.
| SdlConnectionDialogWrapper & SdlContext::getDialog | ( | ) |
Definition at line 1179 of file sdl_context.cpp.
| rdpMonitor SdlContext::getDisplay | ( | SDL_DisplayID | id | ) | const |
Definition at line 1110 of file sdl_context.cpp.
| sdlDispContext & SdlContext::getDisplayChannelContext | ( | ) |
Definition at line 1159 of file sdl_context.cpp.
| std::vector< SDL_DisplayID > SdlContext::getDisplayIds | ( | ) | const |
Definition at line 1115 of file sdl_context.cpp.
| SdlWindow * SdlContext::getFirstWindow | ( | ) |
Definition at line 1152 of file sdl_context.cpp.
| sdlInput & SdlContext::getInputChannelContext | ( | ) |
Definition at line 1164 of file sdl_context.cpp.
| SdlRail & SdlContext::getRailChannelContext | ( | ) |
Definition at line 1174 of file sdl_context.cpp.
| SdlWindow * SdlContext::getWindowForId | ( | SDL_WindowID | id | ) |
Definition at line 1134 of file sdl_context.cpp.
| const SdlWindow * SdlContext::getWindowForId | ( | SDL_WindowID | id | ) | const |
Definition at line 1126 of file sdl_context.cpp.
| wLog * SdlContext::getWLog | ( | ) |
Definition at line 1184 of file sdl_context.cpp.
| bool SdlContext::grabKeyboard | ( | ) | const |
Definition at line 2075 of file sdl_context.cpp.
| bool SdlContext::grabMouse | ( | ) | const |
Definition at line 2059 of file sdl_context.cpp.
| bool SdlContext::handleEvent | ( | const SDL_Event & | ev | ) |
Definition at line 1643 of file sdl_context.cpp.
| bool SdlContext::hasCursor | ( | ) | const |
Definition at line 83 of file sdl_context.cpp.
| bool SdlContext::isConnected | ( | ) | const |
Definition at line 1922 of file sdl_context.cpp.
| int SdlContext::join | ( | ) |
Definition at line 109 of file sdl_context.cpp.
| CriticalSection & SdlContext::lock | ( | ) |
Definition at line 1749 of file sdl_context.cpp.
| bool SdlContext::minimizeAllWindows | ( | ) |
Definition at line 1058 of file sdl_context.cpp.
| int64_t SdlContext::monitorId | ( | uint32_t | index | ) | const |
Definition at line 2015 of file sdl_context.cpp.
| const std::vector< SDL_DisplayID > & SdlContext::monitorIds | ( | ) | const |
Definition at line 2010 of file sdl_context.cpp.
| bool SdlContext::moveMouseTo | ( | const SDL_FPoint & | pos | ) |
Definition at line 1189 of file sdl_context.cpp.
| SDL_PixelFormat SdlContext::pixelFormat | ( | ) | const |
Definition at line 1070 of file sdl_context.cpp.
| SDL_FPoint SdlContext::pixelToScreen | ( | SDL_WindowID | id, |
| const SDL_FPoint & | pos | ||
| ) |
Definition at line 1607 of file sdl_context.cpp.
| SDL_FRect SdlContext::pixelToScreen | ( | SDL_WindowID | id, |
| const SDL_FRect & | pos, | ||
| bool | round = false |
||
| ) |
Definition at line 1628 of file sdl_context.cpp.
| std::vector< rdpPointer * > & SdlContext::pointers | ( | ) |
Definition at line 1754 of file sdl_context.cpp.
| std::vector< SDL_Rect > SdlContext::pop | ( | ) |
Definition at line 2030 of file sdl_context.cpp.
| void SdlContext::push | ( | std::vector< SDL_Rect > && | rects | ) |
Definition at line 2024 of file sdl_context.cpp.
| bool SdlContext::redraw | ( | bool | suppress = false | ) | const |
Definition at line 1903 of file sdl_context.cpp.
| bool SdlContext::removeDisplayWindow | ( | SDL_DisplayID | id | ) |
Definition at line 1085 of file sdl_context.cpp.
| bool SdlContext::restoreCursor | ( | ) |
Definition at line 1959 of file sdl_context.cpp.
| SDL_FPoint SdlContext::screenToPixel | ( | SDL_WindowID | id, |
| const SDL_FPoint & | pos | ||
| ) |
Definition at line 1584 of file sdl_context.cpp.
| void SdlContext::setConnected | ( | bool | val | ) |
Definition at line 1917 of file sdl_context.cpp.
| void SdlContext::setCredentialsRead | ( | ) |
Definition at line 1774 of file sdl_context.cpp.
| bool SdlContext::setCursor | ( | const rdpPointer * | cursor | ) |
Definition at line 1944 of file sdl_context.cpp.
| bool SdlContext::setCursor | ( | CursorType | type | ) |
Definition at line 1938 of file sdl_context.cpp.
| bool SdlContext::setFullscreen | ( | bool | enter, |
| bool | forceOriginalDisplay = false |
||
| ) |
Definition at line 2042 of file sdl_context.cpp.
| bool SdlContext::setGrabKeyboard | ( | bool | enter | ) |
Definition at line 2085 of file sdl_context.cpp.
| bool SdlContext::setGrabMouse | ( | bool | enter | ) |
Definition at line 2069 of file sdl_context.cpp.
| void SdlContext::setHasCursor | ( | bool | val | ) |
Definition at line 78 of file sdl_context.cpp.
| void SdlContext::setMetadata | ( | ) |
Definition at line 88 of file sdl_context.cpp.
| bool SdlContext::setMinimized | ( | ) |
Definition at line 2054 of file sdl_context.cpp.
| void SdlContext::setMonitorIds | ( | const std::vector< SDL_DisplayID > & | ids | ) |
Definition at line 2001 of file sdl_context.cpp.
| bool SdlContext::setResizeable | ( | bool | enable | ) |
Definition at line 2091 of file sdl_context.cpp.
| bool SdlContext::shallAbort | ( | bool | ignoreDialogs = false | ) |
Definition at line 129 of file sdl_context.cpp.
| int SdlContext::start | ( | ) |
Definition at line 103 of file sdl_context.cpp.
| bool SdlContext::toggleFullscreen | ( | ) |
Definition at line 2123 of file sdl_context.cpp.
| bool SdlContext::toggleGrabKeyboard | ( | ) |
Definition at line 2080 of file sdl_context.cpp.
| bool SdlContext::toggleGrabMouse | ( | ) |
Definition at line 2064 of file sdl_context.cpp.
| bool SdlContext::toggleResizeable | ( | ) |
Definition at line 2113 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.
| bool SdlContext::updateWindow | ( | SDL_WindowID | id | ) |
Definition at line 551 of file sdl_context.cpp.
| bool SdlContext::updateWindowList | ( | ) |
Definition at line 524 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.