Quoted style. More...
#include "config.h"
#include <stdbool.h>
#include <stddef.h>
Go to the source code of this file.
Data Structures | |
struct | QuoteStyle |
Style of quoted text. More... | |
Functions | |
struct QuoteStyle * | qstyle_classify (struct QuoteStyle **quote_list, const char *qptr, size_t length, bool *force_redraw, int *q_level) |
Find a style for a string. | |
void | qstyle_free_tree (struct QuoteStyle **quote_list) |
Free an entire tree of QuoteStyle. | |
void | qstyle_recolor (struct QuoteStyle *quote_list) |
Recolour quotes after colour changes. | |
Quoted style.
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 qstyle.h.
struct QuoteStyle * qstyle_classify | ( | struct QuoteStyle ** | quote_list, |
const char * | qptr, | ||
size_t | length, | ||
bool * | force_redraw, | ||
int * | q_level | ||
) |
Find a style for a string.
[out] | quote_list | List of quote colours |
[in] | qptr | String to classify |
[in] | length | Length of string |
[out] | force_redraw | Set to true if a screen redraw is needed |
[out] | q_level | Quoting level |
ptr | Quoting style |
Definition at line 136 of file qstyle.c.
void qstyle_free_tree | ( | struct QuoteStyle ** | quote_list | ) |
Free an entire tree of QuoteStyle.
[out] | quote_list | Quote list to free |
Definition at line 58 of file qstyle.c.
void qstyle_recolor | ( | struct QuoteStyle * | quote_list | ) |
Recolour quotes after colour changes.
quote_list | List of quote colours |
Definition at line 464 of file qstyle.c.