iPXE
Data Structures | Functions | Variables
label.h File Reference

Text label widget. More...

#include <curses.h>
#include <ipxe/widget.h>

Go to the source code of this file.

Data Structures

struct  label
 A text label widget. More...
 

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
static void init_label (struct label *label, unsigned int row, unsigned int col, unsigned int width, const char *text)
 Initialise text label widget. More...
 

Variables

struct widget_operations label_operations
 

Detailed Description

Text label widget.

Definition in file label.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ init_label()

static void init_label ( struct label label,
unsigned int  row,
unsigned int  col,
unsigned int  width,
const char *  text 
)
inlinestatic

Initialise text label widget.

Parameters
labelText label widget
rowRow
colStarting column
widthWidth
textLabel text

Definition at line 35 of file label.h.

36  {
37 
38  init_widget ( &label->widget, &label_operations, row, col, width, 0 );
39  label->text = text;
40 }
static void init_widget(struct widget *widget, struct widget_operations *op, unsigned int row, unsigned int col, unsigned int width, unsigned int flags)
Initialise text widget.
Definition: widget.h:69
A text label widget.
Definition: label.h:16
struct widget widget
Text widget.
Definition: label.h:18
const char * text
Label text.
Definition: label.h:20
struct widget_operations label_operations

References init_widget(), label_operations, label::text, and label::widget.

Variable Documentation

◆ label_operations

struct widget_operations label_operations

Referenced by init_label().