wlmaker
Loading...
Searching...
No Matches
Public Attributes | List of all members
_wlmtk_content_vmt_t Struct Reference

#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)
 

Detailed Description

Virtual method table of wlmtk_content_t.

Member Data Documentation

◆ request_close

void(* _wlmtk_content_vmt_t::request_close) (wlmtk_content_t *content_ptr)

Requests the content to close.

Parameters
content_ptr

◆ request_fullscreen

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.

Parameters
content_ptr
fullscreen
Returns
XDG toplevel configuration serial.

◆ request_maximized

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.

Parameters
content_ptr
maximized
Returns
XDG toplevel configuration serial.

◆ request_size

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.

Parameters
content_ptr
width
height
Returns
XDG toplevel configuration serial.

◆ set_activated

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.

Parameters
content_ptr
activated

The documentation for this struct was generated from the following file: