wlmaker
|
#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>
Go to the source code of this file.
Functions | |
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) |
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 [] |
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.
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.
wlr_scene_buffer_ptr | Buffer scene node to contain the button. |
cursor_ptr | |
view_ptr | |
descriptor_ptr | |
callback_ud_ptr | Argument to provide to item's callbacks. |
void wlmaker_menu_get_size | ( | wlmaker_interactive_t * | interactive_ptr, |
uint32_t * | width_ptr, | ||
uint32_t * | height_ptr ) |
Retrieves the size of the menu.
interactive_ptr | |
width_ptr | |
height_ptr |
|
extern |
Unit tests.