Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
imstb_rectpack.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  stbrp_rect
 
struct  stbrp_node
 
struct  stbrp_context
 

Macros

#define STB_RECT_PACK_VERSION   1
 
#define STBRP_DEF   extern
 

Typedefs

typedef struct stbrp_context stbrp_context
 
typedef struct stbrp_node stbrp_node
 
typedef struct stbrp_rect stbrp_rect
 
typedef unsigned short stbrp_coord
 

Enumerations

enum  { STBRP_HEURISTIC_Skyline_default =0 , STBRP_HEURISTIC_Skyline_BL_sortHeight = STBRP_HEURISTIC_Skyline_default , STBRP_HEURISTIC_Skyline_BF_sortHeight }
 

Functions

STBRP_DEF int stbrp_pack_rects (stbrp_context *context, stbrp_rect *rects, int num_rects)
 
STBRP_DEF void stbrp_init_target (stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes)
 
STBRP_DEF void stbrp_setup_allow_out_of_mem (stbrp_context *context, int allow_out_of_mem)
 
STBRP_DEF void stbrp_setup_heuristic (stbrp_context *context, int heuristic)
 

Class Documentation

◆ stbrp_rect

struct stbrp_rect
Class Members
stbrp_coord h
int id
stbrp_coord w
int was_packed
stbrp_coord x
stbrp_coord y

◆ stbrp_node

struct stbrp_node
+ Collaboration diagram for stbrp_node:
Class Members
stbrp_node * next
stbrp_coord x
stbrp_coord y

◆ stbrp_context

struct stbrp_context
+ Collaboration diagram for stbrp_context:
Class Members
stbrp_node * active_head
int align
stbrp_node extra[2]
stbrp_node * free_head
int height
int heuristic
int init_mode
int num_nodes
int width

Macro Definition Documentation

◆ STB_RECT_PACK_VERSION

#define STB_RECT_PACK_VERSION   1

◆ STBRP_DEF

#define STBRP_DEF   extern

Typedef Documentation

◆ stbrp_context

typedef struct stbrp_context stbrp_context

◆ stbrp_coord

typedef unsigned short stbrp_coord

◆ stbrp_node

typedef struct stbrp_node stbrp_node

◆ stbrp_rect

typedef struct stbrp_rect stbrp_rect

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
STBRP_HEURISTIC_Skyline_default 
STBRP_HEURISTIC_Skyline_BL_sortHeight 
STBRP_HEURISTIC_Skyline_BF_sortHeight 
163{
167};
@ STBRP_HEURISTIC_Skyline_BF_sortHeight
Definition imstb_rectpack.h:166
@ STBRP_HEURISTIC_Skyline_BL_sortHeight
Definition imstb_rectpack.h:165
@ STBRP_HEURISTIC_Skyline_default
Definition imstb_rectpack.h:164

Function Documentation

◆ stbrp_init_target()

STBRP_DEF void stbrp_init_target ( stbrp_context context,
int  width,
int  height,
stbrp_node nodes,
int  num_nodes 
)

◆ stbrp_pack_rects()

STBRP_DEF int stbrp_pack_rects ( stbrp_context context,
stbrp_rect rects,
int  num_rects 
)

Referenced by ImFontAtlasBuildPackCustomRects(), and ImFontAtlasBuildWithStbTruetype().

+ Here is the caller graph for this function:

◆ stbrp_setup_allow_out_of_mem()

STBRP_DEF void stbrp_setup_allow_out_of_mem ( stbrp_context context,
int  allow_out_of_mem 
)

◆ stbrp_setup_heuristic()

STBRP_DEF void stbrp_setup_heuristic ( stbrp_context context,
int  heuristic 
)