1.1.0
rect.h
1 #ifndef FONT_CHEF_RECT_H
2 #define FONT_CHEF_RECT_H
3 
14 #include "font-chef/font-chef-export.h"
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
33 struct fc_rect {
35  float left;
36 
38  float top;
39 
41  float right;
42 
44  float bottom;
45 };
46 
63 FONT_CHEF_EXPORT extern float fc_rect_width(struct fc_rect const * rect);
64 
81 FONT_CHEF_EXPORT extern float fc_rect_height(struct fc_rect const * rect);
82 
83 #ifdef __cplusplus
84 }
85 #endif
86 
87 #endif /* FONT_CHEF_RECT_H */
fc_rect::top
float top
Top value.
Definition: rect.h:38
fc_rect::bottom
float bottom
Bottom value.
Definition: rect.h:44
fc_rect::right
float right
Right value.
Definition: rect.h:41
fc_rect::left
float left
Left value.
Definition: rect.h:35
fc_rect
Represents a rectangle with left, top, right and bottom float values.
Definition: rect.h:33
fc_rect_height
float fc_rect_height(struct fc_rect const *rect)
Calculates and returns the height of a rect represented by a fc_rect value.
fc_rect_width
float fc_rect_width(struct fc_rect const *rect)
Calculates and returns the width of a rect represented by a fc_rect value.