Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

htobj.cc File Reference

#include "htatom.h"
#include "cmds.h"
#include "htapp.h"
#include "htctrl.h"
#include "htdebug.h"
#include "htkeyb.h"
#include "htmenu.h"
#include "htobj.h"
#include "htpal.h"
#include "htreg.h"
#include "htstring.h"
#include "snprintf.h"
#include "store.h"
#include "tools.h"
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Classes

struct  databufdup_s

Defines

#define ATOM_HT_VIEW   MAGICD("OBJ\0")
#define ATOM_HT_GROUP   MAGICD("OBJ\1")
#define ATOM_HT_XGROUP   MAGICD("OBJ\2")
#define ATOM_HT_WINDOW   MAGICD("OBJ\3")
#define ATOM_HT_FRAME   MAGICD("OBJ\4")
#define ATOM_HT_SCROLLBAR   MAGICD("OBJ\5")
#define DEFAULT_VIEW_MIN_WIDTH   25
#define DEFAULT_VIEW_MIN_HEIGHT   6
#define wstate_count   3

Functions

void bounds_and (bounds *a, bounds *b)
void put_bounds (ht_object_stream *s, bounds *b)
void clearmsg (htmsg *msg)
bool view_line_exposed (ht_view *v, int y, int x1, int x2)
bool scrollbar_pos (int start, int size, int all, int *pstart, int *psize)
 BUILDER (ATOM_HT_VIEW, ht_view)
 BUILDER (ATOM_HT_GROUP, ht_group)
 BUILDER (ATOM_HT_XGROUP, ht_xgroup)
 BUILDER (ATOM_HT_WINDOW, ht_window)
 BUILDER (ATOM_HT_FRAME, ht_frame)
 BUILDER (ATOM_HT_SCROLLBAR, ht_scrollbar)
bool init_obj ()
void done_obj ()


Define Documentation

#define ATOM_HT_FRAME   MAGICD("OBJ\4")
 

Definition at line 44 of file htobj.cc.

Referenced by done_obj(), init_obj(), and ht_frame::object_id().

#define ATOM_HT_GROUP   MAGICD("OBJ\1")
 

Definition at line 41 of file htobj.cc.

Referenced by done_obj(), init_obj(), and ht_group::object_id().

#define ATOM_HT_SCROLLBAR   MAGICD("OBJ\5")
 

Definition at line 45 of file htobj.cc.

Referenced by done_obj(), init_obj(), and ht_scrollbar::object_id().

#define ATOM_HT_VIEW   MAGICD("OBJ\0")
 

Definition at line 40 of file htobj.cc.

Referenced by done_obj(), init_obj(), and ht_view::object_id().

#define ATOM_HT_WINDOW   MAGICD("OBJ\3")
 

Definition at line 43 of file htobj.cc.

Referenced by done_obj(), init_obj(), and ht_window::object_id().

#define ATOM_HT_XGROUP   MAGICD("OBJ\2")
 

Definition at line 42 of file htobj.cc.

Referenced by done_obj(), init_obj(), and ht_xgroup::object_id().

#define DEFAULT_VIEW_MIN_HEIGHT   6
 

Definition at line 48 of file htobj.cc.

Referenced by ht_view::getminbounds().

#define DEFAULT_VIEW_MIN_WIDTH   25
 

Definition at line 47 of file htobj.cc.

Referenced by ht_view::getminbounds().

#define wstate_count   3
 

Referenced by ht_window::next_action_state().


Function Documentation

void bounds_and bounds *  a,
bounds *  b
 

Definition at line 50 of file htobj.cc.

Referenced by ht_view::clipbounds(), and ht_view::fill().

BUILDER ATOM_HT_SCROLLBAR  ,
ht_scrollbar 
 

BUILDER ATOM_HT_FRAME  ,
ht_frame 
 

BUILDER ATOM_HT_WINDOW  ,
ht_window 
 

BUILDER ATOM_HT_XGROUP  ,
ht_xgroup 
 

BUILDER ATOM_HT_GROUP  ,
ht_group 
 

BUILDER ATOM_HT_VIEW  ,
ht_view 
 

void clearmsg htmsg *  msg  ) 
 

Definition at line 74 of file htobj.cc.

References msg_empty, and mt_empty.

Referenced by ht_aviewer::handlemsg(), ht_help_window::handlemsg(), ht_project_listbox::handlemsg(), ht_logviewer::handlemsg(), ht_app::handlemsg(), ht_file_window::handlemsg(), ht_clipboard_viewer::handlemsg(), ht_dialog::handlemsg(), ht_checkboxes::handlemsg(), ht_radioboxes::handlemsg(), ht_history_listbox::handlemsg(), ht_strinputfield::handlemsg(), ht_hexinputfield::handlemsg(), ht_button::handlemsg(), ht_listbox::handlemsg(), ht_listpopup::handlemsg(), ht_label::handlemsg(), ht_color_block::handlemsg(), ht_disasm_viewer::handlemsg(), ht_format_group::handlemsg(), ht_viewer::handlemsg(), ht_format_viewer::handlemsg(), ht_uformat_viewer::handlemsg(), ht_hex_viewer::handlemsg(), ht_menu::handlemsg(), ht_context_menu_window_body::handlemsg(), ht_menu_window::handlemsg(), ht_menu_window_body::handlemsg(), ht_view::handlemsg(), ht_group::handlemsg(), ht_window::handlemsg(), ht_pe_export_viewer::handlemsg(), ht_pef_import_viewer::handlemsg(), ht_pe_import_viewer::handlemsg(), ht_pe_resource_viewer::handlemsg(), ht_text_viewer2::handlemsg(), ht_treeview::handlemsg(), ht_xbe_import_viewer::handlemsg(), ht_info_viewer::handlemsg(), TerminalViewer::handlemsg(), ht_text_viewer::handlemsg(), ht_text_editor::handlemsg(), and VfsListbox::handlemsg().

void done_obj  ) 
 

Definition at line 2014 of file htobj.cc.

References ATOM_HT_FRAME, ATOM_HT_GROUP, ATOM_HT_SCROLLBAR, ATOM_HT_VIEW, ATOM_HT_WINDOW, ATOM_HT_XGROUP, and UNREGISTER.

bool init_obj  ) 
 

Definition at line 1999 of file htobj.cc.

References ATOM_HT_FRAME, ATOM_HT_GROUP, ATOM_HT_SCROLLBAR, ATOM_HT_VIEW, ATOM_HT_WINDOW, ATOM_HT_XGROUP, and REGISTER.

void put_bounds ht_object_stream s,
bounds *  b
 

Definition at line 66 of file htobj.cc.

References NULL, and ht_object_stream::putIntDec().

bool scrollbar_pos int  start,
int  size,
int  all,
int *  pstart,
int *  psize
 

Definition at line 1336 of file htobj.cc.

References size.

Referenced by ht_listbox::adjustScrollbar(), ht_disasm_viewer::get_vscrollbar_pos(), ht_hex_viewer::get_vscrollbar_pos(), and ht_text_viewer::get_vscrollbar_pos().

bool view_line_exposed ht_view v,
int  y,
int  x1,
int  x2
 

Definition at line 320 of file htobj.cc.

References ht_group::first, ht_view::group, ht_view::next, ht_view::options, ht_view::size, and VO_TRANSPARENT_CHARS.

Referenced by ht_view::exposed().


Generated on Fri May 7 21:15:49 2004 by doxygen 1.3.5