FreeRDP
SDL3/sdl_utils.hpp File Reference
#include <winpr/synch.h>
#include <winpr/wlog.h>
#include <SDL3/SDL.h>
#include <string>
#include <vector>
#include <memory>
#include <functional>
This graph shows which files directly or indirectly include this file:

Data Structures

class  CriticalSection
 
class  WinPREvent
 
struct  SDL_UserAuthArg
 

Macros

#define sdl_log_error(res, log, what)   sdl_log_error_ex(res, log, what, __FILE__, __LINE__, __func__)
 

Typedefs

template<typename T >
using deleted_unique_ptr = std::unique_ptr< T, std::function< void(T *)> >
 

Enumerations

enum  {
  SDL_EVENT_USER_UPDATE = SDL_EVENT_USER + 1 , SDL_EVENT_USER_CREATE_WINDOWS , SDL_EVENT_USER_WINDOW_RESIZEABLE , SDL_EVENT_USER_WINDOW_FULLSCREEN ,
  SDL_EVENT_USER_WINDOW_MINIMIZE , SDL_EVENT_USER_POINTER_NULL , SDL_EVENT_USER_POINTER_DEFAULT , SDL_EVENT_USER_POINTER_POSITION ,
  SDL_EVENT_USER_POINTER_SET , SDL_EVENT_USER_QUIT , SDL_EVENT_USER_CERT_DIALOG , SDL_EVENT_USER_SHOW_DIALOG ,
  SDL_EVENT_USER_AUTH_DIALOG , SDL_EVENT_USER_SCARD_DIALOG , SDL_EVENT_USER_RETRY_DIALOG , SDL_EVENT_USER_CERT_RESULT ,
  SDL_EVENT_USER_SHOW_RESULT , SDL_EVENT_USER_AUTH_RESULT , SDL_EVENT_USER_SCARD_RESULT
}
 

Functions

BOOL sdl_push_user_event (Uint32 type,...)
 
bool sdl_push_quit ()
 
std::string sdl_window_event_str (Uint32 ev)
 
const char * sdl_event_type_str (Uint32 type)
 
const char * sdl_error_string (Uint32 res)
 
BOOL sdl_log_error_ex (Uint32 res, wLog *log, const char *what, const char *file, size_t line, const char *fkt)
 

Macro Definition Documentation

◆ sdl_log_error

#define sdl_log_error (   res,
  log,
  what 
)    sdl_log_error_ex(res, log, what, __FILE__, __LINE__, __func__)

Typedef Documentation

◆ deleted_unique_ptr

template<typename T >
using deleted_unique_ptr = std::unique_ptr<T, std::function<void(T*)> >

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.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SDL_EVENT_USER_UPDATE 
SDL_EVENT_USER_CREATE_WINDOWS 
SDL_EVENT_USER_WINDOW_RESIZEABLE 
SDL_EVENT_USER_WINDOW_FULLSCREEN 
SDL_EVENT_USER_WINDOW_MINIMIZE 
SDL_EVENT_USER_POINTER_NULL 
SDL_EVENT_USER_POINTER_DEFAULT 
SDL_EVENT_USER_POINTER_POSITION 
SDL_EVENT_USER_POINTER_SET 
SDL_EVENT_USER_QUIT 
SDL_EVENT_USER_CERT_DIALOG 
SDL_EVENT_USER_SHOW_DIALOG 
SDL_EVENT_USER_AUTH_DIALOG 
SDL_EVENT_USER_SCARD_DIALOG 
SDL_EVENT_USER_RETRY_DIALOG 
SDL_EVENT_USER_CERT_RESULT 
SDL_EVENT_USER_SHOW_RESULT 
SDL_EVENT_USER_AUTH_RESULT 
SDL_EVENT_USER_SCARD_RESULT 

Function Documentation

◆ sdl_error_string()

const char* sdl_error_string ( Uint32  res)
Here is the caller graph for this function:

◆ sdl_event_type_str()

const char* sdl_event_type_str ( Uint32  type)

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.

Here is the caller graph for this function:

◆ sdl_log_error_ex()

BOOL sdl_log_error_ex ( Uint32  res,
wLog *  log,
const char *  what,
const char *  file,
size_t  line,
const char *  fkt 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdl_push_quit()

bool sdl_push_quit ( )
Here is the caller graph for this function:

◆ sdl_push_user_event()

BOOL sdl_push_user_event ( Uint32  type,
  ... 
)
Here is the caller graph for this function:

◆ sdl_window_event_str()

std::string sdl_window_event_str ( Uint32  ev)
Here is the call graph for this function: