ev3devkit Reference Manual
Packages
ev3devkit
Ev3devKit
Ev3devKit.Devices
Ev3devKit.Devices.Cpu
Ev3devKit.Ui
Ev3devKit.Ui.Fonts
GLib
Linux
Linux.Input
ev3devkit
Description:
Content:
Namespaces:
Ev3devKit
-
Toolkit for developing applications using ev3dev.
Classes:
ConsoleApp
-
Does all of the low level setting up of a virtual console so you don't have to.
Constants:
public
const
unowned
string
DATA_DIR
The data directory for this library.
Devices
-
Provides programming interface for working with ev3dev (and standard Linux) hardware drivers.
Classes:
DcMotor
-
Represents a simple DC motor.
Device
-
The base class for all types of devices.
DeviceManager
-
Used to get instances of Device objects.
Input
-
Linux input devices. (keyboard, mouse, joystick, etc.)
Led
-
Represents an LED device.
Port
-
Represents a port that sensors and motors are plugged into.
PowerSupply
-
Represents a power supply, like a battery.
Sensor
-
Represents a LEGO MINDSTORMS or LEGO WeDo sensor
ServoMotor
-
Represents a hobby type servo motor.
TachoMotor
-
Represents a motor with tachometer feedback.
Enums:
InputCapability
-
Capabilities of an input device.
SoundCapability
-
Specific capabilities of a sound capable input device.
MotorPolarity
-
The polarity of a motor. In other words, which direction of rotation is positive.
MotorStateFlags
-
Flags indicating motor state.
Error domains:
DeviceError
-
Errors specific to
Device
s.
Cpu
-
Info about the machine we are running on.
Methods:
public
string
get_model
()
Get the model name of the board we are running on.
public
string
get_revision
()
Get the revision of the board we are running on.
public
string
get_serial_number
()
Get the serial number of the board we are running on.
Ui
-
Library for building user interfaces on small screens (like the EV3 LCD).
Classes:
Box
-
Container for laying out widgets horizontally or vertically.
Button
-
Button shaped
Container
to get user input.
CheckboxMenuItem
-
MenuItem
with a checkbox.
CheckButtonGroup
-
Manages groups of
CheckButton
s.
CheckButton
-
A checkable button widget. There are two variations, a checkbox and a radio button.
Container
-
A
Widget
that can contain other Widgets.
Dialog
-
A dialog window for displaying pop-up messages.
Grid
-
A container that lays out it children in a grid.
Icon
-
Widget to display text.
InputDialog
-
Label
-
Widget to display text.
Menu
-
A scrollable menu widget that displays a list of
MenuItem
s.
MenuItem
-
Object used by
Menu
to represent a menu item.
MessageDialog
-
A dialog for displaying a message.
OnScreenKeyboard
-
An on screen keyboard for getting user input.
RadioMenuItem
-
A menu item that includes a radio button.
Screen
-
Represents a screen that UI elements are displayed on.
Scroll
-
A scrollable container for displaying content that is too large to fit on the screen.
Spacer
-
An empty widget that is used to distribute left over space in a container.
Stack
-
A container widget that only displays one child at a time.
StatusBar
-
A status bar that displays at the top of a
Screen
.
StatusBarItem
-
Represents an item that is displayed in a
StatusBar
.
TextEntry
-
A wiget for getting user input.
Widget
-
The base class for all UI components.
Window
-
Top level widget for displaying other widgets on the
Screen
.
Structs:
Rectangle
-
The bounds of a rectangle.
Enums:
BoxDirection
-
Specifies the number of children a container can have.
CheckButtonType
-
The style of a
CheckButton
.
ContainerType
-
Specifies the number of children a container can have.
StockIcon
-
Represents available stock icons.
Keyboard
-
Specifies the type of keyboard.
ScrollDirection
-
Specifies the direction of scrolling.
ScrollbarVisibility
-
Specifies if/when a scrollbar should be displayed.
FocusDirection
-
Specifies the direction to use for focusing the next widget.
WidgetAlign
-
Specifies how a
Widget
should be laid out in a
Container
.
Delegates:
public
delegate
Widget
?
WidgetFunc
(
Widget
widget)
Used by
Widget.do_recursive_parent
and
Widget.do_recursive_children
to traverse the widget tree.
Fonts
-
Namespace for getting common fonts.
Methods:
public
unowned
Font
get_default
()
Gets the default font.
public
unowned
Font
get_small
()
Gets the small font.
public
unowned
Font
get_big
()
Gets the big font.
GLib
-
Fixes and extra bindings not included in the upstrem GLib bindings.
Classes:
FlagsClass2
-
Workaround for buggy
GLib.FlagsClass
.
Structs:
FlagsValue2
-
Workaround for buggy
GLib.FlagsClass
.
Linux
-
Fixes and extra bindings not included in the upstrem Linux bindings.
Input
-
Constants:
public
const
int
SYN_DROPPED