wlmaker
Loading...
Searching...
No Matches
Classes | Functions | Variables
iconified.c File Reference
#include "iconified.h"
#include "config.h"
#include "decorations.h"
#include "interactive.h"
#include "toolkit/gfxbuf.h"
#include <libbase/libbase.h>
#include <linux/input-event-codes.h>
Include dependency graph for iconified.c:

Classes

struct  _wlmaker_iconified_t
 
struct  _wlmaker_dockapp_iconified_t
 

Functions

static wlmaker_iconified_ticonified_from_interactive (wlmaker_interactive_t *interactive_ptr)
 
static void _iconified_enter (wlmaker_interactive_t *interactive_ptr)
 
static void _iconified_leave (wlmaker_interactive_t *interactive_ptr)
 
static void _iconified_motion (wlmaker_interactive_t *interactive_ptr, double x, double y)
 
static void _iconified_focus (wlmaker_interactive_t *interactive_ptr)
 
static void _iconified_button (wlmaker_interactive_t *interactive_ptr, double x, double y, struct wlr_pointer_button_event *wlr_pointer_button_event_ptr)
 
static void _iconified_destroy (wlmaker_interactive_t *interactive_ptr)
 
wlmaker_dockapp_iconified_twlmaker_dockapp_iconified_create (wlmaker_server_t *server_ptr)
 
void wlmaker_dockapp_iconified_destroy (wlmaker_dockapp_iconified_t *dai_ptr)
 
wlmaker_iconified_twlmaker_iconified_from_dockapp (wlmaker_dockapp_iconified_t *dai_ptr)
 
void wlmaker_dockapp_iconified_attach (wlmaker_dockapp_iconified_t *dai_ptr, struct wlr_surface *wlr_surface_ptr)
 
wlmaker_iconified_twlmaker_iconified_create (wlmaker_view_t *view_ptr)
 
void wlmaker_iconified_destroy (wlmaker_iconified_t *iconified_ptr)
 
void wlmaker_iconified_set_position (wlmaker_iconified_t *iconified_ptr, uint32_t x, uint32_t y)
 
wlmaker_view_twlmaker_view_from_iconified (wlmaker_iconified_t *iconified_ptr)
 
bs_dllist_node_t * wlmaker_dlnode_from_iconified (wlmaker_iconified_t *iconified_ptr)
 
bs_avltree_node_t * wlmaker_avlnode_from_iconified (wlmaker_iconified_t *iconified_ptr)
 
struct wlr_scene_node * wlmaker_wlr_scene_node_from_iconified (wlmaker_iconified_t *iconified_ptr)
 
struct wlr_scene_node * wlmaker_wlr_scene_node_from_iconified_scene_buffer (wlmaker_iconified_t *iconified_ptr)
 
wlmaker_iconified_twlmaker_iconified_from_dlnode (bs_dllist_node_t *dlnode_ptr)
 

Variables

const wlmaker_interactive_impl_t iconified_interactive_impl
 

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

◆ _iconified_button()

void _iconified_button ( wlmaker_interactive_t * interactive_ptr,
double x,
double y,
struct wlr_pointer_button_event * wlr_pointer_button_event_ptr )
static

Handles button events for the iconified.

Will un-minimize (restore) the view shown by the iconified.

Parameters
interactive_ptr
x
y
wlr_pointer_button_event_ptr

◆ _iconified_destroy()

void _iconified_destroy ( wlmaker_interactive_t * interactive_ptr)
static

Handler: Destroy interactive, wraps to wlmaker_iconified_destroy.

◆ _iconified_enter()

void _iconified_enter ( wlmaker_interactive_t * interactive_ptr)
static

Handler: Pointer enters the interactive.

◆ _iconified_focus()

void _iconified_focus ( wlmaker_interactive_t * interactive_ptr)
static

Handler, unused: Focus the iconified. There is no focus.

◆ _iconified_leave()

void _iconified_leave ( wlmaker_interactive_t * interactive_ptr)
static

Handler: Pointer leaves the interactive.

◆ _iconified_motion()

void _iconified_motion ( wlmaker_interactive_t * interactive_ptr,
double x,
double y )
static

Handler: Pointer motion.

◆ iconified_from_interactive()

wlmaker_iconified_t * iconified_from_interactive ( wlmaker_interactive_t * interactive_ptr)
static

Cast: Get the wlmaker_iconified_t from the pointer to interactive.

Parameters
interactive_ptr
Returns
Pointer to the wlmaker_iconified_t.

◆ wlmaker_avlnode_from_iconified()

bs_avltree_node_t * wlmaker_avlnode_from_iconified ( wlmaker_iconified_t * iconified_ptr)

Conversion: Gets a pointer to the avlnode of the iconified's interactive.

Parameters
iconified_ptr
Returns
Pointer.

◆ wlmaker_dlnode_from_iconified()

bs_dllist_node_t * wlmaker_dlnode_from_iconified ( wlmaker_iconified_t * iconified_ptr)

Conversion: Gets a pointer to the dlnode of the iconified

Parameters
iconified_ptr
Returns
Pointer.

◆ wlmaker_dockapp_iconified_attach()

void wlmaker_dockapp_iconified_attach ( wlmaker_dockapp_iconified_t * dai_ptr,
struct wlr_surface * wlr_surface_ptr )

Prototype: Attaches a surface to the DockApp.

◆ wlmaker_dockapp_iconified_create()

wlmaker_dockapp_iconified_t * wlmaker_dockapp_iconified_create ( wlmaker_server_t * server_ptr)

Prototype: Creates an iconified as DockApp.

◆ wlmaker_dockapp_iconified_destroy()

void wlmaker_dockapp_iconified_destroy ( wlmaker_dockapp_iconified_t * dai_ptr)

Prototype: Destroys the iconified as DockApp.

◆ wlmaker_iconified_create()

wlmaker_iconified_t * wlmaker_iconified_create ( wlmaker_view_t * view_ptr)

Creates an iconified, ie. a minimized representation of view_ptr.

Parameters
view_ptr

◆ wlmaker_iconified_destroy()

void wlmaker_iconified_destroy ( wlmaker_iconified_t * iconified_ptr)

Destroys the iconified.

Parameters
iconified_ptr

◆ wlmaker_iconified_from_dlnode()

wlmaker_iconified_t * wlmaker_iconified_from_dlnode ( bs_dllist_node_t * dlnode_ptr)

Conversion: Returns the iconified, given a pointer to it's dlnode.

Parameters
dlnode_ptr
Returns
Pointer.

◆ wlmaker_iconified_from_dockapp()

wlmaker_iconified_t * wlmaker_iconified_from_dockapp ( wlmaker_dockapp_iconified_t * dai_ptr)

Prototype: Gets the iconified from the DockApp.

◆ wlmaker_iconified_set_position()

void wlmaker_iconified_set_position ( wlmaker_iconified_t * iconified_ptr,
uint32_t x,
uint32_t y )

Sets the position of the iconified, relative to the tile container.

Parameters
iconified_ptr
x
y

◆ wlmaker_view_from_iconified()

wlmaker_view_t * wlmaker_view_from_iconified ( wlmaker_iconified_t * iconified_ptr)

Conversion: Retrieves the wlmaker_view_t represented by this iconified.

Parameters
iconified_ptr
Returns
Pointer to the view.

◆ wlmaker_wlr_scene_node_from_iconified()

struct wlr_scene_node * wlmaker_wlr_scene_node_from_iconified ( wlmaker_iconified_t * iconified_ptr)

Conversion: Lookups up the scene node of the iconified's interactive.

Parameters
iconified_ptr
Returns
Pointer.

◆ wlmaker_wlr_scene_node_from_iconified_scene_buffer()

struct wlr_scene_node * wlmaker_wlr_scene_node_from_iconified_scene_buffer ( wlmaker_iconified_t * iconified_ptr)

Conversion: Gets the scene node from the scene buffer.

TODO(kaese.nosp@m.r@gu.nosp@m.bbe.c.nosp@m.h): Remove, once the dockapp prototype is cleaned up.

Parameters
iconified_ptr
Returns
Pointer.

Variable Documentation

◆ iconified_interactive_impl

const wlmaker_interactive_impl_t iconified_interactive_impl
Initial value:
= {
.enter = _iconified_enter,
.leave = _iconified_leave,
.motion = _iconified_motion,
.focus = _iconified_focus,
.button = _iconified_button,
.destroy = _iconified_destroy
}
static void _iconified_button(wlmaker_interactive_t *interactive_ptr, double x, double y, struct wlr_pointer_button_event *wlr_pointer_button_event_ptr)
Definition iconified.c:403
static void _iconified_enter(wlmaker_interactive_t *interactive_ptr)
Definition iconified.c:355
static void _iconified_focus(wlmaker_interactive_t *interactive_ptr)
Definition iconified.c:386
static void _iconified_leave(wlmaker_interactive_t *interactive_ptr)
Definition iconified.c:365
static void _iconified_motion(wlmaker_interactive_t *interactive_ptr, double x, double y)
Definition iconified.c:375
static void _iconified_destroy(wlmaker_interactive_t *interactive_ptr)
Definition iconified.c:424

Handler implementation of the wlmaker_interactive_t for iconified.