Dillo v3.1.1-46-g8a360e32
Loading...
Searching...
No Matches
dw::fltk::FltkWidgetView Class Reference

#include <fltkviewbase.hh>

Public Member Functions

 FltkWidgetView (int x, int y, int w, int h, const char *label=0)
 
 ~FltkWidgetView ()
 
void drawText (core::style::Font *font, core::style::Color *color, core::style::Color::Shading shading, int x, int y, const char *text, int len)
 
void drawSimpleWrappedText (core::style::Font *font, core::style::Color *color, core::style::Color::Shading shading, int x, int y, int w, int h, const char *text)
 
void drawImage (core::Imgbuf *imgbuf, int xRoot, int yRoot, int x, int y, int width, int height)
 
bool usesFltkWidgets ()
 
void addFltkWidget (Fl_Widget *widget, core::Allocation *allocation)
 
void removeFltkWidget (Fl_Widget *widget)
 
void allocateFltkWidget (Fl_Widget *widget, core::Allocation *allocation)
 
void drawFltkWidget (Fl_Widget *widget, core::Rectangle *area)
 
- Public Member Functions inherited from dw::fltk::FltkViewBase
 FltkViewBase (int x, int y, int w, int h, const char *label=0)
 
 ~FltkViewBase ()
 
void draw ()
 
int handle (int event)
 
void setLayout (core::Layout *layout)
 This methods notifies the view, that it has been attached to a layout.
 
void setCanvasSize (int width, int ascent, int descent)
 Set the canvas size.
 
void setCursor (core::style::Cursor cursor)
 Set the cursor appearance.
 
void setBgColor (core::style::Color *color)
 Set the background of the view.
 
void startDrawing (core::Rectangle *area)
 Called before drawing.
 
void finishDrawing (core::Rectangle *area)
 Called after drawing.
 
void queueDraw (core::Rectangle *area)
 Queue a region, which is given in canvas coordinates, for drawing.
 
void queueDrawTotal ()
 Queue the total viewport for drawing.
 
void cancelQueueDraw ()
 Cancel a draw queue request.
 
void drawPoint (core::style::Color *color, core::style::Color::Shading shading, int x, int y)
 
void drawLine (core::style::Color *color, core::style::Color::Shading shading, int x1, int y1, int x2, int y2)
 
void drawTypedLine (core::style::Color *color, core::style::Color::Shading shading, core::style::LineType type, int width, int x1, int y1, int x2, int y2)
 
void drawRectangle (core::style::Color *color, core::style::Color::Shading shading, bool filled, int x, int y, int width, int height)
 
void drawArc (core::style::Color *color, core::style::Color::Shading shading, bool filled, int centerX, int centerY, int width, int height, int angle1, int angle2)
 
void drawPolygon (core::style::Color *color, core::style::Color::Shading shading, bool filled, bool convex, core::Point *points, int npoints)
 
core::ViewgetClippingView (int x, int y, int width, int height)
 
void mergeClippingView (core::View *clippingView)
 
void setBufferedDrawing (bool b)
 
- Public Member Functions inherited from dw::core::View
virtual bool usesViewport ()=0
 Return, whether this view uses a viewport.
 
virtual int getHScrollbarThickness ()=0
 Get the thickness of the horizontal scrollbar, when it is visible.
 
virtual int getVScrollbarThickness ()=0
 Get the thickness of the vertical scrollbar, when it is visible.
 
virtual void scrollTo (int x, int y)=0
 Scroll the vieport to the given position.
 
virtual void scroll (ScrollCommand)
 Scroll the viewport as commanded.
 
virtual void setViewportSize (int width, int height, int hScrollbarThickness, int vScrollbarThickness)=0
 Set the viewport size.
 
- Public Member Functions inherited from lout::object::Object
virtual ~Object ()
 The destructor is defined as virtual (but not abstract), so that destruction of Object's works properly.
 
virtual bool equals (Object *other)
 Returns, whether two objects are equal.
 
virtual int hashValue ()
 Return a hash value for the object.
 
virtual Objectclone ()
 Return an exact copy of the object.
 
virtual void intoStringBuffer (misc::StringBuffer *sb)
 Store a textual representation of the object in a misc::StringBuffer.
 
const char * toString ()
 Use object::Object::intoStringBuffer to return a textual representation of the object.
 
virtual size_t sizeOf ()
 Return the number of bytes, this object totally uses.
 

Additional Inherited Members

- Protected Member Functions inherited from dw::fltk::FltkViewBase
virtual int translateViewXToCanvasX (int x)=0
 
virtual int translateViewYToCanvasY (int y)=0
 
virtual int translateCanvasXToViewX (int x)=0
 
virtual int translateCanvasYToViewY (int y)=0
 
- Protected Attributes inherited from dw::fltk::FltkViewBase
core::LayouttheLayout
 
int canvasWidth
 
int canvasHeight
 
int mouse_x
 
int mouse_y
 
Fl_Widget * focused_child
 

Detailed Description

Definition at line 111 of file fltkviewbase.hh.

Constructor & Destructor Documentation

◆ FltkWidgetView()

dw::fltk::FltkWidgetView::FltkWidgetView ( int  x,
int  y,
int  w,
int  h,
const char *  label = 0 
)

Definition at line 602 of file fltkviewbase.cc.

◆ ~FltkWidgetView()

dw::fltk::FltkWidgetView::~FltkWidgetView ( )

Definition at line 608 of file fltkviewbase.cc.

Member Function Documentation

◆ addFltkWidget()

void dw::fltk::FltkWidgetView::addFltkWidget ( Fl_Widget *  widget,
core::Allocation allocation 
)
virtual

Reimplemented from dw::fltk::FltkView.

Definition at line 707 of file fltkviewbase.cc.

References allocateFltkWidget().

◆ allocateFltkWidget()

void dw::fltk::FltkWidgetView::allocateFltkWidget ( Fl_Widget *  widget,
core::Allocation allocation 
)
virtual

◆ drawFltkWidget()

void dw::fltk::FltkWidgetView::drawFltkWidget ( Fl_Widget *  widget,
core::Rectangle area 
)
virtual

Reimplemented from dw::fltk::FltkView.

Definition at line 728 of file fltkviewbase.cc.

◆ drawImage()

void dw::fltk::FltkWidgetView::drawImage ( core::Imgbuf imgbuf,
int  xRoot,
int  yRoot,
int  x,
int  y,
int  width,
int  height 
)
virtual

◆ drawSimpleWrappedText()

void dw::fltk::FltkWidgetView::drawSimpleWrappedText ( core::style::Font font,
core::style::Color color,
core::style::Color::Shading  shading,
int  x,
int  y,
int  w,
int  h,
const char *  text 
)
virtual

◆ drawText()

◆ removeFltkWidget()

void dw::fltk::FltkWidgetView::removeFltkWidget ( Fl_Widget *  widget)
virtual

Reimplemented from dw::fltk::FltkView.

Definition at line 714 of file fltkviewbase.cc.

◆ usesFltkWidgets()

bool dw::fltk::FltkWidgetView::usesFltkWidgets ( )
virtual

Implements dw::fltk::FltkView.

Definition at line 702 of file fltkviewbase.cc.


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