wlmaker
Loading...
Searching...
No Matches
xdg_popup.c File Reference
#include "xdg_popup.h"
#include <wlr/types/wlr_scene.h>
Include dependency graph for xdg_popup.c:

Functions

static void handle_reposition (struct wl_listener *listener_ptr, void *data_ptr)
 
static void handle_destroy (struct wl_listener *listener_ptr, void *data_ptr)
 
static void handle_new_popup (struct wl_listener *listener_ptr, void *data_ptr)
 
static void handle_surface_map (struct wl_listener *listener_ptr, void *data_ptr)
 
wlmaker_xdg_popup_twlmaker_xdg_popup_create (struct wlr_xdg_popup *wlr_xdg_popup_ptr, wlmtk_env_t *env_ptr)
 
void wlmaker_xdg_popup_destroy (wlmaker_xdg_popup_t *wlmaker_xdg_popup_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

◆ handle_destroy()

void handle_destroy ( struct wl_listener * listener_ptr,
void * data_ptr )
static

Handles popup destruction: Removes from parent content, and destroy.

◆ handle_new_popup()

void handle_new_popup ( struct wl_listener * listener_ptr,
void * data_ptr )
static

Handles further popups. Creates them and adds them to parent's content.

◆ handle_reposition()

void handle_reposition ( struct wl_listener * listener_ptr,
void * data_ptr )
static

Handles repositioning. Yet unimplemented.

◆ handle_surface_map()

void handle_surface_map ( struct wl_listener * listener_ptr,
void * data_ptr )
static

Handler for the map signal of the wlmtk_surface_t.

The only aspect to handle here is the positioning of the surface. Note: It might be recommendable to move this under a configure handler (?).

Parameters
listener_ptr
data_ptr

◆ wlmaker_xdg_popup_create()

wlmaker_xdg_popup_t * wlmaker_xdg_popup_create ( struct wlr_xdg_popup * wlr_xdg_popup_ptr,
wlmtk_env_t * env_ptr )

Creates a popup.

Parameters
wlr_xdg_popup_ptr
env_ptr

◆ wlmaker_xdg_popup_destroy()

void wlmaker_xdg_popup_destroy ( wlmaker_xdg_popup_t * wlmaker_xdg_popup_ptr)

Destroys the popup.

Parameters
wlmaker_xdg_popup_ptr