mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-02-14 18:34:28 +01:00
47 lines
894 B
C
47 lines
894 B
C
#ifndef SC_SDL_H
|
|
#define SC_SDL_H
|
|
|
|
#include "common.h"
|
|
|
|
#include <stdint.h>
|
|
#include <SDL3/SDL_render.h>
|
|
#include <SDL3/SDL_video.h>
|
|
|
|
#include "coords.h"
|
|
|
|
SDL_Window *
|
|
sc_sdl_create_window(const char *title, int64_t x, int64_t y, int64_t width,
|
|
int64_t height, int64_t flags);
|
|
|
|
struct sc_size
|
|
sc_sdl_get_window_size(SDL_Window *window);
|
|
|
|
struct sc_size
|
|
sc_sdl_get_window_size_in_pixels(SDL_Window *window);
|
|
|
|
void
|
|
sc_sdl_set_window_size(SDL_Window *window, struct sc_size size);
|
|
|
|
struct sc_point
|
|
sc_sdl_get_window_position(SDL_Window *window);
|
|
|
|
void
|
|
sc_sdl_set_window_position(SDL_Window *window, struct sc_point point);
|
|
|
|
void
|
|
sc_sdl_show_window(SDL_Window *window);
|
|
|
|
void
|
|
sc_sdl_hide_window(SDL_Window *window);
|
|
|
|
void
|
|
sc_sdl_restore_window(SDL_Window *window);
|
|
|
|
bool
|
|
sc_sdl_render_clear(SDL_Renderer *renderer);
|
|
|
|
void
|
|
sc_sdl_render_present(SDL_Renderer *renderer);
|
|
|
|
#endif
|