ARB
|
#include "awt_canvas.hxx"
#include "awt.hxx"
#include <aw_root.hxx>
#include <aw_msg.hxx>
#include <aw_preset.hxx>
#include <arbdbt.h>
#include <algorithm>
Go to the source code of this file.
Functions | |
void | TRACE_UPDATE (const char *) |
void | nt_draw_zoom_box (AW_device *device, int gc, AW_pos x1, AW_pos y1, AW_pos x2, AW_pos y2) |
void | nt_draw_zoom_box (AW_device *device, AWT_canvas *scr) |
static void | clip_expose (AW_window *aww, AWT_canvas *scr, int left_border, int right_border, int top_border, int bottom_border, int hor_overlap, int ver_overlap) |
void | AWT_expose_cb (UNFIXED, AWT_canvas *scr) |
static void | canvas_resize_cb (UNFIXED, AWT_canvas *scr) |
void | AWT_GC_changed_cb (GcChange whatChanged, AWT_canvas *scr) |
static void | canvas_focus_cb (AW_window *, AWT_canvas *scr) |
static bool | handleZoomEvent (AWT_canvas *scr, AW_device *device, const AW_event &event, int percent) |
static void | input_event (AW_window *aww, AWT_canvas *scr) |
static void | motion_event (AW_window *aww, AWT_canvas *scr) |
static void | scroll_vert_cb (AW_window *aww, AWT_canvas *scr) |
static void | scroll_hor_cb (AW_window *aww, AWT_canvas *scr) |
Variables | |
const int | ZOOM_SPEED_CLICK = 10 |
const int | ZOOM_SPEED_WHEEL = 4 |
|
inline |
Definition at line 36 of file AWT_canvas.cxx.
Referenced by AWT_canvas::instant_refresh(), AWT_canvas::instant_resize(), and AWT_canvas::instant_zoom_reset().
|
inline |
Definition at line 326 of file AWT_canvas.cxx.
References AW_device::box(), and AW::FillStyle::EMPTY.
Referenced by handleZoomEvent(), motion_event(), and nt_draw_zoom_box().
|
inline |
Definition at line 329 of file AWT_canvas.cxx.
References AWT_graphic::get_drag_gc(), AWT_canvas::gfx, nt_draw_zoom_box(), AWT_canvas::zoom_drag_ex, AWT_canvas::zoom_drag_ey, AWT_canvas::zoom_drag_sx, and AWT_canvas::zoom_drag_sy.
|
static |
Definition at line 336 of file AWT_canvas.cxx.
References AWT_canvas::announce_screen_update(), AW_MIDDLE_AREA, AW_SCREEN, AW_device::clear_part(), AWT_canvas::gb_main, AW_window::get_device(), AWT_canvas::gfx, AWT_canvas::init_device(), AW_device::reset(), AW_clipable::set_bottom_clip_border(), AW_device::set_filter(), AW_clipable::set_left_clip_border(), AW_clipable::set_right_clip_border(), AW_clipable::set_top_clip_border(), AWT_graphic::show(), and ta.
Referenced by AWT_canvas::instant_refresh(), and AWT_canvas::scroll().
void AWT_expose_cb | ( | UNFIXED | , |
AWT_canvas * | scr | ||
) |
Definition at line 385 of file AWT_canvas.cxx.
References AWT_canvas::request_refresh().
Referenced by AWT_canvas::AWT_canvas(), and TREE_install_update_callbacks().
|
static |
Definition at line 389 of file AWT_canvas.cxx.
References AWT_canvas::request_zoom_reset().
Referenced by AWT_canvas::AWT_canvas().
void AWT_GC_changed_cb | ( | GcChange | whatChanged, |
AWT_canvas * | scr | ||
) |
Definition at line 394 of file AWT_canvas.cxx.
References GC_COLOR_CHANGED, GC_COLOR_GROUP_USE_CHANGED, GC_FONT_CHANGED, AWT_canvas::request_refresh(), and AWT_canvas::request_resize().
Referenced by RNA3D_Graphics::init_devices(), GEN_graphic::init_devices(), SAI_graphic::init_devices(), and TREE_GC_changed_cb().
|
static |
Definition at line 409 of file AWT_canvas.cxx.
References AWT_canvas::gb_main, AWT_canvas::pop_transaction(), and AWT_canvas::push_transaction().
Referenced by AWT_canvas::AWT_canvas().
|
static |
Definition at line 422 of file AWT_canvas.cxx.
References AW_BUTTON_LEFT, AW_BUTTON_RIGHT, AW_KEY_ASCII, AW_Mouse_Press, AW_event::button, AW_event::character, AWT_canvas::drag, AW::INCLUSIVE_OUTLINE, AW_event::keycode, nt_draw_zoom_box(), AWT_canvas::rect, AWT_canvas::request_refresh(), AWT_canvas::request_zoom_reset(), AW_event::type, AWT_canvas::zoom(), AWT_canvas::zoom_drag_ex, AWT_canvas::zoom_drag_ey, AWT_canvas::zoom_drag_sx, and AWT_canvas::zoom_drag_sy.
Referenced by AWT_canvas::handleWheelEvent(), and input_event().
|
static |
Definition at line 535 of file AWT_canvas.cxx.
References AW_BUTTON_MIDDLE, AW_CLICK, AW_MIDDLE_AREA, AW_Mouse_Press, AW_SCREEN, awt_assert, AWT_CATCH, AWT_MODE_ZOOM, AWT_canvas::aww, AW_event::button, AWT_graphic::drag_target_detection(), AW_window::get_click_device(), AW_window::get_device(), AW_window::get_event(), AWT_canvas::gfx, AWT_graphic::handle_command(), AWT_canvas::handleWheelEvent(), handleZoomEvent(), AWT_canvas::init_device(), AWT_canvas::mode, AWT_canvas::pop_transaction(), AWT_canvas::push_transaction(), AW_device::reset(), AW_device::set_filter(), AWT_graphic::show(), AW_event::type, AW_event::x, AW_event::y, AWT_canvas::zoom_drag_ex, and AWT_canvas::zoom_drag_ey.
Referenced by AWT_canvas::AWT_canvas().
|
static |
Definition at line 648 of file AWT_canvas.cxx.
References AW_BUTTON_LEFT, AW_BUTTON_MIDDLE, AW_BUTTON_RIGHT, AW_CLICK_DROP, AW_MIDDLE_AREA, AW_SCREEN, AWT_CATCH, AWT_MODE_ZOOM, AWT_ZOOM_NEVER, AW_event::button, AWT_graphic::exports, AW_window::get_click_device(), AW_window::get_device(), AW_window::get_event(), AWT_canvas::gfx, AWT_graphic::handle_command(), AWT_canvas::init_device(), AWT_canvas::mode, nt_draw_zoom_box(), NULp, AWT_canvas::pop_transaction(), AWT_canvas::push_transaction(), AW_device::reset(), AWT_canvas::scroll(), AWT_canvas::set_dragEndpoint(), AW_device::set_filter(), AWT_graphic::show(), AWT_graphic::wants_drag_target(), AW_event::x, AW_event::y, AWT_canvas::zoom_drag_ex, AWT_canvas::zoom_drag_ey, and AWT_graphic_exports::zoom_mode.
Referenced by AWT_canvas::AWT_canvas().
|
static |
Definition at line 781 of file AWT_canvas.cxx.
References AWT_canvas::old_vert_scroll_pos, AWT_canvas::scroll(), and AW_window::slider_pos_vertical.
Referenced by AWT_canvas::AWT_canvas().
|
static |
Definition at line 789 of file AWT_canvas.cxx.
References AWT_canvas::old_hor_scroll_pos, AWT_canvas::scroll(), and AW_window::slider_pos_horizontal.
Referenced by AWT_canvas::AWT_canvas().
const int ZOOM_SPEED_CLICK = 10 |
Definition at line 419 of file AWT_canvas.cxx.
const int ZOOM_SPEED_WHEEL = 4 |
Definition at line 420 of file AWT_canvas.cxx.