Back to index

texmacs  1.0.7.15
Classes | Defines | Functions
popup_button.cpp File Reference
#include "timer.hpp"
#include "window.hpp"
#include "promise.hpp"
#include "Widkit/Button/button_widget.hpp"
#include "message.hpp"

Go to the source code of this file.

Classes

class  popup_button_rep

Defines

#define MAP_DELAY   100

Functions

gravity opposite (gravity grav)
wk_widget pulldown_button (wk_widget w, wk_widget pw, int style)
wk_widget pullright_button (wk_widget w, wk_widget pw, int style)
wk_widget pulldown_button (wk_widget w, promise< wk_widget > prom)
wk_widget pullright_button (wk_widget w, promise< wk_widget > prom)

Define Documentation

#define MAP_DELAY   100

Definition at line 21 of file popup_button.cpp.


Function Documentation

Definition at line 281 of file popup_button.cpp.

                        {
  switch (grav) {
  case north_west: return south_east;
  case north     : return south;
  case north_east: return south_west;
  case west      : return east;
  case center    : return center;
  case east      : return west;
  case south_west: return north_east;
  case south     : return north;
  case south_east: return north_west;
  }
  FAILED ("unknown gravity");
  return center; // Because of bug in certain versions of g++
}

Here is the caller graph for this function:

wk_widget pulldown_button ( wk_widget  w,
wk_widget  pw,
int  style 
)

Definition at line 302 of file popup_button.cpp.

                                                       {
  return tm_new<popup_button_rep> (w, pw, south_east, style);
}

Definition at line 312 of file popup_button.cpp.

                                                       {
  return tm_new<popup_button_rep> (w, prom, south_east);
}
wk_widget pullright_button ( wk_widget  w,
wk_widget  pw,
int  style 
)

Definition at line 307 of file popup_button.cpp.

                                                        {
  return tm_new<popup_button_rep> (w, pw, east, style);
}

Definition at line 317 of file popup_button.cpp.

                                                        {
  return tm_new<popup_button_rep> (w, prom, east);
}