NCBI C++ ToolKit
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
CLargeSpinControl Class Reference

Search Toolkit Book for CLargeSpinControl

#include <gui/widgets/edit/large_spin_ctrl.hpp>

+ Inheritance diagram for CLargeSpinControl:
+ Collaboration diagram for CLargeSpinControl:

Public Types

enum  EArea { kNone , kBtnUp = 1000 , kBtnDn }
 

Public Member Functions

 CLargeSpinControl (wxWindow *parent, wxWindowID id, const wxPoint &pos)
 
void Create (wxWindow *parent, wxWindowID id, const wxPoint &pos)
 
void UseImageSet (int set)
 
wxSize DoGetBestSize () const
 
void OnPaint (wxPaintEvent &event)
 
void OnMouseMove (wxMouseEvent &event)
 
void OnMouseLeave (wxMouseEvent &event)
 
void OnLeftDown (wxMouseEvent &event)
 
void OnLeftUp (wxMouseEvent &event)
 

Static Public Attributes

static const int kWidth = 34
 
static const int kHeight = 17
 

Protected Member Functions

EArea x_HitTest (int x, int y)
 
void x_DrawButton (wxDC &dc, int w, int h, wxBitmap &img, bool highlight, bool clicked)
 

Protected Attributes

wxBitmap m_OffScreen
 
wxBitmap m_ArrUp
 
wxBitmap m_ArrDn
 
wxBitmap m_PlusUp
 
wxBitmap m_PlusDown
 
int m_ImageSet
 
EArea m_Highlight
 
EArea m_Clicking
 

Detailed Description

Definition at line 46 of file large_spin_ctrl.hpp.

Member Enumeration Documentation

◆ EArea

Enumerator
kNone 
kBtnUp 
kBtnDn 

Definition at line 62 of file large_spin_ctrl.hpp.

Constructor & Destructor Documentation

◆ CLargeSpinControl()

CLargeSpinControl::CLargeSpinControl ( wxWindow *  parent,
wxWindowID  id,
const wxPoint &  pos 
)

Definition at line 61 of file large_spin_ctrl.cpp.

References Create().

Member Function Documentation

◆ Create()

void CLargeSpinControl::Create ( wxWindow *  parent,
wxWindowID  id,
const wxPoint &  pos 
)

Definition at line 69 of file large_spin_ctrl.cpp.

References kHeight, kWidth, and wxT.

Referenced by CLargeSpinControl().

◆ DoGetBestSize()

wxSize CLargeSpinControl::DoGetBestSize ( ) const

Definition at line 79 of file large_spin_ctrl.cpp.

References kHeight, and kWidth.

◆ OnLeftDown()

void CLargeSpinControl::OnLeftDown ( wxMouseEvent &  event)

Definition at line 154 of file large_spin_ctrl.cpp.

References m_Clicking, and x_HitTest().

◆ OnLeftUp()

void CLargeSpinControl::OnLeftUp ( wxMouseEvent &  event)

Definition at line 163 of file large_spin_ctrl.cpp.

References kNone, m_Clicking, and m_ImageSet.

◆ OnMouseLeave()

void CLargeSpinControl::OnMouseLeave ( wxMouseEvent &  event)

Definition at line 145 of file large_spin_ctrl.cpp.

References kNone, m_Clicking, and m_Highlight.

◆ OnMouseMove()

void CLargeSpinControl::OnMouseMove ( wxMouseEvent &  event)

Definition at line 132 of file large_spin_ctrl.cpp.

References kNone, m_Clicking, m_Highlight, and x_HitTest().

◆ OnPaint()

void CLargeSpinControl::OnPaint ( wxPaintEvent &  event)

◆ UseImageSet()

void CLargeSpinControl::UseImageSet ( int  set)

◆ x_DrawButton()

void CLargeSpinControl::x_DrawButton ( wxDC &  dc,
int  w,
int  h,
wxBitmap &  img,
bool  highlight,
bool  clicked 
)
protected

Definition at line 109 of file large_spin_ctrl.cpp.

Referenced by OnPaint().

◆ x_HitTest()

CLargeSpinControl::EArea CLargeSpinControl::x_HitTest ( int  x,
int  y 
)
protected

Definition at line 174 of file large_spin_ctrl.cpp.

References kBtnDn, kBtnUp, kHeight, kNone, and kWidth.

Referenced by OnLeftDown(), and OnMouseMove().

Member Data Documentation

◆ kHeight

const int CLargeSpinControl::kHeight = 17
static

◆ kWidth

const int CLargeSpinControl::kWidth = 34
static

◆ m_ArrDn

wxBitmap CLargeSpinControl::m_ArrDn
protected

Definition at line 78 of file large_spin_ctrl.hpp.

Referenced by OnPaint().

◆ m_ArrUp

wxBitmap CLargeSpinControl::m_ArrUp
protected

Definition at line 77 of file large_spin_ctrl.hpp.

Referenced by OnPaint().

◆ m_Clicking

EArea CLargeSpinControl::m_Clicking
protected

Definition at line 83 of file large_spin_ctrl.hpp.

Referenced by OnLeftDown(), OnLeftUp(), OnMouseLeave(), OnMouseMove(), and OnPaint().

◆ m_Highlight

EArea CLargeSpinControl::m_Highlight
protected

Definition at line 82 of file large_spin_ctrl.hpp.

Referenced by OnMouseLeave(), OnMouseMove(), and OnPaint().

◆ m_ImageSet

int CLargeSpinControl::m_ImageSet
protected

Definition at line 81 of file large_spin_ctrl.hpp.

Referenced by OnLeftUp(), OnPaint(), and UseImageSet().

◆ m_OffScreen

wxBitmap CLargeSpinControl::m_OffScreen
protected

Definition at line 76 of file large_spin_ctrl.hpp.

Referenced by OnPaint().

◆ m_PlusDown

wxBitmap CLargeSpinControl::m_PlusDown
protected

Definition at line 80 of file large_spin_ctrl.hpp.

Referenced by OnPaint().

◆ m_PlusUp

wxBitmap CLargeSpinControl::m_PlusUp
protected

Definition at line 79 of file large_spin_ctrl.hpp.

Referenced by OnPaint().


The documentation for this class was generated from the following files:
Modified on Wed Jun 05 12:03:11 2024 by modify_doxy.py rev. 669887