PatchworkOS
Loading...
Searching...
No Matches
screen.h File Reference
#include <stdint.h>
#include "surface.h"

Go to the source code of this file.

Functions

void screen_init (void)
 
void screen_deinit (void)
 
void screen_transfer (surface_t *surface, const rect_t *rect)
 
void screen_transfer_blend (surface_t *surface, const rect_t *rect)
 
void screen_transfer_frontbuffer (surface_t *surface, const rect_t *rect)
 
void screen_swap (void)
 
uint64_t screen_width (void)
 
uint64_t screen_height (void)
 
void screen_rect (rect_t *rect)
 

Function Documentation

◆ screen_deinit()

void screen_deinit ( void  )

Definition at line 87 of file screen.c.

References backbuffer, free(), frontbuffer, fb_info_t::height, info, munmap(), and fb_info_t::stride.

Referenced by main().

◆ screen_height()

uint64_t screen_height ( void  )

Definition at line 199 of file screen.c.

References fb_info_t::height, and info.

Referenced by client_action_screen_info(), compositor_init(), and dwm_handle_mouse_event().

◆ screen_init()

void screen_init ( void  )

◆ screen_rect()

void screen_rect ( rect_t rect)

Definition at line 204 of file screen.c.

References screenRect.

◆ screen_swap()

◆ screen_transfer()

◆ screen_transfer_blend()

void screen_transfer_blend ( surface_t surface,
const rect_t rect 
)

◆ screen_transfer_frontbuffer()

◆ screen_width()

uint64_t screen_width ( void  )

Definition at line 194 of file screen.c.

References info, and fb_info_t::width.

Referenced by client_action_screen_info(), compositor_init(), and dwm_handle_mouse_event().