Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in / Register
Toggle navigation
G
gtk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dorota Czaplejewicz
gtk
Commits
ddd24761
Commit
ddd24761
authored
Apr 03, 2012
by
Alexander Larsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add _gdk_device_get_axis_info
This is needed for the win32 master/slave handling code.
parent
2697ac57
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
gdkdevice.c
gdk/gdkdevice.c
+23
-0
gdkdeviceprivate.h
gdk/gdkdeviceprivate.h
+7
-0
No files found.
gdk/gdkdevice.c
View file @
ddd24761
...
...
@@ -1369,6 +1369,29 @@ _gdk_device_add_axis (GdkDevice *device,
return
pos
;
}
void
_gdk_device_get_axis_info
(
GdkDevice
*
device
,
guint
index_
,
GdkAtom
*
label_atom
,
GdkAxisUse
*
use
,
gdouble
*
min_value
,
gdouble
*
max_value
,
gdouble
*
resolution
)
{
GdkAxisInfo
*
info
;
g_return_if_fail
(
GDK_IS_DEVICE
(
device
));
g_return_if_fail
(
index_
<
device
->
axes
->
len
);
info
=
&
g_array_index
(
device
->
axes
,
GdkAxisInfo
,
index_
);
*
label_atom
=
info
->
label
;
*
use
=
info
->
use
;
*
min_value
=
info
->
min_value
;
*
max_value
=
info
->
max_value
;
*
resolution
=
info
->
resolution
;
}
void
_gdk_device_set_keys
(
GdkDevice
*
device
,
guint
num_keys
)
...
...
gdk/gdkdeviceprivate.h
View file @
ddd24761
...
...
@@ -121,6 +121,13 @@ guint _gdk_device_add_axis (GdkDevice *device,
gdouble
min_value
,
gdouble
max_value
,
gdouble
resolution
);
void
_gdk_device_get_axis_info
(
GdkDevice
*
device
,
guint
index
,
GdkAtom
*
label_atom
,
GdkAxisUse
*
use
,
gdouble
*
min_value
,
gdouble
*
max_value
,
gdouble
*
resolution
);
void
_gdk_device_set_keys
(
GdkDevice
*
device
,
guint
num_keys
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment