Merged colours. More...
#include "attr.h"
Include dependency graph for merged.h:
This graph shows which files directly or indirectly include this file: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 (struct AttrColorList *merged_colors) |
| Free the list of Merged colours. | |
| void | merged_colors_init (struct AttrColorList *merged_colors) |
| 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 110 of file merged.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void merged_colors_cleanup | ( | struct AttrColorList * | merged_colors | ) |
Free the list of Merged colours.
| merged_colors | List of merged colours |
Definition at line 54 of file merged.c.
Here is the call graph for this function:
Here is the caller graph for this function: