NekoWM
A gfxprim proxy backend tiling window manager
Loading...
Searching...
No Matches
Data Fields
neko_view_slot_ops Struct Reference

A view slot ops. More...

#include <neko_view.h>

Data Fields

void(* exit )(struct neko_view_slot *self)
 Request child exit.
 
void(* event )(struct neko_view *self, gp_event *ev)
 A child input event.
 
void(* show )(struct neko_view *self)
 Show a view slot.
 
void(* hide )(struct neko_view *self)
 Hide a view slot.
 
void(* remove )(struct neko_view *self)
 Callback for a slot removal.
 
void(* repaint )(struct neko_view *self)
 Request full repaint.
 
void(* resize )(struct neko_view *self)
 Resize the child because the view was resized.
 

Detailed Description

A view slot ops.

Callback to render a slot content.

Definition at line 41 of file neko_view.h.

Field Documentation

◆ hide

void(* neko_view_slot_ops::hide) (struct neko_view *self)

Hide a view slot.

This is called in order to stop a slot rendering because the view the slot is inserted into is not visible on the screen anymore.

Definition at line 65 of file neko_view.h.

◆ remove

void(* neko_view_slot_ops::remove) (struct neko_view *self)

Callback for a slot removal.

This is called before a slot content is removed from a view.

If you free() the slot in this function you also need to set the view->slot pointer to NULL.

Definition at line 75 of file neko_view.h.

◆ show

void(* neko_view_slot_ops::show) (struct neko_view *self)

Show a view slot.

This is called in order to start a slot rendering because the view the slot is inserted into has became visible on the screen.

It's also called when a slot is inserted into a view that is already visible on the screen.

Definition at line 57 of file neko_view.h.


The documentation for this struct was generated from the following file: