Describes the styling of a section of text.

seduce_text_block_draw

uint seduce_text_block_draw(float pos_x, float pos_y, float line_size, float height, float line_spacing, STextBlockAlignmentStyle style, const char *text, uint text_pos, STextBlockMode *modes, uint mode_count);

Description: Draws a block of mono spaced text. text_pos denotes the starting point in the text string where it should be drawn. This makes it possible to connect multiple blocks togerter and scroll text without needing to update the STextBlockMode array.

Types:

Enum:

STextBlockAlignmentStyle

SEDUCE_TBAS_LEFT

Description: Left aligned text.

SEDUCE_TBAS_RIGHT

Description: Right aligned text.

SEDUCE_TBAS_CENTER

Description: Center aligned text.

SEDUCE_TBAS_STRETCH

Description: Text stretched out to align with both left and right.

SEDUCE_TBAS_COUNT

seduce_text_block_height

float seduce_text_block_height(float line_size, float line_spacing, STextBlockAlignmentStyle style, const char *text, uint pos, STextBlockMode *modes, uint mode_count, uint end);

Description: computes the height needed to fit characters until "end" drawn by seduce_text_block_draw.

Types:

Enum:

STextBlockAlignmentStyle

SEDUCE_TBAS_LEFT

Description: Left aligned text.

SEDUCE_TBAS_RIGHT

Description: Right aligned text.

SEDUCE_TBAS_CENTER

Description: Center aligned text.

SEDUCE_TBAS_STRETCH

Description: Text stretched out to align with both left and right.

SEDUCE_TBAS_COUNT

seduce_text_box_draw_monospace

uint seduce_text_box_draw_monospace(SeduceRenderFont *font, float pos_x, float pos_y, float character_size, float space_size, float line_size, const char *text, uint line_count, uint line_length, uint *scroll, STextBlockMode *modes, uint mode_count);

Description: Draws a block of mono spaced text.

seduce_text_box_edit

STypeInState seduce_text_box_edit(BInputState *input, void *id, char *text, uint buffer_size, STextBox *boxes, uint box_count, STextBlockMode *modes, uint mode_count);

Description: Alows you to make one or more boxes of text editable.

Types:

Enum:

STypeInState

S_TIS_IDLE

Description: The type in function is idle.

S_TIS_ACTIVE

Description: The type in function is activly beeing used.

S_TIS_DONE

Description: The use th ethe type in function has just ben completed (mosst often by the user pressing Enter).

seduce_text_monospace_edit

STypeInState seduce_text_monospace_edit(BInputState *input, void *id, char *text, uint buffer_size, void *font, float pos_x, float pos_y, float character_size, float space_size, float line_size, uint line_count, uint line_length, uint *scroll, STextBlockMode *modes, uint mode_count);

Description: Alows you to make one or more boxes of monospace text editable.

Types:

Enum:

STypeInState

S_TIS_IDLE

Description: The type in function is idle.

S_TIS_ACTIVE

Description: The type in function is activly beeing used.

S_TIS_DONE

Description: The use th ethe type in function has just ben completed (mosst often by the user pressing Enter).

seduce_text_button

boolean seduce_text_button(BInputState *input, void *id, float pos_x, float pos_y, float center, float size, float spacing, const char *text, float red, float green, float blue, float alpha, float red_select, float green_select, float blue_select, float alpha_select);

Description: A simple clickable text button.

seduce_text_button_list

uint seduce_text_button_list(BInputState *input, void *id, float pos_x, float pos_y, float length, STextBlockAlignmentStyle style, float size, float spacing, float line_size, const char **texts, uint text_count, uint selected, float red, float green, float blue, float alpha, float red_select, float green_select, float blue_select, float alpha_select);

Description: A horizontal list of text buttons. "selected" will be highlited. Returns the number of the text beeing clicked. returnes -1 by default.

Types:

Enum:

STextBlockAlignmentStyle

SEDUCE_TBAS_LEFT

Description: Left aligned text.

SEDUCE_TBAS_RIGHT

Description: Right aligned text.

SEDUCE_TBAS_CENTER

Description: Center aligned text.

SEDUCE_TBAS_STRETCH

Description: Text stretched out to align with both left and right.

SEDUCE_TBAS_COUNT