⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 slider.h

📁 很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.
💻 H
字号:
/////////////////////////////////////////////////////////////////////////////// Name:        wx/motif/slider.h// Purpose:     wxSlider class// Author:      Julian Smart// Modified by:// Created:     17/09/98// RCS-ID:      $Id: slider.h,v 1.17 2006/09/05 20:46:14 VZ Exp $// Copyright:   (c) Julian Smart// Licence:     wxWindows licence/////////////////////////////////////////////////////////////////////////////#ifndef _WX_SLIDER_H_#define _WX_SLIDER_H_#include "wx/control.h"// Sliderclass WXDLLEXPORT wxSlider: public wxSliderBase{    DECLARE_DYNAMIC_CLASS(wxSlider)public:    wxSlider();    wxSlider(wxWindow *parent, wxWindowID id,        int value, int minValue, int maxValue,        const wxPoint& pos = wxDefaultPosition,        const wxSize& size = wxDefaultSize,        long style = wxSL_HORIZONTAL,        const wxValidator& validator = wxDefaultValidator,        const wxString& name = wxSliderNameStr)    {        Create(parent, id, value, minValue, maxValue, pos, size, style, validator, name);    }    virtual ~wxSlider();    bool Create(wxWindow *parent, wxWindowID id,        int value, int minValue, int maxValue,        const wxPoint& pos = wxDefaultPosition,        const wxSize& size = wxDefaultSize,        long style = wxSL_HORIZONTAL,        const wxValidator& validator = wxDefaultValidator,        const wxString& name = wxSliderNameStr);    virtual int GetValue() const ;    virtual void SetValue(int);    void SetRange(int minValue, int maxValue);    inline int GetMin() const { return m_rangeMin; }    inline int GetMax() const { return m_rangeMax; }    // For trackbars only    void SetPageSize(int pageSize);    int GetPageSize() const ;    void SetLineSize(int lineSize);    int GetLineSize() const ;    void SetThumbLength(int len) ;    int GetThumbLength() const ;    void Command(wxCommandEvent& event);protected:    int           m_rangeMin;    int           m_rangeMax;    int           m_pageSize;    int           m_lineSize;    virtual void DoSetSize(int x, int y,        int width, int height,        int sizeFlags = wxSIZE_AUTO);private:    DECLARE_EVENT_TABLE()};#endif// _WX_SLIDER_H_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -