Dillo v3.1.1-98-g318d1f14
|
#include <fltkpreview.hh>
Public Member Functions | |
FltkPreviewWindow (dw::core::Layout *layout) | |
~FltkPreviewWindow () | |
void | reallocate () |
void | showWindow () |
void | hideWindow () |
void | scrollTo (int mouseX, int mouseY) |
Private Types | |
enum | { BORDER_WIDTH = 2 } |
Private Attributes | |
FltkPreview * | preview |
int | posX |
int | posY |
Definition at line 59 of file fltkpreview.hh.
|
private |
Enumerator | |
---|---|
BORDER_WIDTH |
Definition at line 62 of file fltkpreview.hh.
dw::fltk::FltkPreviewWindow::FltkPreviewWindow | ( | dw::core::Layout * | layout | ) |
Definition at line 179 of file fltkpreview.cc.
References BORDER_WIDTH, layout, and preview.
dw::fltk::FltkPreviewWindow::~FltkPreviewWindow | ( | ) |
Definition at line 191 of file fltkpreview.cc.
void dw::fltk::FltkPreviewWindow::hideWindow | ( | ) |
Definition at line 253 of file fltkpreview.cc.
Referenced by dw::fltk::FltkPreviewButton::handle().
void dw::fltk::FltkPreviewWindow::reallocate | ( | ) |
Definition at line 201 of file fltkpreview.cc.
References BORDER_WIDTH, dw::fltk::FltkViewBase::canvasHeight, dw::fltk::FltkViewBase::canvasWidth, posX, posY, preview, dw::fltk::misc::screenHeight(), dw::fltk::misc::screenWidth(), dw::fltk::FltkPreview::scrollHeight, dw::fltk::FltkPreview::scrollWidth, dw::fltk::FltkPreview::scrollX, dw::fltk::FltkPreview::scrollY, dw::fltk::FltkPreview::translateCanvasXToViewX(), dw::fltk::FltkPreview::translateCanvasYToViewY(), and dw::fltk::misc::warpPointer().
Referenced by showWindow().
void dw::fltk::FltkPreviewWindow::scrollTo | ( | int | mouseX, |
int | mouseY | ||
) |
Definition at line 258 of file fltkpreview.cc.
References BORDER_WIDTH, posX, posY, preview, dw::fltk::FltkPreview::scrollHeight, dw::core::Layout::scrollPosChanged(), dw::fltk::FltkPreview::scrollWidth, dw::fltk::FltkPreview::scrollX, dw::fltk::FltkPreview::scrollY, dw::fltk::FltkViewBase::theLayout, dw::fltk::FltkPreview::translateViewXToCanvasX(), and dw::fltk::FltkPreview::translateViewYToCanvasY().
Referenced by dw::fltk::FltkPreviewButton::handle().
void dw::fltk::FltkPreviewWindow::showWindow | ( | ) |
Definition at line 195 of file fltkpreview.cc.
References reallocate().
Referenced by dw::fltk::FltkPreviewButton::handle().
|
private |
Definition at line 65 of file fltkpreview.hh.
Referenced by reallocate(), and scrollTo().
|
private |
Definition at line 65 of file fltkpreview.hh.
Referenced by reallocate(), and scrollTo().
|
private |
Definition at line 64 of file fltkpreview.hh.
Referenced by FltkPreviewWindow(), reallocate(), and scrollTo().