Lines Matching defs:state
203 ParseState*& state)
234 state = new ParseState(state);
235 state->bold = true;
237 state = new ParseState(state);
238 state->italic = true;
240 state = new ParseState(state);
241 state->underlined = true;
243 state = new ParseState(state);
249 state->color.red = (colorInt & 0xff0000) >> 16;
250 state->color.green = (colorInt & 0x00ff00) >> 8;
251 state->color.blue = (colorInt & 0x0000ff);
257 // Closing tag, pop state
258 if (state->previous != NULL) {
259 ParseState* oldState = state;
260 state = state->previous;
269 apply_state(BTextView* textView, const ParseState* state, BFont font,
273 if (state->bold || state->italic || state->underlined) {
274 if (state->bold)
276 if (state->italic)
280 if (state->underlined)
286 textView->SetFontAndColor(&font, B_FONT_ALL, &state->color);
299 ParseState* state = &rootState;
305 bool stateChanged = find_next_tag(string, nextPos, tagLength, state);
314 apply_state(textView, state, font, changeColor);
318 while (state->previous != NULL) {
319 ParseState* oldState = state;
320 state = state->previous;