RetroArch
Macros | Functions | Variables
win32_common.h File Reference
#include <string.h>
#include <windows.h>
#include <multimon.h>
#include <boolean.h>
#include <retro_common_api.h>
#include <retro_environment.h>
#include "../../driver.h"
#include "../video_driver.h"
#include "../../ui/drivers/ui_win32_resource.h"
#include "../../ui/drivers/ui_win32.h"
Include dependency graph for win32_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define WIN32_LEAN_AND_MEAN
 
#define COMPILE_MULTIMON_STUBS
 

Functions

void win32_monitor_get_info (void)
 
void win32_monitor_info (void *data, void *hm_data, unsigned *mon_id)
 
int win32_change_display_settings (const char *str, void *devmode_data, unsigned flags)
 
void create_graphics_context (HWND hwnd, bool *quit)
 
void create_gdi_context (HWND hwnd, bool *quit)
 
bool gdi_has_menu_frame (void)
 
bool win32_window_init (WNDCLASSEX *wndclass, bool fullscreen, const char *class_name)
 
void win32_set_style (MONITORINFOEX *current_mon, HMONITOR *hm_to_use, unsigned *width, unsigned *height, bool fullscreen, bool windowed_full, RECT *rect, RECT *mon_rect, DWORD *style)
 
void win32_monitor_from_window (void)
 
void win32_monitor_init (void)
 
bool win32_set_video_mode (void *data, unsigned width, unsigned height, bool fullscreen)
 
bool win32_window_create (void *data, unsigned style, RECT *mon_rect, unsigned width, unsigned height, bool fullscreen)
 
bool win32_suppress_screensaver (void *data, bool enable)
 
bool win32_get_metrics (void *data, enum display_metric_types type, float *value)
 
void win32_show_cursor (bool state)
 
HWND win32_get_window (void)
 
bool win32_has_focus (void)
 
void win32_check_window (bool *quit, bool *resize, unsigned *width, unsigned *height)
 
void win32_set_window (unsigned *width, unsigned *height, bool fullscreen, bool windowed_full, void *rect_data)
 
bool win32_get_video_output (DEVMODE *dm, int mode, size_t len)
 
void win32_get_video_output_size (unsigned *width, unsigned *height)
 
void win32_get_video_output_prev (unsigned *width, unsigned *height)
 
void win32_get_video_output_next (unsigned *width, unsigned *height)
 
void win32_window_reset (void)
 
void win32_destroy_window (void)
 
bool win32_taskbar_is_created (void)
 
void win32_set_taskbar_created (bool created)
 
float win32_get_refresh_rate (void *data)
 
LRESULT CALLBACK WndProcGDI (HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam)
 
LRESULT win32_menu_loop (HWND owner, WPARAM wparam)
 
bool win32_load_content_from_gui (const char *szFilename)
 

Variables

RETRO_BEGIN_DECLS unsigned g_win32_resize_width
 
unsigned g_win32_resize_height
 
bool g_win32_inited
 
bool g_win32_restore_desktop
 
ui_window_win32_t main_window
 

Macro Definition Documentation

◆ COMPILE_MULTIMON_STUBS

#define COMPILE_MULTIMON_STUBS

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

Function Documentation

◆ create_gdi_context()

void create_gdi_context ( HWND  hwnd,
bool quit 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_graphics_context()

void create_graphics_context ( HWND  hwnd,
bool quit 
)
Here is the call graph for this function:

◆ gdi_has_menu_frame()

bool gdi_has_menu_frame ( void  )
Here is the caller graph for this function:

◆ win32_change_display_settings()

int win32_change_display_settings ( const char *  str,
void devmode_data,
unsigned  flags 
)
Here is the caller graph for this function:

◆ win32_check_window()

void win32_check_window ( bool quit,
bool resize,
unsigned *  width,
unsigned *  height 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ win32_destroy_window()

void win32_destroy_window ( void  )
Here is the caller graph for this function:

◆ win32_get_metrics()

bool win32_get_metrics ( void data,
enum display_metric_types  type,
float *  value 
)
Here is the caller graph for this function:

◆ win32_get_refresh_rate()

float win32_get_refresh_rate ( void data)
Here is the call graph for this function:

◆ win32_get_video_output()

bool win32_get_video_output ( DEVMODE *  dm,
int  mode,
size_t  len 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ win32_get_video_output_next()

void win32_get_video_output_next ( unsigned *  width,
unsigned *  height 
)
Here is the call graph for this function:

◆ win32_get_video_output_prev()

void win32_get_video_output_prev ( unsigned *  width,
unsigned *  height 
)
Here is the call graph for this function:

◆ win32_get_video_output_size()

void win32_get_video_output_size ( unsigned *  width,
unsigned *  height 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ win32_get_window()

HWND win32_get_window ( void  )
Here is the caller graph for this function:

◆ win32_has_focus()

bool win32_has_focus ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ win32_load_content_from_gui()

bool win32_load_content_from_gui ( const char *  szFilename)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ win32_menu_loop()

LRESULT win32_menu_loop ( HWND  owner,
WPARAM  wparam 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ win32_monitor_from_window()

void win32_monitor_from_window ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ win32_monitor_get_info()

void win32_monitor_get_info ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ win32_monitor_info()

void win32_monitor_info ( void data,
void hm_data,
unsigned *  mon_id 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ win32_monitor_init()

void win32_monitor_init ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ win32_set_style()

void win32_set_style ( MONITORINFOEX *  current_mon,
HMONITOR *  hm_to_use,
unsigned *  width,
unsigned *  height,
bool  fullscreen,
bool  windowed_full,
RECT *  rect,
RECT *  mon_rect,
DWORD *  style 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ win32_set_taskbar_created()

void win32_set_taskbar_created ( bool  created)
Here is the caller graph for this function:

◆ win32_set_video_mode()

bool win32_set_video_mode ( void data,
unsigned  width,
unsigned  height,
bool  fullscreen 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ win32_set_window()

void win32_set_window ( unsigned *  width,
unsigned *  height,
bool  fullscreen,
bool  windowed_full,
void rect_data 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ win32_show_cursor()

void win32_show_cursor ( bool  state)
Here is the caller graph for this function:

◆ win32_suppress_screensaver()

bool win32_suppress_screensaver ( void data,
bool  enable 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ win32_taskbar_is_created()

bool win32_taskbar_is_created ( void  )
Here is the caller graph for this function:

◆ win32_window_create()

bool win32_window_create ( void data,
unsigned  style,
RECT *  mon_rect,
unsigned  width,
unsigned  height,
bool  fullscreen 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ win32_window_init()

bool win32_window_init ( WNDCLASSEX *  wndclass,
bool  fullscreen,
const char *  class_name 
)
Here is the caller graph for this function:

◆ win32_window_reset()

void win32_window_reset ( void  )
Here is the caller graph for this function:

◆ WndProcGDI()

LRESULT CALLBACK WndProcGDI ( HWND  hwnd,
UINT  message,
WPARAM  wparam,
LPARAM  lparam 
)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ g_win32_inited

bool g_win32_inited

◆ g_win32_resize_height

unsigned g_win32_resize_height

◆ g_win32_resize_width

RETRO_BEGIN_DECLS unsigned g_win32_resize_width

◆ g_win32_restore_desktop

bool g_win32_restore_desktop

◆ main_window

ui_window_win32_t main_window