Dillo v3.1.1-119-g140d9ebd
Loading...
Searching...
No Matches
style.cc File Reference
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <ctype.h>
#include <math.h>
#include "dlib/dlib.h"
#include "core.hh"
#include "../lout/msg.h"
Include dependency graph for style.cc:

Go to the source code of this file.

Namespaces

namespace  dw
 Dw is in this namespace, or sub namespaces of this one.
 
namespace  dw::core
 The core of Dw is defined in this namespace.
 
namespace  dw::core::style
 Anything related to Dillo Widget styles is defined here.
 

Functions

static void dw::core::style::calcBackgroundRelatedValues (StyleImage *backgroundImage, BackgroundRepeat backgroundRepeat, BackgroundAttachment backgroundAttachment, Length backgroundPositionX, Length backgroundPositionY, int xDraw, int yDraw, int widthDraw, int heightDraw, int xRef, int yRef, int widthRef, int heightRef, bool *repeatX, bool *repeatY, int *origX, int *origY, int *tileX1, int *tileX2, int *tileY1, int *tileY2, bool *doDraw)
 
static void dw::core::style::drawBorderTop (View *view, Style *style, int x1, int y1, int x2, int y2)
 
static void dw::core::style::drawBorderBottom (View *view, Style *style, int x1, int y1, int x2, int y2)
 
static void dw::core::style::drawBorderLeft (View *view, Style *style, int x1, int y1, int x2, int y2)
 
static void dw::core::style::drawBorderRight (View *view, Style *style, int x1, int y1, int x2, int y2)
 
void dw::core::style::drawBorder (View *view, Layout *layout, Rectangle *area, int x, int y, int width, int height, Style *style, bool inverse)
 Draw the border of a region in window, according to style.
 
void dw::core::style::drawBackground (View *view, Layout *layout, Rectangle *area, int x, int y, int width, int height, int xRef, int yRef, int widthRef, int heightRef, Style *style, Color *bgColor, bool inverse, bool atTop)
 Draw the background (content plus padding) of a region in window, according to style.
 
void dw::core::style::drawBackgroundImage (View *view, StyleImage *backgroundImage, BackgroundRepeat backgroundRepeat, BackgroundAttachment backgroundAttachment, Length backgroundPositionX, Length backgroundPositionY, int x, int y, int width, int height, int xRef, int yRef, int widthRef, int heightRef)
 
static void dw::core::style::strAsciiTolower (char *s)
 
void dw::core::style::numtostr (int num, char *buf, int buflen, ListStyleType listStyleType)
 Convert a number into a string, in a given list style.
 

Variables

const bool dw::core::style::drawBackgroundLineByLine = false
 
const int dw::core::style::MIN_BG_IMG_W = 10
 
const int dw::core::style::MIN_BG_IMG_H = 10
 
const int dw::core::style::OPT_BG_IMG_W = 50
 
const int dw::core::style::OPT_BG_IMG_H = 50
 
static const char *const dw::core::style::roman_I0 [] = { "","I","II","III","IV","V","VI","VII","VIII","IX" }
 
static const char *const *const dw::core::style::roman_I1 [] = { "","X","XX","XXX","XL","L","LX","LXX","LXXX","XC" }
 
static const char *const *const *const dw::core::style::roman_I2 [] = { "","C","CC","CCC","CD","D","DC","DCC","DCCC","CM" }
 
static const char *const *const *const *const dw::core::style::roman_I3 [] = { "","M","MM","MMM","MMMM" }