FreeRDP
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>

Macros

#define TAG   CLIENT_TAG("SDL.widget")
 

Functions

static bool draw_rect (SDL_Renderer *renderer, const SDL_Rect *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)
Here is the caller graph for this function:

◆ draw_rect()

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

Variable Documentation

◆ backgroundcolor

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

◆ hpadding

const Uint32 hpadding = 10
static