ev3devkit Reference Manual
Packages
ev3devkit
EV3devKit
EV3devKit.ConsoleApp
EV3devKit.Devices
EV3devKit.UI
EV3devKitDesktop
EV3devKitDesktop.GtkApp
GLib
GRX
Linux
Linux.Input
ev3devkit
Description:
Content:
Namespaces:
EV3devKit
-
Toolkit for developing applications using ev3dev.
ConsoleApp
-
Does all of the low level setting up of a virtual console so you don't have to.
Error domains:
ConsoleAppError
-
ConsoleApp errors.
Methods:
public
void
init
(
int
? vtfd =
null
)
throws
ConsoleAppError
Initialize a console application.
public
void
run
()
Starts the main loop for the application.
public
void
quit
()
Instructs the main loop to quit.
public
void
ignore_next_key_press
()
Tell ConsoleApp to ignore the next key read by ncurses.
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.
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.
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.
Notebook
-
A tabbed widget for displaying multiple "pages".
NotebookTab
-
Container for a single tab of a
Notebook
.
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.
StatusBar
-
A status bar that displays at the top of a
Screen
.
StatusBarItem
-
Represents an item that is displayed in a
StatusBar
.
TabButton
-
Button used for the tab of a
NotebookTab
.
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.
EV3devKitDesktop
-
A framework for developing and testing
EV3devKit.UI
components in a desktop environment.
Classes:
GtkFramebuffer
-
GtkScreen
-
A Screen that can be embedded in a Gtk application.
GtkApp
-
Does all of the low level setting up of a desktop application so you don't have to.
Methods:
public
void
init
(
string
[] args)
Initialize a GTK application.
public
void
run
()
Start the main loop.
public
void
quit
()
Terminate the main loop.
Fields:
public
Window
main_window
The GTK window created by
init
.
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
.
GRX
-
Old school (circa 1992-2000) 2-D graphics library.
Classes:
VideoDriver
-
VideoMode
-
VideoModeExt
-
Video driver mode descriptor extension structure.
FrameDriver
-
The frame driver descriptor structure.
DriverInfo
-
Frame
-
Context
-
FramedBoxColors
-
ColorTable
-
Color table (for primitives using several colors).
FontChrInfo
-
Font
-
TextOption
-
TextRegion
-
LineOption
-
Custom line option structure.
Bitmap
-
A mode independent way to specify a fill pattern of two colors.
Pixmap
-
A fill pattern stored in a layout identical to the video RAM for filling using 'bitblt'-s.
Pattern
-
Fill pattern union -- can either be a bitmap or a pixmap
LinePattern
-
Draw pattern for line drawings.
Image
-
Cursor
-
Structs:
Color
-
ContextInfo
-
ColorInfo
-
ColorInfoTable
-
CharAttr
-
TextColor
-
Point
-
Enums:
Result
-
GraphicsMode
-
Available video modes (for
set_mode
)
FrameMode
-
Available frame modes (video memory layouts)
VideoAdapter
-
Supported video adapter types.
ColorMode
-
ArcStyle
-
TextDirection
-
TextHorizAlign
-
TextVertAlign
-
ChrType
-
FontConversionFlag
-
ImageInverseFlag
-
Flags for
Image.inverse
.
PNMFormat
-
The PNM formats, grx support load/save of
binaries formats (4, 5, 6) only
Constants:
public
const
int
MAX_POLYGON_POINTS
public
const
int
MAX_ELLIPSE_POINTS
Delegates:
public
delegate
int
VideoDriverDetect
()
public
delegate
int
VideoDriverInit
(
string
options)
public
delegate
void
VideoDriverReset
()
public
delegate
VideoMode
VideoDriverSelectMode
(
VideoDriver
driver,
int
width,
int
height,
int
bpp,
int
text,
ref
uint
ep)
public
delegate
int
VideoModeSetup
(
VideoMode
mode,
int
no_clear)
public
delegate
int
VideoModeSetSize
(
VideoMode
mode,
int
width,
int
height,
out
VideoMode
result)
public
delegate
int
VideoModeScroll
(
VideoMode
mode,
int
x,
int
y,
out
int
[] result)
public
delegate
void
VideoModeSetBank
(
int
bank)
public
delegate
void
VideoModeSetRWBanks
(
int
read_bank,
int
write_bank)
public
delegate
void
VideoModeLoadColor
(
int
color_index,
int
red,
int
green,
int
blue)
public
delegate
int
FrameDriverInit
(
VideoMode
mode)
public
delegate
Color
FrameDriverReadPixel
(
Frame
frame,
int
x,
int
y)
public
delegate
void
FrameDriverDrawPixel
(
int
x,
int
y,
Color
c)
public
delegate
void
FrameDriverDrawLine
(
int
x,
int
y,
int
dx,
int
dy,
Color
c)
public
delegate
void
FrameDriverDrawHLine
(
int
x,
int
y,
int
w,
Color
c)
public
delegate
void
FrameDriverDrawVLine
(
int
x,
int
y,
int
h,
Color
c)
public
delegate
void
FrameDriverDrawBlock
(
int
x,
int
y,
int
w,
int
h,
Color
c)
public
delegate
void
FrameDriverDrawBitmap
(
int
x,
int
y,
int
w,
int
h,
char
* bmp,
int
pitch,
int
start,
Color
fg,
Color
bg)
public
delegate
void
FrameDriverDrawPattern
(
int
x,
int
y,
int
w,
char
patt,
Color
fg,
Color
bg)
public
delegate
void
FrameDriverBitBlt
(
Frame
dest,
int
dx,
int
dy,
Frame
src,
int
x,
int
y,
int
w,
int
h,
ColorMode
op)
public
delegate
void
FrameDriverBltV2R
(
Frame
dest,
int
dx,
int
dy,
Frame
src,
int
x,
int
y,
int
w,
int
h,
ColorMode
op)
public
delegate
void
FrameDriverBltR2V
(
Frame
dest,
int
dx,
int
dy,
Frame
src,
int
x,
int
y,
int
w,
int
h,
ColorMode
op)
public
delegate
Color
*
FrameDriverGetIndexedScanLine
(
Frame
frame,
int
x,
int
y,
int
w,
out
int
? index)
public
delegate
void
FrameDriverPutScanLine
(
int
x,
int
y,
int
w,
ref
Color
scl,
ColorMode
op)
public
delegate
void
DriverInfoModeSetHook
()
public
delegate
void
DriverInfoSetBank
(
int
bank)
public
delegate
void
DriverInfoSetRWBanks
(
int
read_bank,
int
write_bank)
Methods:
public
bool
set_driver
(
string
driver_spec)
public
bool
set_mode
(
GraphicsMode
which, ...)
public
bool
set_viewport
(
int
xpos,
int
ypos)
public
void
set_mode_hook
(
DriverInfoModeSetHook
hook_func)
public
void
set_mode_restore
(
int
restore_flag)
public
void
set_error_handling
(
int
exit_if_error)
public
void
set_ega_vga_mono_drawn_plane
(
int
plane)
public
void
set_ega_vga_mono_shown_plane
(
int
plane)
public
uint
get_library_version
()
public
uint
get_library_system
()
public
GraphicsMode
current_mode
()
public
VideoAdapter
adapter_type
()
public
FrameMode
current_frame_mode
()
public
FrameMode
screen_frame_mode
()
public
FrameMode
core_frame_mode
()
public
unowned
VideoDriver
current_video_driver
()
public
unowned
VideoMode
current_video_mode
()
public
unowned
VideoMode
virtual_video_mode
()
public
unowned
FrameDriver
current_frame_driver
()
public
unowned
FrameDriver
screen_frame_driver
()
public
unowned
VideoMode
first_video_mode
(
FrameMode
fmode)
public
unowned
VideoMode
next_video_mode
(
VideoMode
prev)
public
int
screen_x
()
public
int
screen_y
()
public
int
virtual_x
()
public
int
virtual_y
()
public
int
viewport_x
()
public
int
viewport_y
()
public
int
screen_is_virtual
()
public
int
num_planes
()
public
int
line_offset
(
int
width)
public
long
plane_size
(
int
width,
int
height)
public
long
context_size
(
int
width,
int
height)
public
void
set_clip_box
(
int
x1,
int
y1,
int
x2,
int
y2)
public
void
get_clip_box
(
out
int
x1,
out
int
y1,
out
int
x2,
out
int
y2)
public
void
reset_clip_box
()
public
int
max_x
()
public
int
max_y
()
public
int
size_x
()
public
int
size_y
()
public
int
low_x
()
public
int
low_y
()
public
int
high_x
()
public
int
high_y
()
public
void
clear_screen
(
Color
bg)
public
void
clear_context
(
Color
bg)
public
void
clear_clip_box
(
Color
bg)
public
void
plot
(
int
x,
int
y,
Color
c)
public
void
line
(
int
x1,
int
y1,
int
x2,
int
y2,
Color
c)
public
void
horiz_line
(
int
x1,
int
x2,
int
y,
Color
c)
public
void
vert_line
(
int
x,
int
y1,
int
y2,
Color
c)
public
void
box
(
int
x1,
int
y1,
int
x2,
int
y2,
Color
c)
public
void
filled_box
(
int
x1,
int
y1,
int
x2,
int
y2,
Color
c)
public
void
framed_box
(
int
x1,
int
y1,
int
x2,
int
y2,
int
width,
FramedBoxColors
c)
public
void
rounded_box
(
int
x1,
int
y1,
int
x2,
int
y2,
int
radius,
Color
c)
public
void
filled_rounded_box
(
int
x1,
int
y1,
int
x2,
int
y2,
int
radius,
Color
c)
public
int
generate_ellipse
(
int
xc,
int
yc,
int
xa,
int
ya,
Point
[] points)
public
int
generate_ellipse_arc
(
int
xc,
int
yc,
int
xa,
int
ya,
int
start,
int
end,
Point
[] points)
public
void
last_arc_coords
(
out
int
xs,
out
int
ys,
out
int
xe,
out
int
ye,
out
int
xc,
out
int
yc)
public
void
circle
(
int
xc,
int
yc,
int
r,
Color
c)
public
void
ellipse
(
int
xc,
int
yc,
int
xa,
int
ya,
Color
c)
public
void
circle_arc
(
int
xc,
int
yc,
int
r,
int
start,
int
end,
ArcStyle
style,
Color
c)
public
void
ellipse_arc
(
int
xc,
int
yc,
int
xa,
int
ya,
int
start,
int
end,
ArcStyle
style,
Color
c)
public
void
filled_circle
(
int
xc,
int
yc,
int
r,
Color
c)
public
void
filled_ellipse
(
int
xc,
int
yc,
int
xa,
int
ya,
Color
c)
public
void
filled_circle_arc
(
int
xc,
int
yc,
int
r,
int
start,
int
end,
ArcStyle
style,
Color
c)
public
void
filled_ellipse_rc
(
int
xc,
int
yc,
int
xa,
int
ya,
int
start,
int
end,
ArcStyle
style,
Color
c)
public
void
poly_line
(
Point
[] points,
Color
c)
public
void
polygon
(
Point
[] points,
Color
c)
public
void
filled_convex_polygon
(
Point
[] points,
Color
c)
public
void
filled_polygon
(
Point
[] points,
Color
c)
public
void
bit_blt
(
Context
dest,
int
x,
int
y,
Context
src,
int
x1,
int
y1,
int
x2,
int
y2,
ColorMode
op =
WRITE
)
public
void
bit_blt_1bpp
(
Context
dest,
int
dx,
int
dy,
Context
src,
int
x1,
int
y1,
int
x2,
int
y2,
Color
fg,
Color
bg)
public
void
flood_fill
(
int
x,
int
y,
Color
border,
Color
c)
public
void
flood_spill
(
int
x1,
int
y1,
int
x2,
int
y2,
Color
old_c,
Color
new_c)
public
void
flood_spill_2
(
int
x1,
int
y1,
int
x2,
int
y2,
Color
old_c1,
Color
new_c1,
Color
old_c2,
Color
new_c2)
public
Color
pixel
(
int
x,
int
y)
public
Color
*
get_scan_line
(
int
x1,
int
x2,
int
yy)
public
void
put_scan_line
(
int
x1,
int
x2,
int
yy,
Color
[] c,
ColorMode
op =
WRITE
)
public
void
plot_no_clip
(
int
x,
int
y,
Color
c)
public
void
line_no_clip
(
int
x1,
int
y1,
int
x2,
int
y2,
Color
c)
public
void
horiz_line_no_clip
(
int
x1,
int
x2,
int
y,
Color
c)
public
void
vert_line_no_clip
(
int
x,
int
y1,
int
y2,
Color
c)
public
void
box_no_clip
(
int
x1,
int
y1,
int
x2,
int
y2,
Color
c)
public
void
filled_box_no_clip
(
int
x1,
int
y1,
int
x2,
int
y2,
Color
c)
public
void
framed_box_no_clip
(
int
x1,
int
y1,
int
x2,
int
y2,
int
wdt,
FramedBoxColors
c)
public
void
bit_blt_no_clip
(
Context
dest,
int
x,
int
y,
Context
src,
int
x1,
int
y1,
int
x2,
int
y2,
ColorMode
op =
WRITE
)
public
Color
pixel_no_clip
(
int
x,
int
y)
public
void
draw_char
(
int
chr,
int
x,
int
y,
TextOption
opt)
public
void
draw_string
(
void
* text,
int
length,
int
x,
int
y,
TextOption
opt)
public
void
draw_vala_string
(
string
text,
int
x,
int
y,
TextOption
opt)
public
void
draw_text_xy
(
int
x,
int
y,
string
text,
Color
fg,
Color
bg)
public
void
custom_line
(
int
x1,
int
y1,
int
x2,
int
y2,
LineOption
o)
public
void
custom_box
(
int
x1,
int
y1,
int
x2,
int
y2,
LineOption
o)
public
void
custom_circle
(
int
xc,
int
yc,
int
r,
LineOption
o)
public
void
custom_ellipse
(
int
xc,
int
yc,
int
xa,
int
ya,
LineOption
o)
public
void
custom_circle_arc
(
int
xc,
int
yc,
int
r,
int
start,
int
end,
ArcStyle
style,
LineOption
o)
public
void
custom_ellipse_arc
(
int
xc,
int
yc,
int
xa,
int
ya,
int
start,
int
end,
ArcStyle
style,
LineOption
o)
public
void
custom_poly_line
(
Point
[] points,
LineOption
o)
public
void
custom_polygon
(
Point
[] points,
LineOption
o)
public
void
patterned_line
(
int
x1,
int
y1,
int
x2,
int
y2,
LinePattern
line_pattern)
public
void
patterned_box
(
int
x1,
int
y1,
int
x2,
int
y2,
LinePattern
line_pattern)
public
void
patterned_circle
(
int
xc,
int
yc,
int
r,
LinePattern
line_pattern)
public
void
patterned_ellipse
(
int
xc,
int
yc,
int
xa,
int
ya,
LinePattern
line_pattern)
public
void
patterned_circle_arc
(
int
xc,
int
yc,
int
r,
int
start,
int
end,
ArcStyle
style,
LinePattern
line_pattern)
public
void
patterned_ellipse_arc
(
int
xc,
int
yc,
int
xa,
int
ya,
int
start,
int
end,
ArcStyle
style,
LinePattern
line_pattern)
public
void
patterned_poly_line
(
Point
[] points,
LinePattern
line_pattern)
public
void
patterned_polygon
(
Point
[] points,
LinePattern
line_pattern)
public
void
pattern_filled_plot
(
int
x,
int
y,
Pattern
pattern)
public
void
pattern_filled_line
(
int
x1,
int
y1,
int
x2,
int
y2,
Pattern
pattern)
public
void
pattern_filled_box
(
int
x1,
int
y1,
int
x2,
int
y2,
Pattern
pattern)
public
void
pattern_filled_circle
(
int
xc,
int
yc,
int
r,
Pattern
pattern)
public
void
pattern_filled_ellipse
(
int
xc,
int
yc,
int
xa,
int
ya,
Pattern
pattern)
public
void
pattern_filled_circle_arc
(
int
xc,
int
yc,
int
r,
int
start,
int
end,
int
style,
Pattern
pattern)
public
void
pattern_filled_ellipse_arc
(
int
xc,
int
yc,
int
xa,
int
ya,
int
start,
int
end,
int
style,
Pattern
pattern)
public
void
pattern_filled_convex_polygon
(
Point
[] points,
Pattern
pattern)
public
void
pattern_filled_polygon
(
Point
[] points,
Pattern
pattern)
public
void
pattern_flood_fill
(
int
x,
int
y,
Color
border,
Pattern
pattern)
public
void
pattern_draw_char
(
int
chr,
int
x,
int
y,
TextOption
opt,
Pattern
pattern)
public
void
pattern_draw_string
(
void
* text,
int
length,
int
x,
int
y,
TextOption
opt,
Pattern
pattern)
public
void
pattern_draw_vala_string
(
string
text,
int
x,
int
y,
TextOption
opt,
Pattern
pattern)
public
void
pattern_draw_string_ext
(
void
* text,
int
length,
int
x,
int
y,
TextOption
opt,
Pattern
pattern)
public
void
pattern_draw_vala_string_ext
(
string
text,
int
x,
int
y,
TextOption
opt,
Pattern
pattern)
public
void
set_user_window
(
int
x1,
int
y1,
int
x2,
int
y2)
public
void
get_user_window
(
out
int
x1,
out
int
y1,
out
int
x2,
out
int
y2)
public
void
get_screen_coord
(
out
int
x,
out
int
y)
public
void
get_user_coord
(
out
int
x,
out
int
y)
public
void
user_plot
(
int
x,
int
y,
Color
c)
public
void
user_line
(
int
x1,
int
y1,
int
x2,
int
y2,
Color
c)
public
void
user_horiz_line
(
int
x1,
int
x2,
int
y,
Color
c)
public
void
user_vert_line
(
int
x,
int
y1,
int
y2,
Color
c)
public
void
user_box
(
int
x1,
int
y1,
int
x2,
int
y2,
Color
c)
public
void
user_filled_box
(
int
x1,
int
y1,
int
x2,
int
y2,
Color
c)
public
void
user_framed_box
(
int
x1,
int
y1,
int
x2,
int
y2,
int
wdt,
FramedBoxColors
c)
public
void
user_circle
(
int
xc,
int
yc,
int
r,
Color
c)
public
void
user_ellipse
(
int
xc,
int
yc,
int
xa,
int
ya,
Color
c)
public
void
user_circle_arc
(
int
xc,
int
yc,
int
r,
int
start,
int
end,
ArcStyle
style,
Color
c)
public
void
user_ellipse_arc
(
int
xc,
int
yc,
int
xa,
int
ya,
int
start,
int
end,
ArcStyle
style,
Color
c)
public
void
user_filled_circle
(
int
xc,
int
yc,
int
r,
Color
c)
public
void
user_filled_ellipse
(
int
xc,
int
yc,
int
xa,
int
ya,
Color
c)
public
void
user_filled_circle_arc
(
int
xc,
int
yc,
int
r,
int
start,
int
end,
ArcStyle
style,
Color
c)
public
void
user_filled_ellipse_arc
(
int
xc,
int
yc,
int
xa,
int
ya,
int
start,
int
end,
ArcStyle
style,
Color
c)
public
void
useR_poly_line
(
Point
[] points,
Color
c)
public
void
user_polygon
(
Point
[] points,
Color
c)
public
void
user_filled_convex_polygon
(
Point
[] points,
Color
c)
public
void
user_filled_polygon
(
Point
[] points,
Color
c)
public
void
user_flood_fill
(
int
x,
int
y,
Color
border,
Color
c)
public
Color
user_pixel
(
int
x,
int
y)
public
void
user_custom_line
(
int
x1,
int
y1,
int
x2,
int
y2,
LineOption
option)
public
void
user_custom_box
(
int
x1,
int
y1,
int
x2,
int
y2,
LineOption
option)
public
void
user_custom_circle
(
int
xc,
int
yc,
int
r,
LineOption
option)
public
void
user_custom_ellipse
(
int
xc,
int
yc,
int
xa,
int
ya,
LineOption
option)
public
void
user_custom_circle_arc
(
int
xc,
int
yc,
int
r,
int
start,
int
end,
ArcStyle
style,
LineOption
option)
public
void
user_custom_ellipse_arc
(
int
xc,
int
yc,
int
xa,
int
ya,
int
start,
int
end,
ArcStyle
style,
LineOption
option)
public
void
user_custom_poly_line
(
Point
[] points,
LineOption
option)
public
void
user_custom_polygon
(
Point
[] points,
LineOption
option)
public
void
user_patterned_line
(
int
x1,
int
y1,
int
x2,
int
y2,
LinePattern
pattern)
public
void
user_patterned_box
(
int
x1,
int
y1,
int
x2,
int
y2,
LinePattern
pattern)
public
void
user_patterned_circle
(
int
xc,
int
yc,
int
r,
LinePattern
pattern)
public
void
user_patterned_ellipse
(
int
xc,
int
yc,
int
xa,
int
ya,
LinePattern
pattern)
public
void
user_patterned_circle_arc
(
int
xc,
int
yc,
int
r,
int
start,
int
end,
ArcStyle
style,
LinePattern
pattern)
public
void
user_patterned_ellipse_arc
(
int
xc,
int
yc,
int
xa,
int
ya,
int
start,
int
end,
ArcStyle
style,
LinePattern
pattern)
public
void
user_patterned_poly_line
(
Point
[] points,
LinePattern
pattern)
public
void
user_patterned_polygon
(
Point
[] points,
LinePattern
pattern)
public
void
user_pattern_filled_plot
(
int
x,
int
y,
Pattern
pattern)
public
void
user_pattern_filled_line
(
int
x1,
int
y1,
int
x2,
int
y2,
Pattern
pattern)
public
void
user_pattern_filled_box
(
int
x1,
int
y1,
int
x2,
int
y2,
Pattern
pattern)
public
void
user_pattern_filled_circle
(
int
xc,
int
yc,
int
r,
Pattern
pattern)
public
void
user_pattern_filled_ellipse
(
int
xc,
int
yc,
int
xa,
int
ya,
Pattern
pattern)
public
void
user_pattern_filled_circle_arc
(
int
xc,
int
yc,
int
r,
int
start,
int
end,
int
style,
Pattern
pattern)
public
void
user_pattern_filled_ellipse_arc
(
int
xc,
int
yc,
int
xa,
int
ya,
int
start,
int
end,
int
style,
Pattern
pattern)
public
void
user_pattern_filled_convex_polygon
(
Point
[] points,
Pattern
pattern)
public
void
user_pattern_filled_polygon
(
Point
[] points,
Pattern
pattern)
public
void
user_pattern_flood_fill
(
int
x,
int
y,
Color
border,
Pattern
pattern)
public
void
user_draw_char
(
int
chr,
int
x,
int
y,
TextOption
opt)
public
void
user_draw_string
(
char
* text,
int
length,
int
x,
int
y,
TextOption
opt)
public
void
user_draw_vala_string
(
string
text,
int
x,
int
y,
TextOption
opt)
public
void
user_text_xy
(
int
x,
int
y,
string
text,
Color
fg,
Color
bg)
public
Result
query_pnm
(
string
file_name,
out
int
width,
out
int
height,
out
int
maxval)
public
Result
query_pnm_buffer
(
char
* buffer,
out
int
width,
out
int
height,
out
int
maxval)
public
bool
png_support
()
public
Result
query_png
(
string
file_name,
out
int
width,
out
int
height)
public
bool
jpeg_support
()
public
Result
query_jpeg
(
string
file_name,
out
int
width,
out
int
height)
public
void
resize_gray_map
(
uchar
* map,
int
pitch,
int
old_width,
int
old_height,
int
new_width,
int
new_height)
public
int
match_string
(
string
pattern,
string
str)
public
void
set_window_title
(
string
title)
public
void
sleep
(
int
msec)
public
void
flush
()
public
long
msec_time
()
Fields:
public
DriverInfo
driver_info
public
ContextInfo
context_info
public
ColorInfo
color_info
Linux
-
Fixes and extra bindings not included in the upstrem Linux bindings.
Input
-
Constants:
public
const
int
SYN_DROPPED