wlmaker
Loading...
Searching...
No Matches
Macros | Functions | Variables
menu.h File Reference
#include "cursor.h"
#include "interactive.h"
#include "menu_item.h"
#include "view.h"
#include <wlr/types/wlr_buffer.h>
#include <wlr/types/wlr_scene.h>
Include dependency graph for menu.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

wlmaker_interactive_twlmaker_menu_create (struct wlr_scene_buffer *wlr_scene_buffer_ptr, wlmaker_cursor_t *cursor_ptr, wlmaker_view_t *view_ptr, const wlmaker_menu_item_descriptor_t *descriptor_ptr, void *callback_ud_ptr)
 
void wlmaker_menu_get_size (wlmaker_interactive_t *interactive_ptr, uint32_t *width_ptr, uint32_t *height_ptr)
 

Variables

const bs_test_case_t wlmaker_menu_test_cases []
 

Detailed Description

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

◆ wlmaker_menu_create()

wlmaker_interactive_t * wlmaker_menu_create ( struct wlr_scene_buffer * wlr_scene_buffer_ptr,
wlmaker_cursor_t * cursor_ptr,
wlmaker_view_t * view_ptr,
const wlmaker_menu_item_descriptor_t * descriptor_ptr,
void * callback_ud_ptr )

Creates a menu interactive.

Parameters
wlr_scene_buffer_ptrBuffer scene node to contain the button.
cursor_ptr
view_ptr
descriptor_ptr
callback_ud_ptrArgument to provide to item's callbacks.
Returns
A pointer to the interactive. Must be destroyed via |_menu_destroy|.

◆ wlmaker_menu_get_size()

void wlmaker_menu_get_size ( wlmaker_interactive_t * interactive_ptr,
uint32_t * width_ptr,
uint32_t * height_ptr )

Retrieves the size of the menu.

Parameters
interactive_ptr
width_ptr
height_ptr

Variable Documentation

◆ wlmaker_menu_test_cases

const bs_test_case_t wlmaker_menu_test_cases[]
extern

Unit tests.