Photon 1.0.0
Loading...
Searching...
No Matches
cairo::border Class Reference

#include <cairo_borders.h>

Public Types

enum  real_side_t { left_side , top_side , right_side , bottom_side }
 

Public Member Functions

 border (cairo_t *_cr, int _left, int _top, int _bottom)
 
void draw_border ()
 

Public Attributes

real_side_t real_side
 
litehtml::web_color color
 real side of the border
 
litehtml::border_style style
 
int border_width
 
int top_border_width
 
int bottom_border_width
 
int radius_top_x
 
int radius_top_y
 
int radius_bottom_x
 
int radius_bottom_y
 

Private Member Functions

void draw_line (double line_offset, double top_line_offset, double bottom_line_offset)
 
void draw_solid ()
 
void draw_dotted ()
 
void draw_dashed ()
 
void draw_double ()
 
void draw_inset_outset (bool is_inset)
 
void draw_groove_ridge (bool is_groove)
 

Private Attributes

cairo_t * cr
 
int left
 
int top
 
int bottom
 

Member Enumeration Documentation

◆ real_side_t

Enumerator
left_side 
top_side 
right_side 
bottom_side 

Constructor & Destructor Documentation

◆ border()

cairo::border::border ( cairo_t *  _cr,
int  _left,
int  _top,
int  _bottom 
)
inline

Member Function Documentation

◆ draw_border()

void cairo::border::draw_border ( )

Draw border at the left side. Use the only function to draw all border by using rotation transfer

Parameters
crcairo context
leftleft position of the border
toptop position of the border
bottombottom position of the border
databorder data

◆ draw_dashed()

void cairo::border::draw_dashed ( )
private

◆ draw_dotted()

void cairo::border::draw_dotted ( )
private

◆ draw_double()

void cairo::border::draw_double ( )
private

◆ draw_groove_ridge()

void cairo::border::draw_groove_ridge ( bool  is_groove)
private

◆ draw_inset_outset()

void cairo::border::draw_inset_outset ( bool  is_inset)
private

◆ draw_line()

void cairo::border::draw_line ( double  line_offset,
double  top_line_offset,
double  bottom_line_offset 
)
private

◆ draw_solid()

void cairo::border::draw_solid ( )
private

Member Data Documentation

◆ border_width

int cairo::border::border_width

◆ bottom

int cairo::border::bottom
private

◆ bottom_border_width

int cairo::border::bottom_border_width

◆ color

litehtml::web_color cairo::border::color

real side of the border

◆ cr

cairo_t* cairo::border::cr
private

◆ left

int cairo::border::left
private

◆ radius_bottom_x

int cairo::border::radius_bottom_x

◆ radius_bottom_y

int cairo::border::radius_bottom_y

◆ radius_top_x

int cairo::border::radius_top_x

◆ radius_top_y

int cairo::border::radius_top_y

◆ real_side

real_side_t cairo::border::real_side

◆ style

litehtml::border_style cairo::border::style

◆ top

int cairo::border::top
private

◆ top_border_width

int cairo::border::top_border_width

The documentation for this class was generated from the following files: