libxputty  0.1
A damn tiny abstraction Layer to create X11 window/widgets with cairo surfaces
xlabel.h
Go to the documentation of this file.
1 /*
2  *
3  * Permission to use, copy, modify, and/or distribute this software for any
4  * purpose with or without fee is hereby granted.
5 
6  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
7  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
8  * AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
9  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
10  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
11  * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
12  * PERFORMANCE OF THIS SOFTWARE.
13  *
14  */
15 
16 #pragma once
17 
18 #ifndef XLABEL_H_
19 #define XLABEL_H_
20 
21 #include "xputty.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 
28 /**
29  * @brief add_label - add a label to a Widget_t
30  * @param *parent - pointer to the Widget_t request the label
31  * @param *label - Label to show on the button
32  * @param x,y,width,height - the position/geometry to create the label
33  * @return Widget_t* - pointer to the Widget_t label struct
34  */
35 
36 Widget_t* add_label(Widget_t *parent, const char * label,
37  int x, int y, int width, int height);
38 
39 #ifdef __cplusplus
40 }
41 #endif
42 
43 #endif //XLABEL_H_
xputty.h
add_label
Widget_t * add_label(Widget_t *parent, const char *label, int x, int y, int width, int height)
add_label - add a label to a Widget_t
Definition: xlabel.c:26
Widget_t
Widget_t - struct to hold the basic Widget_t info.
Definition: xwidget.h:298