mikroSDK Reference Manual
vtft_types.h File Reference

Go to the source code of this file.

Data Structures

struct  vtft_event_set
 Structure representing an event set, all posible event types and their functions that can be triggered. More...
 
struct  vtft_pen
 The context structure for storing pen's size and color. More...
 
struct  vtft_gradient
 The structure used for information about the gradient. More...
 
struct  vtft_press_gradient
 The structure used for information about the gradient displayed when an object is pressed and when its not. More...
 
struct  vtft_font
 The structure used for information about the font bitmap and color. More...
 
struct  vtft_text
 The structure used for information about the font bitmap and color. More...
 
struct  vtft_component
 Generic component structure, holding key information about that component. More...
 
struct  vtft_positioned_component
 Structure for a componet characterized by position. More...
 
struct  vtft_active_component
 Structure for a componet characterized by active and inactive state. More...
 
struct  vtft_colored_component
 Structure for a componet characterized by color used for drawing it. More...
 
struct  vtft_box
 Structure for a componet drawn like a box. More...
 
struct  vtft_rounded_box
 Structure for a componet drawn like a box with rounded corners. More...
 
struct  vtft_circle
 Structure for a componet drawn like a circle. More...
 
struct  vtft_ellipse
 Structure for a componet drawn like a ellipse. More...
 
struct  vtft_line
 Structure for a componet drawn like a line. More...
 
struct  vtft_label
 Structure for a label component. More...
 
struct  vtft_button
 Structure for a button component. More...
 
struct  vtft_rounded_button
 Structure for a button component with rounded corners. More...
 
struct  vtft_circle_button
 Structure for a circular button component. More...
 
struct  vtft_image
 Structure for an image component. More...
 
struct  vtft_abstract_check_box
 Abstract structure for check box component. More...
 
struct  vtft_check_box
 Structure for a check box component. More...
 
struct  vtft_radio_button
 Structure for a radio button component. More...
 
struct  vtft_progress_bar
 Structure for a radio button component. More...
 
struct  vtft_screen
 Structure representig a screen. More...
 
struct  vtft_s
 Structure representig a VTFT library instance. More...
 

Typedefs

typedef uint8_t vtft_bool_t
 
typedef uint8_t vtft_byte_t
 
typedef int16_t vtft_index_t
 
typedef gl_int_t vtft_coord_t
 
typedef gl_uint_t vtft_ucoord_t
 
typedef vtft_component_type vtft_comp_type_t
 
typedef void(* vtft_event) ()
 
typedef void(* vtft_draw_handle) (struct vtft_s *instance, vtft_component *__generic component)
 
typedef struct vtft_s vtft_t
 Structure representig a VTFT library instance. More...
 

Enumerations

enum  vtft_component_type
 Enum containing all VTFT component types. More...
 
enum  vtft_gradient_style
 
enum  vtft_text_alignment
 Enum containing possible text alignment options. More...
 

Typedef Documentation

◆ vtft_bool_t

typedef uint8_t vtft_bool_t

8-bit unsigned integer is used for boolean type.

◆ vtft_byte_t

typedef uint8_t vtft_byte_t

8-bit unsinged integer is used for byte type.

◆ vtft_index_t

typedef int16_t vtft_index_t

16-bti signed integer is used for index type

◆ vtft_coord_t

gl_int_t is used for coordinate type.

◆ vtft_ucoord_t

gl_uint_t is used for unsigned coordinate type.

◆ vtft_comp_type_t

VTFT component type.

◆ vtft_event

typedef void(* vtft_event) ()

Function to be executed when certain event is trigered.

◆ vtft_draw_handle

typedef void(* vtft_draw_handle) (struct vtft_s *instance, vtft_component *__generic component)

The function signature for drawing a component.

◆ vtft_t

typedef struct vtft_s vtft_t

Values will be set by Necto Studio Designer.

Enumeration Type Documentation

◆ vtft_component_type

Enumerator
VTFT_COMPONENT_NONE 

Component of invalid type.

VTFT_COMPONENT_BOX 

Component of box type.

VTFT_COMPONENT_ROUNDED_BOX 

Component of box type with rounded corners.

VTFT_COMPONENT_CIRCLE 

Component of circle type.

VTFT_COMPONENT_ELLIPSE 

Component of ellipse type.

VTFT_COMPONENT_LINE 

Component of line type.

VTFT_COMPONENT_LABEL 

Component of label type.

VTFT_COMPONENT_BUTTON 

Component of button type.

VTFT_COMPONENT_ROUNDED_BUTTON 

Component of button type with rounded corners.

VTFT_COMPONENT_CIRCLE_BUTTON 

Component of button type in circular shape.

VTFT_COMPONENT_IMAGE 

Component of image type.

VTFT_COMPONENT_CHECK_BOX 

Component of check box type.

VTFT_COMPONENT_RADIO_BUTTON 

Component of radio button type.

VTFT_COMPONENT_PROGRESS_BAR 

Component of progress bar type.

VTFT_COMPONENT_COUNT 

Just counter of different components.

◆ vtft_gradient_style

Enum containing styles for brush that are supported in the drawing functions. It should be used for controlling the look of shapes that uses brush in drawing.

Enumerator
VTFT_GRADIENT_NONE 

No gradinet will be used.

VTFT_GRADIENT_TOP_BOTTOM 

Start color on top and end color at bottom.

VTFT_GRADIENT_BOTTOM_TOP 

End color on top and start color at bottom.

VTFT_GRADIENT_LEFT_RIGHT 

Start color on left and end color on right.

VTFT_GRADIENT_RIGHT_LEFT 

End color on left and start color on right.

◆ vtft_text_alignment

Enumerator
VTFT_TEXT_ALIGNMENT_LEFT 

Text aligned to the left edge.

VTFT_TEXT_ALIGNMENT_CENTER 

Text aligned to the center.

VTFT_TEXT_ALIGNMENT_RIGHT 

Text aligned to the right.

VTFT_TEXT_ALIGNMENT_TOP 

Text aligned to the top.

VTFT_TEXT_ALIGNMENT_MIDDLE 

Text aligned to the middle.

VTFT_TEXT_ALIGNMENT_BOTTOM 

Text aligned to the bottom.