wlmaker
|
#include <content.h>
Public Attributes | |
uint32_t(* | request_maximized )(wlmtk_content_t *content_ptr, bool maximized) |
uint32_t(* | request_fullscreen )(wlmtk_content_t *content_ptr, bool fullscreen) |
uint32_t(* | request_size )(wlmtk_content_t *content_ptr, int width, int height) |
void(* | request_close )(wlmtk_content_t *content_ptr) |
void(* | set_activated )(wlmtk_content_t *content_ptr, bool activated) |
Virtual method table of wlmtk_content_t.
void(* _wlmtk_content_vmt_t::request_close) (wlmtk_content_t *content_ptr) |
Requests the content to close.
content_ptr |
uint32_t(* _wlmtk_content_vmt_t::request_fullscreen) (wlmtk_content_t *content_ptr, bool fullscreen) |
Requests the content to be set to fullscreen mode.
Some contents may adjust the decoration suitably. Once the content has changed to fullscreen mode (potentially an asynchronous operation), wlmtk_window_commit_fullscreen ought to be called, if the content belongs to a window.
content_ptr | |
fullscreen |
uint32_t(* _wlmtk_content_vmt_t::request_maximized) (wlmtk_content_t *content_ptr, bool maximized) |
Requests the content to be set to maximized mode.
Once the content has changed to maximized
mode (potentially an asynchronous operation), wlmtk_window_commit_maximized ought to be called, if the content belongs to a window.
content_ptr | |
maximized |
uint32_t(* _wlmtk_content_vmt_t::request_size) (wlmtk_content_t *content_ptr, int width, int height) |
Requests the content to change to the specified size.
This may be implemented as an asynchronous implementation. Once the content has committed the adapted size, wlmtk_content_commit should be called with the corresponding serial.
content_ptr | |
width | |
height |
void(* _wlmtk_content_vmt_t::set_activated) (wlmtk_content_t *content_ptr, bool activated) |
Sets whether this content as activated (keyboard focus).
The implementation must (for the effective contained element) issue a call to wlmtk_container_set_keyboard_focus_element to claim or release keyboard focus.
content_ptr | |
activated |