Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# xplm-sys changelog

## 0.5.2 - yyyy-mm-dd

* Updated X-Plane SDK to version 4.2.0

## 0.5.1 - 2024-11-13

* Updated X-Plane SDK to version 4.1.1
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "xplm-sys"
version = "0.5.1"
version = "0.5.2"
authors = ["Sam Crow <samcrow@uw.edu>"]
description = "Low-level bindings for the X-Plane plugin SDK"
repository = "https://github.com/samcrow/xplm-sys"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This library provides Rust bindings to the X-Plane plugin SDK.

## SDK versions ##

This crate supports SDK version 4.0.1, which is supported on X-Plane 12.04 and later. Plugins can be used with earlier X-Plane versions as long as they do not use newer APIs.
This crate supports SDK version 4.3.0, which is supported on X-Plane 12.4.0 and later. Plugins can be used with earlier X-Plane versions as long as they do not use newer APIs.

Some features in earlier versions of the SDK have been removed. This library currently does not provide a way to access them.

Expand Down
36 changes: 1 addition & 35 deletions SDK/CHeaders/Widgets/XPStandardWidgets.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define _XPStandardWidgets_h_

/*
* Copyright 2005-2022 Laminar Research, Sandy Barbour and Ben Supnik All
* Copyright 2005-2025 Laminar Research, Sandy Barbour and Ben Supnik All
* rights reserved. See license.txt for usage. X-Plane SDK Version: 4.0.0
*
*/
Expand Down Expand Up @@ -44,9 +44,7 @@ extern "C" {
*
*/


#define xpWidgetClass_MainWindow 1

/*
* Main Window Type Values
*
Expand All @@ -62,7 +60,6 @@ enum {


};

/*
* Main Window Properties
*
Expand All @@ -78,7 +75,6 @@ enum {


};

/*
* MainWindow Messages
*
Expand All @@ -89,7 +85,6 @@ enum {


};

/***************************************************************************
* SUB WINDOW
***************************************************************************/
Expand All @@ -100,9 +95,7 @@ enum {
*
*/


#define xpWidgetClass_SubWindow 2

/*
* SubWindow Type Values
*
Expand All @@ -121,7 +114,6 @@ enum {


};

/*
* SubWindow Properties
*
Expand All @@ -133,7 +125,6 @@ enum {


};

/***************************************************************************
* BUTTON
***************************************************************************/
Expand All @@ -157,9 +148,7 @@ enum {
*
*/


#define xpWidgetClass_Button 3

/*
* Button Types
*
Expand Down Expand Up @@ -187,7 +176,6 @@ enum {


};

/*
* Button Behavior Values
*
Expand All @@ -212,7 +200,6 @@ enum {


};

/*
* Button Properties
*
Expand All @@ -232,7 +219,6 @@ enum {


};

/*
* Button Messages
*
Expand All @@ -258,7 +244,6 @@ enum {


};

/***************************************************************************
* TEXT FIELD
***************************************************************************/
Expand All @@ -281,9 +266,7 @@ enum {
*
*/


#define xpWidgetClass_TextField 4

/*
* Text Field Type Values
*
Expand All @@ -304,7 +287,6 @@ enum {


};

/*
* Text Field Properties
*
Expand Down Expand Up @@ -345,7 +327,6 @@ enum {


};

/*
* Text Field Messages
*
Expand All @@ -357,7 +338,6 @@ enum {


};

/***************************************************************************
* SCROLL BAR
***************************************************************************/
Expand All @@ -368,9 +348,7 @@ enum {
*
*/


#define xpWidgetClass_ScrollBar 5

/*
* Scroll Bar Type Values
*
Expand All @@ -386,7 +364,6 @@ enum {


};

/*
* Scroll Bar Properties
*
Expand All @@ -413,7 +390,6 @@ enum {


};

/*
* Scroll Bar Messages
*
Expand All @@ -425,7 +401,6 @@ enum {


};

/***************************************************************************
* CAPTION
***************************************************************************/
Expand All @@ -436,9 +411,7 @@ enum {
*
*/


#define xpWidgetClass_Caption 6

/*
* Caption Properties
*
Expand All @@ -450,7 +423,6 @@ enum {


};

/***************************************************************************
* GENERAL GRAPHICS
***************************************************************************/
Expand All @@ -460,9 +432,7 @@ enum {
*
*/


#define xpWidgetClass_GeneralGraphics 7

/*
* General Graphics Types Values
*
Expand Down Expand Up @@ -510,7 +480,6 @@ enum {


};

/*
* General Graphics Properties
*
Expand All @@ -521,7 +490,6 @@ enum {


};

/***************************************************************************
* PROGRESS INDICATOR
***************************************************************************/
Expand All @@ -531,7 +499,6 @@ enum {
*/

#define xpWidgetClass_Progress 8

/*
* Progress Indicator Properties
*
Expand All @@ -548,7 +515,6 @@ enum {


};

#ifdef __cplusplus
}
#endif
Expand Down
13 changes: 2 additions & 11 deletions SDK/CHeaders/Widgets/XPUIGraphics.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define _XPUIGraphics_h_

/*
* Copyright 2005-2022 Laminar Research, Sandy Barbour and Ben Supnik All
* Copyright 2005-2025 Laminar Research, Sandy Barbour and Ben Supnik All
* rights reserved. See license.txt for usage. X-Plane SDK Version: 4.0.0
*
*/
Expand All @@ -12,6 +12,7 @@
***************************************************************************/

#include "XPWidgetDefs.h"
#include "XPLMGraphics.h"

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -61,7 +62,6 @@ enum {

};
typedef int XPWindowStyle;

/*
* XPDrawWindow
*
Expand All @@ -77,7 +77,6 @@ WIDGET_API void XPDrawWindow(
int inX2,
int inY2,
XPWindowStyle inStyle);

/*
* XPGetWindowDefaultDimensions
*
Expand All @@ -89,7 +88,6 @@ WIDGET_API void XPGetWindowDefaultDimensions(
XPWindowStyle inStyle,
int * outWidth, /* Can be NULL */
int * outHeight); /* Can be NULL */

/*
* XPElementStyle
*
Expand Down Expand Up @@ -216,7 +214,6 @@ enum {

};
typedef int XPElementStyle;

/*
* XPDrawElement
*
Expand All @@ -234,7 +231,6 @@ WIDGET_API void XPDrawElement(
int inY2,
XPElementStyle inStyle,
int inLit);

/*
* XPGetElementDefaultDimensions
*
Expand All @@ -248,7 +244,6 @@ WIDGET_API void XPGetElementDefaultDimensions(
int * outWidth, /* Can be NULL */
int * outHeight, /* Can be NULL */
int * outCanBeLit); /* Can be NULL */

/*
* XPTrackStyle
*
Expand Down Expand Up @@ -278,7 +273,6 @@ enum {

};
typedef int XPTrackStyle;

/*
* XPDrawTrack
*
Expand All @@ -299,7 +293,6 @@ WIDGET_API void XPDrawTrack(
int inValue,
XPTrackStyle inTrackStyle,
int inLit);

/*
* XPGetTrackDefaultDimensions
*
Expand All @@ -312,7 +305,6 @@ WIDGET_API void XPGetTrackDefaultDimensions(
XPTrackStyle inStyle,
int * outWidth,
int * outCanBeLit);

/*
* XPGetTrackMetrics
*
Expand Down Expand Up @@ -345,7 +337,6 @@ WIDGET_API void XPGetTrackMetrics(
int * outThumbSize,
int * outUpPageSize,
int * outUpBtnSize);

#ifdef __cplusplus
}
#endif
Expand Down
Loading