Back to index

texmacs  1.0.7.15
Functions
layout.hpp File Reference
#include "window.hpp"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

color layout_pastel (renderer win)
color layout_light (renderer win)
color layout_normal (renderer win)
color layout_dark (renderer win)
void layout_pastel (renderer win, SI x1, SI y1, SI x2, SI y2)
void layout_default (renderer win, SI x1, SI y1, SI x2, SI y2)
void layout_dark (renderer win, SI x1, SI y1, SI x2, SI y2)
void layout_outline (renderer win, SI x1, SI y1, SI x2, SI y2)
void layout_dark_outline (renderer win, SI x1, SI y1, SI x2, SI y2)
void layout_lower (renderer win, SI x1, SI y1, SI x2, SI y2)
void layout_pastel_lower (renderer win, SI x1, SI y1, SI x2, SI y2)
void layout_higher (renderer win, SI x1, SI y1, SI x2, SI y2)
void layout_submenu_triangle (renderer win, SI x, SI y)
void layout_pulldown_triangle (renderer win, SI x, SI y)
void layout_pulldown_dash (renderer win, SI x, SI y, SI w)
void layout_up_arrow (renderer win, SI x, SI y, SI w, SI h)
void layout_down_arrow (renderer win, SI x, SI y, SI w, SI h)
void layout_left_arrow (renderer win, SI x, SI y, SI w, SI h)
void layout_right_arrow (renderer win, SI x, SI y, SI w, SI h)

Function Documentation

Definition at line 17 of file layout.cpp.

{ return dark_grey; }

Here is the caller graph for this function:

void layout_dark ( renderer  win,
SI  x1,
SI  y1,
SI  x2,
SI  y2 
)

Definition at line 34 of file layout.cpp.

                                                       {
  ren->set_background (layout_normal (ren));
  ren->set_color (layout_normal (ren));
  ren->fill (x1, y1, x2, y2);
}

Here is the call graph for this function:

void layout_dark_outline ( renderer  win,
SI  x1,
SI  y1,
SI  x2,
SI  y2 
)

Definition at line 51 of file layout.cpp.

                                                               {
  ren->set_line_style (PIXEL);
  ren->set_color (layout_dark (ren));
  ren->line (x1, y1, x2, y1);
  ren->line (x2- PIXEL, y1, x2- PIXEL, y2- PIXEL);
  ren->line (x1, y2- PIXEL, x2, y2- PIXEL);
  ren->line (x1, y1, x1, y2- PIXEL);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void layout_default ( renderer  win,
SI  x1,
SI  y1,
SI  x2,
SI  y2 
)

Definition at line 27 of file layout.cpp.

                                                          {
  ren->set_background (layout_light (ren));
  ren->set_color (layout_light (ren));
  ren->fill (x1, y1, x2, y2);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void layout_down_arrow ( renderer  win,
SI  x,
SI  y,
SI  w,
SI  h 
)

Definition at line 159 of file layout.cpp.

                                                         {
  w -= PIXEL; h -= PIXEL; SI hw= ((w/PIXEL)>>1)*PIXEL;
  ren->set_line_style (PIXEL);
  ren->set_color (layout_normal (ren));
  ren->triangle (x, y+h, x+w, y+h, x+hw, y);
  ren->set_color (layout_dark (ren));
  ren->line (x+w, y+h, x+hw, y);
  ren->set_color (white);
  ren->line (x, y+h, x+w, y+h);
  ren->line (x, y+h, x+hw, y);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void layout_higher ( renderer  win,
SI  x1,
SI  y1,
SI  x2,
SI  y2 
)

Definition at line 84 of file layout.cpp.

                                                         {
  ren->set_line_style (PIXEL);
  ren->set_color (layout_dark (ren));
  ren->line (x1, y1, x2- PIXEL, y1);
  ren->line (x2- PIXEL, y1, x2- PIXEL, y2- PIXEL);
  ren->set_color (white);
  ren->line (x1, y2- PIXEL, x2, y2- PIXEL);
  ren->line (x1, y1, x1, y2- PIXEL);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void layout_left_arrow ( renderer  win,
SI  x,
SI  y,
SI  w,
SI  h 
)

Definition at line 172 of file layout.cpp.

                                                         {
  w -= PIXEL; h -= PIXEL; SI hh= ((h/PIXEL)>>1)*PIXEL;
  ren->set_line_style (PIXEL);
  ren->set_color (layout_normal (ren));
  ren->triangle (x+w, y+w, x+w, y+h, x, y+hh);
  ren->set_color (layout_dark (ren));
  ren->line (x+w, y, x+w, y+h);
  ren->line (x+w, y, x, y+hh);
  ren->set_color (white);
  ren->line (x+w, y+h, x, y+hh);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 15 of file layout.cpp.

{ return light_grey; }

Here is the caller graph for this function:

void layout_lower ( renderer  win,
SI  x1,
SI  y1,
SI  x2,
SI  y2 
)

Definition at line 73 of file layout.cpp.

                                                        {
  ren->set_line_style (PIXEL);
  ren->set_color (white);
  ren->line (x1, y1, x2-PIXEL, y1);
  ren->line (x2- PIXEL, y1, x2- PIXEL, y2- PIXEL);
  ren->set_color (layout_dark (ren));
  ren->line (x1, y2- PIXEL, x2, y2- PIXEL);
  ren->line (x1, y1, x1, y2- PIXEL);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 16 of file layout.cpp.

{ return grey; }

Here is the caller graph for this function:

void layout_outline ( renderer  win,
SI  x1,
SI  y1,
SI  x2,
SI  y2 
)

Definition at line 41 of file layout.cpp.

                                                          {
  ren->set_line_style (PIXEL);
  ren->set_color (layout_light (ren));
  ren->line (x1, y1, x2, y1);
  ren->line (x2- PIXEL, y1, x2- PIXEL, y2- PIXEL);
  ren->line (x1, y2- PIXEL, x2, y2- PIXEL);
  ren->line (x1, y1, x1, y2- PIXEL);
}

Here is the call graph for this function:

Definition at line 14 of file layout.cpp.

{ return rgb_color (228, 228, 220); }

Here is the call graph for this function:

Here is the caller graph for this function:

void layout_pastel ( renderer  win,
SI  x1,
SI  y1,
SI  x2,
SI  y2 
)

Definition at line 20 of file layout.cpp.

                                                         {
  ren->set_background (layout_pastel (ren));
  ren->set_color (layout_pastel (ren));
  ren->fill (x1, y1, x2, y2);
}

Here is the call graph for this function:

void layout_pastel_lower ( renderer  win,
SI  x1,
SI  y1,
SI  x2,
SI  y2 
)

Definition at line 61 of file layout.cpp.

                                                               {
  layout_pastel (ren, x1, y1, x2, y2);
  ren->set_line_style (PIXEL);
  ren->set_color (white);
  ren->line (x1, y1, x2-PIXEL, y1);
  ren->line (x2- PIXEL, y1, x2- PIXEL, y2- PIXEL);
  ren->set_color (layout_normal (ren));
  ren->line (x1, y2- PIXEL, x2, y2- PIXEL);
  ren->line (x1, y1, x1, y2- PIXEL);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void layout_pulldown_dash ( renderer  win,
SI  x,
SI  y,
SI  w 
)

Definition at line 119 of file layout.cpp.

                                                      {
  /*
  ren->set_line_style (PIXEL);
  ren->set_color (layout_dark (ren));
  ren->line (x+PIXEL, y, x+w-PIXEL, y);
  ren->set_color (layout_normal (ren));
  ren->line (x+PIXEL, y+PIXEL, x+w, y+PIXEL);
  ren->set_color (white);
  ren->line (x+PIXEL, y, x+PIXEL, y);
  ren->line (x, y+PIXEL, x+2*PIXEL, y+PIXEL);
  ren->line (x+PIXEL, y+2*PIXEL, x+w-PIXEL, y+2*PIXEL);
  */

  SI offset, inc= 3*PIXEL;
  bool parity= false;
  ren->set_line_style (PIXEL);

  for (offset= 0; offset<w; offset += inc, parity= !parity) {
    SI pos= x + offset;
    ren->set_color (parity? layout_normal (ren): layout_dark (ren));
    ren->line (pos, y, min (pos+inc, x+w), y);
    ren->set_color (parity? layout_normal (ren): white);
    ren->line (pos, y + PIXEL, min (pos+inc, x+w), y + PIXEL);
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void layout_pulldown_triangle ( renderer  win,
SI  x,
SI  y 
)

Definition at line 107 of file layout.cpp.

                                                    {
  ren->set_line_style (PIXEL);
  ren->set_color (layout_normal (ren));
  ren->triangle (x-4*PIXEL, y, x+4*PIXEL, y, x, y-4*PIXEL);
  ren->set_color (layout_dark (ren));
  ren->line (x+4*PIXEL, y, x, y-4*PIXEL);
  ren->set_color (white);
  ren->line (x-4*PIXEL, y, x+4*PIXEL, y);
  ren->line (x-4*PIXEL, y, x, y-4*PIXEL);
}

Here is the call graph for this function:

void layout_right_arrow ( renderer  win,
SI  x,
SI  y,
SI  w,
SI  h 
)

Definition at line 185 of file layout.cpp.

                                                          {
  w -= PIXEL; h -= PIXEL; SI hh= ((h/PIXEL)>>1)*PIXEL;
  ren->set_line_style (PIXEL);
  ren->set_color (layout_normal (ren));
  ren->triangle (x, y, x, y+h, x+w, y+hh);
  ren->set_color (layout_dark (ren));
  ren->line (x, y, x+w, y+hh);
  ren->set_color (white);
  ren->line (x, y+h, x+w, y+hh);
  ren->line (x, y, x, y+h);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void layout_submenu_triangle ( renderer  win,
SI  x,
SI  y 
)

Definition at line 95 of file layout.cpp.

                                                   {
  ren->set_line_style (PIXEL);
  ren->set_color (layout_normal (ren));
  ren->triangle (x, y-3*PIXEL, x, y+3*PIXEL, x+7*PIXEL, y);
  ren->set_color (layout_dark (ren));
  ren->line (x, y-3*PIXEL, x, y+3*PIXEL);
  ren->line (x, y+3*PIXEL, x+7*PIXEL, y);
  ren->set_color (white);
  ren->line (x, y-3*PIXEL, x+7*PIXEL, y);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void layout_up_arrow ( renderer  win,
SI  x,
SI  y,
SI  w,
SI  h 
)

Definition at line 146 of file layout.cpp.

                                                       {
  w -= PIXEL; h -= PIXEL; SI hw= ((w/PIXEL)>>1)*PIXEL;
  ren->set_line_style (PIXEL);
  ren->set_color (layout_normal (ren));
  ren->triangle (x, y, x+w, y, x+hw, y+h);
  ren->set_color (layout_dark (ren));
  ren->line (x, y, x+w, y);
  ren->line (x+w, y, x+hw, y+h);
  ren->set_color (white);
  ren->line (x, y, x+hw, y+h);
}

Here is the call graph for this function:

Here is the caller graph for this function: