Back to index

texmacs  1.0.7.15
Classes | Functions
switch_widget.cpp File Reference
#include "Widkit/composite_widget.hpp"
#include "Widkit/Event/attribute_event.hpp"

Go to the source code of this file.

Classes

class  switch_widget_rep
class  wrapped_widget_rep

Functions

wk_widget switch_widget (array< wk_widget > a, array< string > name, int init)
wk_widget optional_widget (wk_widget w, bool on)
wk_widget wrapped_widget (wk_widget w, command cmd)

Function Documentation

wk_widget optional_widget ( wk_widget  w,
bool  on 
)

Definition at line 169 of file switch_widget.cpp.

                                       {
  array<wk_widget> a (2);
  a[0]= w;
  a[1]= glue_wk_widget (false, false);
  array<string> name (2);
  name[0]= "default";
  return switch_widget (a, name, on? 0: 1);
}

Here is the call graph for this function:

wk_widget switch_widget ( array< wk_widget a,
array< string name,
int  init 
)

Definition at line 164 of file switch_widget.cpp.

                                                                 {
  return tm_new<switch_widget_rep> (a, name, init);
}

Here is the call graph for this function:

Definition at line 179 of file switch_widget.cpp.

                                          {
  return tm_new<wrapped_widget_rep> (w, cmd);
}