sdl_widget.cpp File Reference
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <SDL.h>
#include <SDL_ttf.h>
#include "sdl_widget.hpp"
#include "../sdl_utils.hpp"
#include "res/sdl_resource_manager.hpp"
#include <freerdp/log.h>


#define TAG   CLIENT_TAG("SDL.widget")


static bool draw_rect (SDL_Renderer *renderer, const SDL_Rect *rect, SDL_Color color)
bool clear_window (SDL_Renderer *renderer)


static const SDL_Color backgroundcolor = { 0x38, 0x36, 0x35, 0xff }
static const Uint32 hpadding = 10

Macro Definition Documentation


#define TAG   CLIENT_TAG("SDL.widget")

FreeRDP: A Remote Desktop Protocol Implementation SDL Client helper dialogs

Copyright 2023 Armin Novak

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

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.

Function Documentation

◆ clear_window()

bool clear_window ( SDL_Renderer *  renderer)
Here is the caller graph for this function:

◆ draw_rect()

static bool draw_rect ( SDL_Renderer *  renderer,
const SDL_Rect *  rect,
SDL_Color  color 
Here is the caller graph for this function:

Variable Documentation

◆ backgroundcolor

const SDL_Color backgroundcolor = { 0x38, 0x36, 0x35, 0xff }

◆ hpadding

const Uint32 hpadding = 10