FreeRDP
SDL3/dialogs/sdl_widget.cpp File Reference
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <SDL3/SDL.h>
#include <SDL3_ttf/SDL_ttf.h>
#include "sdl_widget.hpp"
#include "../sdl_utils.hpp"
#include "res/sdl3_resource_manager.hpp"
#include <freerdp/log.h>

Macros

#define TAG   CLIENT_TAG("SDL.widget")
 

Functions

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

Variables

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

Macro Definition Documentation

◆ TAG

#define TAG   CLIENT_TAG("SDL.widget")

FreeRDP: A Remote Desktop Protocol Implementation SDL Client helper dialogs

Copyright 2023 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.

Function Documentation

◆ clear_window()

bool clear_window ( SDL_Renderer *  renderer)

◆ draw_rect()

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

Variable Documentation

◆ backgroundcolor

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

◆ hpadding

const Uint32 hpadding = 10
static