Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gskroundedrect.h File Reference
#include <gsk/gsktypes.h>

Go to the source code of this file.

Data Structures

struct  _GskRoundedRect
 

Macros

#define GSK_ROUNDED_RECT_INIT(_x, _y, _w, _h)
 

Functions

GDK_AVAILABLE_IN_ALL GskRoundedRectgsk_rounded_rect_init (GskRoundedRect *self, const graphene_rect_t *bounds, const graphene_size_t *top_left, const graphene_size_t *top_right, const graphene_size_t *bottom_right, const graphene_size_t *bottom_left)
 
GDK_AVAILABLE_IN_ALL GskRoundedRectgsk_rounded_rect_init_copy (GskRoundedRect *self, const GskRoundedRect *src)
 
GDK_AVAILABLE_IN_ALL GskRoundedRectgsk_rounded_rect_init_from_rect (GskRoundedRect *self, const graphene_rect_t *bounds, float radius)
 
GDK_AVAILABLE_IN_ALL GskRoundedRectgsk_rounded_rect_normalize (GskRoundedRect *self)
 
GDK_AVAILABLE_IN_ALL GskRoundedRectgsk_rounded_rect_offset (GskRoundedRect *self, float dx, float dy)
 
GDK_AVAILABLE_IN_ALL GskRoundedRectgsk_rounded_rect_shrink (GskRoundedRect *self, float top, float right, float bottom, float left)
 
GDK_AVAILABLE_IN_ALL gboolean gsk_rounded_rect_is_rectilinear (const GskRoundedRect *self) G_GNUC_PURE
 
GDK_AVAILABLE_IN_ALL gboolean gsk_rounded_rect_contains_point (const GskRoundedRect *self, const graphene_point_t *point) G_GNUC_PURE
 
GDK_AVAILABLE_IN_ALL gboolean gsk_rounded_rect_contains_rect (const GskRoundedRect *self, const graphene_rect_t *rect) G_GNUC_PURE
 
GDK_AVAILABLE_IN_ALL gboolean gsk_rounded_rect_intersects_rect (const GskRoundedRect *self, const graphene_rect_t *rect) G_GNUC_PURE
 

Macro Definition Documentation

◆ GSK_ROUNDED_RECT_INIT

#define GSK_ROUNDED_RECT_INIT ( _x,
_y,
_w,
_h )
Value:
(GskRoundedRect) { .bounds = GRAPHENE_RECT_INIT(_x,_y,_w,_h), \
.corner = { \
GRAPHENE_SIZE_INIT(0, 0),\
GRAPHENE_SIZE_INIT(0, 0),\
GRAPHENE_SIZE_INIT(0, 0),\
GRAPHENE_SIZE_INIT(0, 0),\
}}
#define GRAPHENE_RECT_INIT(_x, _y, _w, _h)
struct _GskRoundedRect GskRoundedRect
Definition gsktypes.h:34

GSK_ROUNDED_RECT_INIT: @_x: the X coordinate of the origin @_y: the Y coordinate of the origin @_w: the width @_h: the height

Initializes a GskRoundedRect when declaring it. All corner sizes will be initialized to 0.

Definition at line 39 of file gskroundedrect.h.

39#define GSK_ROUNDED_RECT_INIT(_x,_y,_w,_h) (GskRoundedRect) { .bounds = GRAPHENE_RECT_INIT(_x,_y,_w,_h), \
40 .corner = { \
41 GRAPHENE_SIZE_INIT(0, 0),\
42 GRAPHENE_SIZE_INIT(0, 0),\
43 GRAPHENE_SIZE_INIT(0, 0),\
44 GRAPHENE_SIZE_INIT(0, 0),\
45 }}

Function Documentation

◆ gsk_rounded_rect_contains_point()

GDK_AVAILABLE_IN_ALL gboolean gsk_rounded_rect_contains_point ( const GskRoundedRect * self,
const graphene_point_t * point )

◆ gsk_rounded_rect_contains_rect()

GDK_AVAILABLE_IN_ALL gboolean gsk_rounded_rect_contains_rect ( const GskRoundedRect * self,
const graphene_rect_t * rect )

◆ gsk_rounded_rect_init()

GDK_AVAILABLE_IN_ALL GskRoundedRect * gsk_rounded_rect_init ( GskRoundedRect * self,
const graphene_rect_t * bounds,
const graphene_size_t * top_left,
const graphene_size_t * top_right,
const graphene_size_t * bottom_right,
const graphene_size_t * bottom_left )

◆ gsk_rounded_rect_init_copy()

GDK_AVAILABLE_IN_ALL GskRoundedRect * gsk_rounded_rect_init_copy ( GskRoundedRect * self,
const GskRoundedRect * src )

◆ gsk_rounded_rect_init_from_rect()

GDK_AVAILABLE_IN_ALL GskRoundedRect * gsk_rounded_rect_init_from_rect ( GskRoundedRect * self,
const graphene_rect_t * bounds,
float radius )

◆ gsk_rounded_rect_intersects_rect()

GDK_AVAILABLE_IN_ALL gboolean gsk_rounded_rect_intersects_rect ( const GskRoundedRect * self,
const graphene_rect_t * rect )

◆ gsk_rounded_rect_is_rectilinear()

GDK_AVAILABLE_IN_ALL gboolean gsk_rounded_rect_is_rectilinear ( const GskRoundedRect * self)

◆ gsk_rounded_rect_normalize()

GDK_AVAILABLE_IN_ALL GskRoundedRect * gsk_rounded_rect_normalize ( GskRoundedRect * self)

◆ gsk_rounded_rect_offset()

GDK_AVAILABLE_IN_ALL GskRoundedRect * gsk_rounded_rect_offset ( GskRoundedRect * self,
float dx,
float dy )

◆ gsk_rounded_rect_shrink()

GDK_AVAILABLE_IN_ALL GskRoundedRect * gsk_rounded_rect_shrink ( GskRoundedRect * self,
float top,
float right,
float bottom,
float left )