mikroSDK Reference Manual
gl_types.h File Reference

Go to the source code of this file.

Data Structures

struct  gl_point_t
 The context structure for storing coordinates of the point. More...
 
struct  gl_size_t
 The context structure for storing width and height in number of pixels on the screen. More...
 
struct  gl_rectangle_t
 The context structure for storing rectangle by its top left point and width and height (in pixels). More...
 
struct  gl_driver_t
 The context structure for storing driver configuration. More...
 

Typedefs

typedef int16_t gl_int_t
 
typedef uint16_t gl_uint_t
 
typedef int32_t gl_long_int_t
 
typedef uint32_t gl_long_uint_t
 
typedef uint16_t gl_angle_t
 
typedef int16_t gl_coord_t
 
typedef void(* gl_fill_t) (gl_rectangle_t *rect, gl_color_t color)
 
typedef void(* gl_begin_frame_t) (gl_rectangle_t *rect)
 
typedef void(* gl_frame_data_t) (gl_color_t color)
 
typedef void(* gl_end_frame_t) ()
 

Enumerations

enum  gl_brush_style_t
 
enum  gl_image_format_t
 
enum  gl_font_orientation_t
 

Typedef Documentation

◆ gl_int_t

typedef int16_t gl_int_t

16-bit integer is used for gl_int_t

◆ gl_uint_t

typedef uint16_t gl_uint_t

16-bit unsigned integer is used for gl_uint_t

◆ gl_long_int_t

typedef int32_t gl_long_int_t

32-bit integer is used for gl_long_int_t

◆ gl_long_uint_t

typedef uint32_t gl_long_uint_t

32-bit unsigned integer is used for gl_long_uint_t

◆ gl_angle_t

typedef uint16_t gl_angle_t

The angle for the arc. Value should be positive. Value between 0 and 360 is expected, but if it happens to be bigger, it will be calculated like:

void f (gl_angle_t value) {
gl_angle_t angle = value % 360
}

◆ gl_coord_t

typedef int16_t gl_coord_t

The coordinates on display are linked to its pixels. To target area 50 pixels away from top and 70 pixels away from left display's edge use coordinates: \( x = 70 \) and \( y = 50 \) .

◆ gl_fill_t

typedef void(* gl_fill_t) (gl_rectangle_t *rect, gl_color_t color)

Function used for drawing on display. Should be defined in driver.

◆ gl_begin_frame_t

typedef void(* gl_begin_frame_t) (gl_rectangle_t *rect)

Function used for drawing on display. Should be defined in driver.

◆ gl_frame_data_t

typedef void(* gl_frame_data_t) (gl_color_t color)

Function used for drawing on display. Should be defined in driver.

◆ gl_end_frame_t

typedef void(* gl_end_frame_t) ()

Function used for drawing on display. Should be defined in driver.

Enumeration Type Documentation

◆ gl_brush_style_t

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
GL_BRUSH_STYLE_NONE 

Brush area will not be painted.

GL_BRUSH_STYLE_FILL 

Brush area will be painted with one color set by gl_set_brush_color .

GL_BRUSH_STYLE_GRADIENT_TOP_DOWN 

Brush area will be painted gradientally from top to bottom, with colors set by gl_set_brush_color_from for top part, and gl_set_brush_color_to for bottom part.

GL_BRUSH_STYLE_GRADIENT_LEFT_RIGHT 

Brush area will be painted gradientally from left to right, with colors set by gl_set_brush_color_from for left part, and gl_set_brush_color_to for right part.

◆ gl_image_format_t

Enum containing predefined signs for image format. This format is supported in NECTO Studio's resource generator.

Enumerator
GL_IMAGE_FORMAT_BITMAP_1BPP 

Image in bitmap format with 1 bpp.

GL_IMAGE_FORMAT_BITMAP_4BPP 

Image in bitmap format with 4 bpp.

GL_IMAGE_FORMAT_BITMAP_8BPP 

Image in bitmap format with 8 bpp.

GL_IMAGE_FORMAT_BITMAP_16BPP 

Image in bitmap format with 16 bpp.

GL_IMAGE_FORMAT_JPEG 

Image in jpeg format.

◆ gl_font_orientation_t

Enum containing options for orientation of the text. It should be used for controlling orientation of the text or single character when drawing.

Enumerator
GL_FONT_HORIZONTAL 

Text is horizontal.

GL_FONT_VERTICAL 

Text is vertical but characters in text are horizontal.

GL_FONT_VERTICAL_COLUMN 

Both text and characters in it are vertical.

gl_angle_t
uint16_t gl_angle_t
Definition: gl_types.h:95