ARB
Public Member Functions | Public Attributes | Protected Attributes | List of all members
AWT_canvas Class Reference

#include <awt_canvas.hxx>

Inheritance diagram for AWT_canvas:
Inheritance graph
[legend]
Collaboration diagram for AWT_canvas:
Collaboration graph
[legend]

Public Member Functions

void init_device (AW_device *device)
 
void set_scrollbars ()
 
void set_dragEndpoint (int x, int y)
 
void set_horizontal_scrollbar_position (AW_window *aww, int pos)
 
void set_vertical_scrollbar_position (AW_window *aww, int pos)
 
 AWT_canvas (GBDATA *gb_main_, AW_window *aww_, const char *gc_base_name_, AWT_graphic *gfx_)
 
virtual ~AWT_canvas ()
 
void push_transaction () const
 
void pop_transaction () const
 
bool inside_auto_refresh () const
 
void request_refresh ()
 
void request_resize ()
 
void request_zoom_reset ()
 
void request_structure_update ()
 
void request_save ()
 
void request_save_and_zoom_reset ()
 
void instant_refresh ()
 
void instant_resize (bool adjust_scrollbars)
 
void instant_zoom_reset ()
 
void set_consider_text_for_zoom_reset (bool consider)
 
void zoom (AW_device *device, bool zoomIn, const AW::Rectangle &wanted_part, const AW::Rectangle &current_part, int percent)
 
void set_mode (AWT_COMMAND_MODE mo)
 
void scroll (int delta_x, int delta_y, bool dont_update_scrollbars=false)
 
void scroll (const AW::Vector &delta, bool dont_update_scrollbars=false)
 
bool handleWheelEvent (AW_device *device, const AW_event &event)
 
const charget_gc_base_name () const
 
void sync_DB_model_and_view (bool perform_refresh)
 
void announce_screen_update ()
 
bool is_shown () const
 

Public Attributes

AW_pos trans_to_fit
 
AW_pos shift_x_to_fit
 
AW_pos shift_y_to_fit
 
int old_hor_scroll_pos
 
int old_vert_scroll_pos
 
AW_screen_area rect
 
AW_world worldinfo
 
AW_world worldsize
 
int zoom_drag_sx
 
int zoom_drag_sy
 
int zoom_drag_ex
 
int zoom_drag_ey
 
int drag
 
GBDATAgb_main
 
AW_windowaww
 
AW_rootawr
 
AWT_graphicgfx
 
AW_gc_managergc_manager
 
AWT_COMMAND_MODE mode
 

Protected Attributes

screen_update_callback announce_update_cb
 
AW_CL user_data
 

Detailed Description

Definition at line 298 of file awt_canvas.hxx.

Constructor & Destructor Documentation

AWT_canvas::AWT_canvas ( GBDATA gb_main_,
AW_window aww_,
const char gc_base_name_,
AWT_graphic gfx_ 
)
virtual AWT_canvas::~AWT_canvas ( )
inlinevirtual

Definition at line 348 of file awt_canvas.hxx.

Member Function Documentation

void AWT_canvas::init_device ( AW_device device)
void AWT_canvas::set_scrollbars ( )

Definition at line 76 of file AWT_canvas.cxx.

References AW::Vector::x(), and AW::Vector::y().

void AWT_canvas::set_dragEndpoint ( int  x,
int  y 
)

Definition at line 589 of file AWT_canvas.cxx.

References awt_assert, AWT_ZOOM_BOTH, AWT_ZOOM_NEVER, AWT_ZOOM_X, and AWT_ZOOM_Y.

Referenced by motion_event().

void AWT_canvas::set_horizontal_scrollbar_position ( AW_window aww,
int  pos 
)

Definition at line 62 of file AWT_canvas.cxx.

void AWT_canvas::set_vertical_scrollbar_position ( AW_window aww,
int  pos 
)

Definition at line 69 of file AWT_canvas.cxx.

void AWT_canvas::push_transaction ( ) const
inline

Definition at line 59 of file AWT_canvas.cxx.

References gb_main, and GB_push_transaction().

Referenced by canvas_focus_cb(), input_event(), and motion_event().

void AWT_canvas::pop_transaction ( ) const
inline

Definition at line 60 of file AWT_canvas.cxx.

References gb_main, and GB_pop_transaction().

Referenced by canvas_focus_cb(), input_event(), and motion_event().

bool AWT_canvas::inside_auto_refresh ( ) const
inline
void AWT_canvas::request_refresh ( )
inline
void AWT_canvas::request_resize ( )
inline
void AWT_canvas::request_zoom_reset ( )
inline
void AWT_canvas::request_structure_update ( )
inline
void AWT_canvas::request_save ( )
inline
void AWT_canvas::request_save_and_zoom_reset ( )
inline
void AWT_canvas::instant_refresh ( )
void AWT_canvas::instant_resize ( bool  adjust_scrollbars)
void AWT_canvas::instant_zoom_reset ( )
void AWT_canvas::set_consider_text_for_zoom_reset ( bool  consider)
inline

Definition at line 378 of file awt_canvas.hxx.

Referenced by AWT_graphic_tree::apply_zoom_settings_for_treetype().

void AWT_canvas::zoom ( AW_device device,
bool  zoomIn,
const AW::Rectangle wanted_part,
const AW::Rectangle current_part,
int  percent 
)
void AWT_canvas::set_mode ( AWT_COMMAND_MODE  mo)
inline
void AWT_canvas::scroll ( int  delta_x,
int  delta_y,
bool  dont_update_scrollbars = false 
)
void AWT_canvas::scroll ( const AW::Vector delta,
bool  dont_update_scrollbars = false 
)
inline

Definition at line 385 of file awt_canvas.hxx.

References scroll(), AW::Vector::x(), and AW::Vector::y().

bool AWT_canvas::handleWheelEvent ( AW_device device,
const AW_event event 
)
const char* AWT_canvas::get_gc_base_name ( ) const
inline
void AWT_canvas::sync_DB_model_and_view ( bool  perform_refresh)

Definition at line 515 of file AWT_canvas.cxx.

Referenced by NT_jump_cb(), and AWT_auto_refresh::~AWT_auto_refresh().

void AWT_canvas::announce_screen_update ( )
inline

Definition at line 395 of file awt_canvas.hxx.

References announce_update_cb.

Referenced by clip_expose().

bool AWT_canvas::is_shown ( ) const
inline

Definition at line 397 of file awt_canvas.hxx.

References AW_window::is_shown().

Referenced by NT_get_canvas_showing_tree().

Member Data Documentation

screen_update_callback AWT_canvas::announce_update_cb
protected

Definition at line 304 of file awt_canvas.hxx.

Referenced by announce_screen_update(), and TREE_canvas::at_screen_update_call().

AW_CL AWT_canvas::user_data
protected

Definition at line 305 of file awt_canvas.hxx.

Referenced by TREE_canvas::at_screen_update_call().

AW_pos AWT_canvas::trans_to_fit

Definition at line 310 of file awt_canvas.hxx.

Referenced by canvas_to_xfig(), and get_drawsize().

AW_pos AWT_canvas::shift_x_to_fit

Definition at line 311 of file awt_canvas.hxx.

AW_pos AWT_canvas::shift_y_to_fit

Definition at line 312 of file awt_canvas.hxx.

int AWT_canvas::old_hor_scroll_pos

Definition at line 314 of file awt_canvas.hxx.

Referenced by scroll_hor_cb().

int AWT_canvas::old_vert_scroll_pos

Definition at line 315 of file awt_canvas.hxx.

Referenced by scroll_vert_cb().

AW_screen_area AWT_canvas::rect

Definition at line 316 of file awt_canvas.hxx.

Referenced by handleZoomEvent().

AW_world AWT_canvas::worldinfo

Definition at line 317 of file awt_canvas.hxx.

AW_world AWT_canvas::worldsize

Definition at line 318 of file awt_canvas.hxx.

int AWT_canvas::zoom_drag_sx

Definition at line 319 of file awt_canvas.hxx.

Referenced by handleZoomEvent(), and nt_draw_zoom_box().

int AWT_canvas::zoom_drag_sy

Definition at line 320 of file awt_canvas.hxx.

Referenced by handleZoomEvent(), and nt_draw_zoom_box().

int AWT_canvas::zoom_drag_ex

Definition at line 321 of file awt_canvas.hxx.

Referenced by handleZoomEvent(), input_event(), motion_event(), and nt_draw_zoom_box().

int AWT_canvas::zoom_drag_ey

Definition at line 322 of file awt_canvas.hxx.

Referenced by handleZoomEvent(), input_event(), motion_event(), and nt_draw_zoom_box().

int AWT_canvas::drag

Definition at line 323 of file awt_canvas.hxx.

Referenced by handleZoomEvent().

GBDATA* AWT_canvas::gb_main
AW_window* AWT_canvas::aww
AW_root* AWT_canvas::awr
AWT_graphic* AWT_canvas::gfx
AW_gc_manager* AWT_canvas::gc_manager
AWT_COMMAND_MODE AWT_canvas::mode

Definition at line 343 of file awt_canvas.hxx.

Referenced by input_event(), and motion_event().


The documentation for this class was generated from the following files: