Back to index

texmacs  1.0.7.15
Defines | Functions
renderer.cpp File Reference
#include "renderer.hpp"
#include "gui.hpp"
#include "rectangles.hpp"
#include "image_files.hpp"

Go to the source code of this file.

Defines

#define RND(x)   (((x)>=0)?(((x)/pixel)*pixel):((((x)-pixel+1)/pixel)*pixel))
#define RND(x)   (((x)>=0)?(((x)/PIXEL)*PIXEL):((((x)-PIXEL+1)/PIXEL)*PIXEL))

Functions

void abs_round (SI &l)
void abs_round (SI &x, SI &y)
void abs_inner_round (SI &x1, SI &y1, SI &x2, SI &y2)
void abs_outer_round (SI &x1, SI &y1, SI &x2, SI &y2)
bool is_percentage (tree t, string s="%")
double as_percentage (tree t)

Define Documentation

#define RND (   x)    (((x)>=0)?(((x)/pixel)*pixel):((((x)-pixel+1)/pixel)*pixel))

Definition at line 184 of file renderer.cpp.

#define RND (   x)    (((x)>=0)?(((x)/PIXEL)*PIXEL):((((x)-PIXEL+1)/PIXEL)*PIXEL))

Definition at line 184 of file renderer.cpp.


Function Documentation

void abs_inner_round ( SI x1,
SI y1,
SI x2,
SI y2 
)

Definition at line 198 of file renderer.cpp.

                                                 {
  x1= RND (x1+PIXEL-1);
  y1= RND (y1+PIXEL-1);
  x2= RND (x2);
  y2= RND (y2);
}
void abs_outer_round ( SI x1,
SI y1,
SI x2,
SI y2 
)

Definition at line 206 of file renderer.cpp.

                                                 {
  x1= RND (x1);
  y1= RND (y1);
  x2= RND (x2+PIXEL-1);
  y2= RND (y2+PIXEL-1);
}

Here is the caller graph for this function:

void abs_round ( SI l)

Definition at line 187 of file renderer.cpp.

                  {
  l= RND (l);
}

Here is the caller graph for this function:

void abs_round ( SI x,
SI y 
)

Definition at line 192 of file renderer.cpp.

                         {
  x= RND (x);
  y= RND (y);
}
double as_percentage ( tree  t)

Definition at line 286 of file env_length.cpp.

                       {
  return as_double (t->label (0, N (t->label) - 1)) / 100.0;
}

Here is the caller graph for this function:

bool is_percentage ( tree  t,
string  s = "%" 
)

Definition at line 273 of file env_length.cpp.

                                 {
  return
    is_atomic (t) &&
    ends (t->label, s) &&
    is_double (t->label (0, N (t->label) - 1));
}

Here is the caller graph for this function: