File: qslider_c.cpp

package info (click to toggle)
libqtpas 2.6%2B2.0.8%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,860 kB
  • sloc: cpp: 56,595; pascal: 13,727; sh: 44; makefile: 18
file content (63 lines) | stat: -rw-r--r-- 1,625 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//******************************************************************************
//  Copyright (c) 2005-2013 by Jan Van hijfte
//
//  See the included file COPYING.TXT for details about the copyright.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//******************************************************************************


#include "qslider_c.h"

QSliderH QSlider_Create(QWidgetH parent)
{
	return (QSliderH) new QSlider((QWidget*)parent);
}

void QSlider_Destroy(QSliderH handle)
{
	delete (QSlider *)handle;
}

QSliderH QSlider_Create2(Qt::Orientation orientation, QWidgetH parent)
{
	return (QSliderH) new QSlider(orientation, (QWidget*)parent);
}

void QSlider_sizeHint(QSliderH handle, PSize retval)
{
	*(QSize *)retval = ((QSlider *)handle)->sizeHint();
}

void QSlider_minimumSizeHint(QSliderH handle, PSize retval)
{
	*(QSize *)retval = ((QSlider *)handle)->minimumSizeHint();
}

void QSlider_setTickPosition(QSliderH handle, QSlider::TickPosition position)
{
	((QSlider *)handle)->setTickPosition(position);
}

QSlider::TickPosition QSlider_tickPosition(QSliderH handle)
{
	return (QSlider::TickPosition) ((QSlider *)handle)->tickPosition();
}

void QSlider_setTickInterval(QSliderH handle, int ti)
{
	((QSlider *)handle)->setTickInterval(ti);
}

int QSlider_tickInterval(QSliderH handle)
{
	return (int) ((QSlider *)handle)->tickInterval();
}

bool QSlider_event(QSliderH handle, QEventH event)
{
	return (bool) ((QSlider *)handle)->event((QEvent*)event);
}