bug fixes + minimum and maximum window size options
This commit is contained in:
parent
d35c30c81c
commit
17d67cad27
8 changed files with 166 additions and 53 deletions
|
|
@ -107,6 +107,14 @@ PGPL_Renderer *pgpl_window_start_render(PGPL_Window *window, PGPL_Color color);
|
|||
* the pgpl_window_start_render function for more information. */
|
||||
void pgpl_window_finish_render(PGPL_Window *window, PGPL_Renderer *renderer);
|
||||
|
||||
/* This sets the minimum size that the given window can have. */
|
||||
void pgpl_window_set_minimum_size(PGPL_Window *window, uint32_t width,
|
||||
uint32_t height);
|
||||
|
||||
/* This sets the maximum size that the given window can have. */
|
||||
void pgpl_window_set_maximum_size(PGPL_Window *window, uint32_t width,
|
||||
uint32_t height);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -94,6 +94,16 @@ void pgpl_window_thread_reparent_to(PGPL_WindowThread *window_thread,
|
|||
* pgpl_window_get_raw_window for more information. */
|
||||
void *pgpl_window_thread_get_raw_window(PGPL_WindowThread *window_thread);
|
||||
|
||||
/* Threaded version of pgpl_window_set_minimum_size, see
|
||||
* pgpl_window_set_minimum_size for more information. */
|
||||
void pgpl_window_thread_set_minimum_size(PGPL_WindowThread *window_thread,
|
||||
uint32_t width, uint32_t height);
|
||||
|
||||
/* Threaded version of pgpl_window_set_maximum_size, see
|
||||
* pgpl_window_set_maximum_size for more information. */
|
||||
void pgpl_window_thread_set_maximum_size(PGPL_WindowThread *window_thread,
|
||||
uint32_t width, uint32_t height);
|
||||
|
||||
/* This function halts until the window_thread is destroyed. */
|
||||
void pgpl_window_thread_await_destruction(PGPL_WindowThread *window_thread);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue