NetSurf
Data Structures | Macros | Typedefs | Enumerations
box.h File Reference

Box interface. More...

#include <limits.h>
#include <stdbool.h>
#include <libcss/libcss.h>
#include "content/handlers/css/utils.h"
Include dependency graph for box.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  box_border
 Container for box border details. More...
 
struct  column
 Table column data. More...
 
struct  object_param
 Linked list of object element parameters. More...
 
struct  object_params
 Parameters for object element and similar elements. More...
 
struct  box
 Node in box tree. More...
 

Macros

#define UNKNOWN_WIDTH   INT_MAX
 
#define UNKNOWN_MAX_WIDTH   INT_MAX
 

Typedefs

typedef void(* box_construct_complete_cb) (struct html_content *c, bool success)
 

Enumerations

enum  box_type {
  BOX_BLOCK , BOX_INLINE_CONTAINER , BOX_INLINE , BOX_TABLE ,
  BOX_TABLE_ROW , BOX_TABLE_CELL , BOX_TABLE_ROW_GROUP , BOX_FLOAT_LEFT ,
  BOX_FLOAT_RIGHT , BOX_INLINE_BLOCK , BOX_BR , BOX_TEXT ,
  BOX_INLINE_END , BOX_NONE , BOX_FLEX , BOX_INLINE_FLEX
}
 Type of a struct box. More...
 
enum  box_flags {
  NEW_LINE = 1 << 0 , STYLE_OWNED = 1 << 1 , PRINTED = 1 << 2 , PRE_STRIP = 1 << 3 ,
  CLONE = 1 << 4 , MEASURED = 1 << 5 , HAS_HEIGHT = 1 << 6 , MAKE_HEIGHT = 1 << 7 ,
  NEED_MIN = 1 << 8 , REPLACE_DIM = 1 << 9 , IFRAME = 1 << 10 , CONVERT_CHILDREN = 1 << 11 ,
  IS_REPLACED = 1 << 12
}
 Flags for a struct box. More...
 
enum  box_side { TOP , RIGHT , BOTTOM , LEFT }
 Sides of a box. More...
 

Detailed Description

Box interface.

Definition in file box.h.

Macro Definition Documentation

◆ UNKNOWN_MAX_WIDTH

#define UNKNOWN_MAX_WIDTH   INT_MAX

Definition at line 46 of file box.h.

◆ UNKNOWN_WIDTH

#define UNKNOWN_WIDTH   INT_MAX

Definition at line 45 of file box.h.

Typedef Documentation

◆ box_construct_complete_cb

typedef void(* box_construct_complete_cb) (struct html_content *c, bool success)

Definition at line 49 of file box.h.

Enumeration Type Documentation

◆ box_flags

enum box_flags

Flags for a struct box.

Enumerator
NEW_LINE 
STYLE_OWNED 
PRINTED 
PRE_STRIP 
CLONE 
MEASURED 
HAS_HEIGHT 
MAKE_HEIGHT 
NEED_MIN 
REPLACE_DIM 
IFRAME 
CONVERT_CHILDREN 
IS_REPLACED 

Definition at line 78 of file box.h.

◆ box_side

enum box_side

Sides of a box.

Enumerator
TOP 
RIGHT 
BOTTOM 
LEFT 

Definition at line 98 of file box.h.

◆ box_type

enum box_type

Type of a struct box.

Enumerator
BOX_BLOCK 
BOX_INLINE_CONTAINER 
BOX_INLINE 
BOX_TABLE 
BOX_TABLE_ROW 
BOX_TABLE_CELL 
BOX_TABLE_ROW_GROUP 
BOX_FLOAT_LEFT 
BOX_FLOAT_RIGHT 
BOX_INLINE_BLOCK 
BOX_BR 
BOX_TEXT 
BOX_INLINE_END 
BOX_NONE 
BOX_FLEX 
BOX_INLINE_FLEX 

Definition at line 55 of file box.h.