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

Public Member Functions

 NSIconTextControl (BRect frame, const char *name, const char *label, const char *initialText, BMessage *message, uint32 resizeMode=B_FOLLOW_LEFT|B_FOLLOW_TOP, uint32 flags=B_WILL_DRAW|B_NAVIGABLE|B_DRAW_ON_CHILDREN)
 
virtual ~NSIconTextControl ()
 
virtual void FrameResized (float newWidth, float newHeight)
 
virtual void Draw (BRect updateRect)
 
virtual void DrawAfterChildren (BRect updateRect)
 
virtual void AttachedToWindow ()
 
void SetBitmap (const BBitmap *bitmap)
 
void FixupTextRect ()
 

Private Attributes

BPoint fIconOffset
 
BRect fIconFrame
 
const BBitmap * fIconBitmap
 

Detailed Description

Definition at line 178 of file scaffolding.cpp.

Constructor & Destructor Documentation

◆ NSIconTextControl()

NSIconTextControl::NSIconTextControl ( BRect  frame,
const char *  name,
const char *  label,
const char *  initialText,
BMessage *  message,
uint32  resizeMode = B_FOLLOW_LEFT | B_FOLLOW_TOP,
uint32  flags = B_WILL_DRAW | B_NAVIGABLE | B_DRAW_ON_CHILDREN 
)

Definition at line 203 of file scaffolding.cpp.

References fIconFrame, FixupTextRect(), and ICON_WIDTH.

Here is the call graph for this function:

◆ ~NSIconTextControl()

NSIconTextControl::~NSIconTextControl ( )
virtual

Definition at line 222 of file scaffolding.cpp.

References fIconBitmap.

Member Function Documentation

◆ AttachedToWindow()

void NSIconTextControl::AttachedToWindow ( )
virtual

Definition at line 260 of file scaffolding.cpp.

References FixupTextRect().

Here is the call graph for this function:

◆ Draw()

void NSIconTextControl::Draw ( BRect  updateRect)
virtual

Definition at line 237 of file scaffolding.cpp.

References FixupTextRect().

Here is the call graph for this function:

◆ DrawAfterChildren()

void NSIconTextControl::DrawAfterChildren ( BRect  updateRect)
virtual

Definition at line 245 of file scaffolding.cpp.

References fIconBitmap, and fIconFrame.

◆ FixupTextRect()

void NSIconTextControl::FixupTextRect ( )

Definition at line 282 of file scaffolding.cpp.

References ICON_WIDTH.

Referenced by AttachedToWindow(), Draw(), FrameResized(), and NSIconTextControl().

Here is the caller graph for this function:

◆ FrameResized()

void NSIconTextControl::FrameResized ( float  newWidth,
float  newHeight 
)
virtual

Definition at line 229 of file scaffolding.cpp.

References FixupTextRect().

Here is the call graph for this function:

◆ SetBitmap()

void NSIconTextControl::SetBitmap ( const BBitmap *  bitmap)

Definition at line 268 of file scaffolding.cpp.

References fIconBitmap, and fIconFrame.

Referenced by gui_window_set_icon().

Here is the caller graph for this function:

Field Documentation

◆ fIconBitmap

const BBitmap* NSIconTextControl::fIconBitmap
private

Definition at line 200 of file scaffolding.cpp.

Referenced by DrawAfterChildren(), SetBitmap(), and ~NSIconTextControl().

◆ fIconFrame

BRect NSIconTextControl::fIconFrame
private

Definition at line 199 of file scaffolding.cpp.

Referenced by DrawAfterChildren(), NSIconTextControl(), and SetBitmap().

◆ fIconOffset

BPoint NSIconTextControl::fIconOffset
private

Definition at line 198 of file scaffolding.cpp.


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