Curses Colour. More...
Include dependency graph for curses2.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | CursesColor |
| Colour in the ncurses palette. More... | |
Typedefs | |
| typedef int32_t | color_t |
| Type for 24-bit colour value. | |
Functions | |
| TAILQ_HEAD (CursesColorList, CursesColor) | |
| void | curses_color_free (struct CursesColor **ptr) |
| Free a CursesColor. | |
| struct CursesColor * | curses_color_new (color_t fg, color_t bg) |
| Create a new CursesColor. | |
| void | curses_colors_init (void) |
| Initialise the Curses colours. | |
| struct CursesColor * | curses_colors_find (color_t fg, color_t bg) |
| Find a Curses colour by foreground/background. | |
Curses Colour.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file curses2.h.
| TAILQ_HEAD | ( | CursesColorList | , |
| CursesColor | ) |
| void curses_color_free | ( | struct CursesColor ** | ptr | ) |
Free a CursesColor.
| ptr | CursesColor to be freed |
Definition at line 120 of file curses.c.
Here is the call graph for this function:
Here is the caller graph for this function:| struct CursesColor * curses_color_new | ( | color_t | fg, |
| color_t | bg ) |
Create a new CursesColor.
| fg | Foreground colour |
| bg | Background colour |
| ptr | New CursesColor |
If the colour already exists, this function will return a pointer to the object (and increase its ref-count).
Definition at line 151 of file curses.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void curses_colors_init | ( | void | ) |
Initialise the Curses colours.
Definition at line 44 of file curses.c.
Here is the call graph for this function:
Here is the caller graph for this function:| struct CursesColor * curses_colors_find | ( | color_t | fg, |
| color_t | bg ) |
Find a Curses colour by foreground/background.
| fg | Foreground colour |
| bg | Background colour |
| ptr | Curses colour |
Definition at line 57 of file curses.c.
Here is the call graph for this function:
Here is the caller graph for this function: