LibLapin's logo

LibLapin

Placement





The placement module header is lapin/placement.h
typedef struct s_bunny_position
{
     int x ;
     int y ;

} t‌_‌b‌u‌n‌n‌y‌_‌p‌o‌s‌i‌t‌i‌o‌n;

Description

     This structure is a 2D coordinate.

Attributes

  • int x :
         The X coordinate.
  • int y :
         The Y coordinate.


INDEX

typedef struct s_bunny_size
{
     int x ;
     int y ;

} t‌_‌b‌u‌n‌n‌y‌_‌s‌i‌z‌e;

Description

     This structure is a 2D size.

Attributes

  • int x :
         The width.
  • int y :
         The height.

Additional informations

This structure is a typedef on t‌_‌b‌u‌n‌n‌y‌_‌p‌o‌s‌i‌t‌i‌o‌n.



INDEX

typedef struct s_bunny_accurate_position
{
     double x ;
     double y ;

} t‌_‌b‌u‌n‌n‌y‌_‌a‌c‌c‌u‌r‌a‌t‌e‌_‌p‌o‌s‌i‌t‌i‌o‌n;

Description

     This structure is a 2D coordinate.

Attributes

  • double x :
         The X coordinate.
  • double y :
         The Y coordinate.


INDEX

typedef struct s_bunny_accurate_size
{
     double x ;
     double y ;

} t‌_‌b‌u‌n‌n‌y‌_‌a‌c‌c‌u‌r‌a‌t‌e‌_‌s‌i‌z‌e;

Description

     This structure is a 2D size.

Attributes

  • double x :
         The width.
  • double y :
         The height.



INDEX

typedef struct s_bunny_area
{
     int x ;
     int y ;
     int w ;
     int h ;

} t‌_‌b‌u‌n‌n‌y‌_‌a‌r‌e‌a;

Description

     This structure is a 2D area.

Attributes

  • int x :
         The position of the top left corner on X.
  • int y :
         The position of the top left corner on Y.
  • int w :
         The width of the area.
  • int h :
         The height of the area.


INDEX

typedef struct s_bunny_accurate_area
{
     double x ;
     double y ;
     double w ;
     double h ;

} t‌_‌b‌u‌n‌n‌y‌_‌a‌c‌c‌u‌r‌a‌t‌e‌_‌a‌r‌e‌a;

Description

     This structure is a 2D area.

Attributes

  • double x :
         The position of the top left corner on X.
  • double y :
         The position of the top left corner on Y.
  • double w :
         The width of the area.
  • double h :
         The height of the area.


INDEX

C11 Macro int b‌u‌n‌n‌y‌_‌r‌e‌a‌l‌_‌w‌i‌d‌t‌h(buffer_base_structure*);

Description

     Return the displayed width of buffer_base_structure.
Rotation is ignored.


Return value

The computed width of the displayable sent element.


Additional informations

Because it is based on _Generic, this macro cannot be provided in C++ and C version inferior to 2011.




INDEX


Description

     Return the displayed height of buffer_base_structure.
Rotation is ignored.


Return value

The computed height of the displayable sent element.


Additional informations

Because it is based on _Generic, this macro cannot be provided in C++ and C version inferior to 2011.




INDEX