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

Go to the source code of this file.

Functions

wlmaker_interactive_twlmaker_tile_create (struct wlr_scene_buffer *wlr_scene_buffer_ptr, wlmaker_cursor_t *cursor_ptr, wlmaker_interactive_callback_t tile_callback, void *tile_callback_arg, struct wlr_buffer *tile_released_ptr)
 
void wlmaker_tile_set_texture (wlmaker_interactive_t *interactive_ptr, struct wlr_buffer *tile_buffer_ptr)
 

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_tile_create()

wlmaker_interactive_t * wlmaker_tile_create ( struct wlr_scene_buffer * wlr_scene_buffer_ptr,
wlmaker_cursor_t * cursor_ptr,
wlmaker_interactive_callback_t tile_callback,
void * tile_callback_arg,
struct wlr_buffer * tile_released_ptr )

Creates a tile interactive.

Parameters
wlr_scene_buffer_ptrBuffer scene node to contain the tile.
cursor_ptr
tile_callbackWill be called back when the tile is clicked.
tile_callback_argArgument to provide to |tile_callback|
tile_released_ptrWLR buffer, texture in nominal state.
Returns
A pointer to the interactive.

◆ wlmaker_tile_set_texture()

void wlmaker_tile_set_texture ( wlmaker_interactive_t * interactive_ptr,
struct wlr_buffer * tile_buffer_ptr )

Updates the texture for the tile. This will replace and release any earlier texture.

Parameters
interactive_ptr
tile_buffer_ptrWLR buffer, new texture to use.