NetSurf
Public Member Functions | Private Attributes
NSResizeKnob Class Reference
Inheritance diagram for NSResizeKnob:
[legend]
Collaboration diagram for NSResizeKnob:
[legend]

Public Member Functions

 NSResizeKnob (BRect frame, BView *target)
 
virtual ~NSResizeKnob ()
 
virtual void MouseDown (BPoint where)
 
virtual void MouseUp (BPoint where)
 
virtual void MouseMoved (BPoint where, uint32 code, const BMessage *dragMessage)
 
virtual void Draw (BRect updateRect)
 
void SetBitmap (const BBitmap *bitmap)
 

Private Attributes

const BBitmap * fBitmap
 
BView * fTarget
 
BPoint fOffset
 

Detailed Description

Definition at line 300 of file scaffolding.cpp.

Constructor & Destructor Documentation

◆ NSResizeKnob()

NSResizeKnob::NSResizeKnob ( BRect  frame,
BView *  target 
)

Definition at line 320 of file scaffolding.cpp.

◆ ~NSResizeKnob()

NSResizeKnob::~NSResizeKnob ( )
virtual

Definition at line 330 of file scaffolding.cpp.

Member Function Documentation

◆ Draw()

void NSResizeKnob::Draw ( BRect  updateRect)
virtual

Definition at line 362 of file scaffolding.cpp.

References fBitmap.

◆ MouseDown()

void NSResizeKnob::MouseDown ( BPoint  where)
virtual

Definition at line 336 of file scaffolding.cpp.

References fOffset.

◆ MouseMoved()

void NSResizeKnob::MouseMoved ( BPoint  where,
uint32  code,
const BMessage *  dragMessage 
)
virtual

Definition at line 352 of file scaffolding.cpp.

References fOffset, and fTarget.

◆ MouseUp()

void NSResizeKnob::MouseUp ( BPoint  where)
virtual

Definition at line 345 of file scaffolding.cpp.

References fOffset.

◆ SetBitmap()

void NSResizeKnob::SetBitmap ( const BBitmap *  bitmap)

Definition at line 371 of file scaffolding.cpp.

References bitmap(), and fBitmap.

Here is the call graph for this function:

Field Documentation

◆ fBitmap

const BBitmap* NSResizeKnob::fBitmap
private

Definition at line 315 of file scaffolding.cpp.

Referenced by Draw(), and SetBitmap().

◆ fOffset

BPoint NSResizeKnob::fOffset
private

Definition at line 317 of file scaffolding.cpp.

Referenced by MouseDown(), MouseMoved(), and MouseUp().

◆ fTarget

BView* NSResizeKnob::fTarget
private

Definition at line 316 of file scaffolding.cpp.

Referenced by MouseMoved().


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