Merged colours. More...
#include "config.h"
#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>
#include "mutt/lib.h"
#include "attr.h"
#include "color.h"
#include "curses2.h"
#include "debug.h"
Go to the source code of this file.
Functions | |
void | merged_colors_init (void) |
Initialise the Merged colours. More... | |
void | merged_colors_clear (void) |
Free the list of Merged colours. More... | |
struct AttrColor * | merged_colors_find (int fg, int bg, int attrs) |
Find a Merged colour. More... | |
struct AttrColor * | merged_color_overlay (struct AttrColor *base, struct AttrColor *over) |
Combine two colours. More... | |
Variables | |
struct AttrColorList | MergedColors |
Array of user colours. More... | |
Merged colours.
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 merged.c.
void merged_colors_init | ( | void | ) |
void merged_colors_clear | ( | void | ) |
Free the list of Merged colours.
Definition at line 54 of file merged.c.
struct AttrColor * merged_colors_find | ( | int | fg, |
int | bg, | ||
int | attrs | ||
) |
Find a Merged colour.
fg | Foreground colour |
bg | Background colour |
attrs | Attributes, e.g. A_UNDERLINE |
ptr | Matching Merged colour |
Definition at line 74 of file merged.c.
Combine two colours.
base | Base colour |
over | Overlay colour |
ptr | Merged colour |
If either the foreground or background of the overlay is 'default', then the base colour will show through. The attributes of both base and overlay will be OR'd together.
Definition at line 109 of file merged.c.