Merged colours. More...
#include "config.h"
Go to the source code of this file.
Functions | |
const struct AttrColor * | merged_color_overlay (const struct AttrColor *base, const struct AttrColor *over) |
Combine two colours. | |
void | merged_colors_cleanup (void) |
Free the list of Merged colours. | |
void | merged_colors_init (void) |
Initialise the Merged colours. | |
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.h.
const struct AttrColor * merged_color_overlay | ( | const struct AttrColor * | base, |
const struct AttrColor * | over | ||
) |
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 107 of file merged.c.
void merged_colors_cleanup | ( | void | ) |
Free the list of Merged colours.
Definition at line 52 of file merged.c.