Back to index

texmacs  1.0.7.15
Classes | Functions | Variables
widget.cpp File Reference
#include "gui.hpp"
#include "message.hpp"
#include "font.hpp"
#include "window.hpp"

Go to the source code of this file.

Classes

class  widget_connection_rep
class  widget_connection

Functions

const char * slot_name (const slot s)
 CONCRETE_CODE (widget_connection)
void insert (list< widget_connection > &l, widget_connection con)
void remove (list< widget_connection > &l, widget_connection con)
font get_default_styled_font (int style)

Variables

bool use_side_tools = false

Function Documentation

font get_default_styled_font ( int  style)

Definition at line 212 of file widget.cpp.

                                    {
  bool tt  = (style & WIDGET_STYLE_MONOSPACED) != 0;
  bool mini= (style & WIDGET_STYLE_MINI) != 0;
  bool bold= (style & WIDGET_STYLE_BOLD) != 0;
  return get_default_font (tt, mini, bold);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void insert ( list< widget_connection > &  l,
widget_connection  con 
) [inline]

Definition at line 121 of file widget.cpp.

                                                           {
  l= list<widget_connection> (con, l);
}
void remove ( list< widget_connection > &  l,
widget_connection  con 
)

Definition at line 126 of file widget.cpp.

                                                           {
  ASSERT (!is_nil (l), "removal not succeeded");
  if (l->item == con) l= l->next;
  else remove (l->next, con);
}

Here is the call graph for this function:

Here is the caller graph for this function:

const char* slot_name ( const slot  s)

Definition at line 22 of file widget.cpp.

                         { 
  const char * slot_names[]= {
    "SLOT_IDENTIFIER",
    "SLOT_WINDOW",
    "SLOT_RENDERER",
    "SLOT_VISIBILITY",
    "SLOT_FULL_SCREEN",
    "SLOT_NAME",
    "SLOT_SIZE",
    "SLOT_POSITION",
    "SLOT_UPDATE",
    "SLOT_REFRESH",
    "SLOT_KEYBOARD",
    "SLOT_KEYBOARD_FOCUS",
    "SLOT_MOUSE",
    "SLOT_MOUSE_GRAB",
    "SLOT_MOUSE_POINTER",
    "SLOT_INVALIDATE",
    "SLOT_INVALIDATE_ALL",
    "SLOT_REPAINT",
    "SLOT_DELAYED_MESSAGE",
    "SLOT_DESTROY",
    
    "SLOT_SHRINKING_FACTOR",
    "SLOT_EXTENTS",
    "SLOT_VISIBLE_PART",
    "SLOT_SCROLLBARS_VISIBILITY",
    "SLOT_SCROLL_POSITION",
    "SLOT_CANVAS",
    "SLOT_SCROLLABLE",
    "SLOT_CURSOR",
    
    "SLOT_HEADER_VISIBILITY",
    "SLOT_MAIN_MENU",
    "SLOT_MAIN_ICONS_VISIBILITY",
    "SLOT_MAIN_ICONS",
    "SLOT_MODE_ICONS_VISIBILITY",
    "SLOT_MODE_ICONS",
    "SLOT_FOCUS_ICONS_VISIBILITY",
    "SLOT_FOCUS_ICONS",
    "SLOT_USER_ICONS_VISIBILITY",
    "SLOT_USER_ICONS",
    "SLOT_FOOTER_VISIBILITY",
    "SLOT_LEFT_FOOTER",
    "SLOT_RIGHT_FOOTER",
    "SLOT_INTERACTIVE_MODE",
    "SLOT_INTERACTIVE_PROMPT",
    "SLOT_INTERACTIVE_INPUT",
    
    "SLOT_FORM_FIELD",
    "SLOT_STRING_INPUT",
    "SLOT_INPUT_TYPE",
    "SLOT_INPUT_PROPOSAL",
    "SLOT_FILE",
    "SLOT_DIRECTORY"
  };
  
  return slot_names[s.sid]; 
}

Here is the caller graph for this function:


Variable Documentation

bool use_side_tools = false

Definition at line 219 of file widget.cpp.