xref: /netbsd-src/usr.bin/aiomixer/draw.h (revision 26802ffd8d1ee1015e9966212d57066718636bef)
1*26802ffdSnia /* $NetBSD: draw.h,v 1.1 2021/05/07 16:29:24 nia Exp $ */
2*26802ffdSnia /*-
3*26802ffdSnia  * Copyright (c) 2021 The NetBSD Foundation, Inc.
4*26802ffdSnia  * All rights reserved.
5*26802ffdSnia  *
6*26802ffdSnia  * This code is derived from software contributed to The NetBSD Foundation
7*26802ffdSnia  * by Nia Alarie.
8*26802ffdSnia  *
9*26802ffdSnia  * Redistribution and use in source and binary forms, with or without
10*26802ffdSnia  * modification, are permitted provided that the following conditions
11*26802ffdSnia  * are met:
12*26802ffdSnia  * 1. Redistributions of source code must retain the above copyright
13*26802ffdSnia  *    notice, this list of conditions and the following disclaimer.
14*26802ffdSnia  * 2. Redistributions in binary form must reproduce the above copyright
15*26802ffdSnia  *    notice, this list of conditions and the following disclaimer in the
16*26802ffdSnia  *    documentation and/or other materials provided with the distribution.
17*26802ffdSnia  *
18*26802ffdSnia  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19*26802ffdSnia  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20*26802ffdSnia  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21*26802ffdSnia  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22*26802ffdSnia  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23*26802ffdSnia  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24*26802ffdSnia  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25*26802ffdSnia  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26*26802ffdSnia  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27*26802ffdSnia  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28*26802ffdSnia  * POSSIBILITY OF SUCH DAMAGE.
29*26802ffdSnia  */
30*26802ffdSnia #ifndef DRAW_H
31*26802ffdSnia #define DRAW_H
32*26802ffdSnia 
33*26802ffdSnia #include <sys/audioio.h>
34*26802ffdSnia #include <stdbool.h>
35*26802ffdSnia #include "app.h"
36*26802ffdSnia 
37*26802ffdSnia void draw_mixer_select(unsigned int, unsigned int);
38*26802ffdSnia 
39*26802ffdSnia void create_widgets(struct aiomixer *);
40*26802ffdSnia 
41*26802ffdSnia void resize_widgets(struct aiomixer *);
42*26802ffdSnia 
43*26802ffdSnia void draw_control(struct aiomixer *, struct aiomixer_control *, bool);
44*26802ffdSnia 
45*26802ffdSnia void draw_screen(struct aiomixer *);
46*26802ffdSnia 
47*26802ffdSnia void draw_classbar(struct aiomixer *);
48*26802ffdSnia 
49*26802ffdSnia void draw_header(struct aiomixer *);
50*26802ffdSnia 
51*26802ffdSnia #endif
52