[−][src]Module fltk::draw
Re-exports
pub use crate::prelude::*; |
Structs
Offscreen | Opaque type around Fl_Offscreen |
Region | Opaque type around Fl_Region |
Functions
arc2 | Draws an arc |
begin_complex_polygon | Starts drawing a complex filled polygon |
begin_line | Starts drawing a list of lines |
begin_loop | Starts drawing a closed sequence of lines |
begin_offscreen | Begins the offscreen |
begin_points | Starts drawing a list of points. Points are added to the list with fl_vertex() |
begin_polygon | Starts drawing a convex filled polygon |
can_do_alpha_blending | Checks whether platform supports true alpha blending for RGBA images |
capture_window | Captures part of the window and returns raw data |
clip_region | Gets the clip region |
copy_offscreen | Copies the offscreen |
create_offscreen | Creates an offscreen |
curve | Adds a series of points on a Bezier curve to the path |
delete_offscreen | Deletes the offscreen |
descent | Returns the recommended distance above the bottom of a height() tall box to draw the text at so it looks centered vertically in that box |
draw | Draws a string starting at the given x, y location |
draw2 | Draws a string starting at the given x, y location, rotated to an angle |
draw_arc | Draws an arc |
draw_box | Draws a box given the box type, size, position and color |
draw_circle | Draws a circle |
draw_focus_rect | Draws a focus rectangle |
draw_line | Draws a line |
draw_loop | Draws a loop |
draw_pie | Draws a filled pie |
draw_point | Draws a point |
draw_rect | Draws a rectangle |
draw_rect_fill | Draws a filled rectangle |
draw_rect_with_color | Draws a rectangle with border color |
end_complex_polygon | Ends complex filled polygon, and draws |
end_line | Ends list of lines, and draws |
end_loop | Ends closed sequence of lines, and draws |
end_offscreen | Ends the offscreen |
end_points | Ends list of points, and draws |
end_polygon | Ends closed sequence of lines, and draws |
font | Gets the current font, which is used in various drawing routines |
frame | Draws a frame with text |
frame2 | Draws a frame with text. Differs from frame() by the order of the line segments |
gap | Call gap() to separate loops of the path |
get_color | Gets the last used color |
height | Returns the recommended minimum line spacing for the current font |
latin1_to_local | Converts text from Windows/X11 latin1 character set to local encoding |
line2 | Draws a line from (x,y) to (x1,y1) and another from (x1,y1) to (x2,y2) |
local_to_latin1 | Converts text from local encoding to Windowx/X11 latin1 character set |
loop2 | Outlines a 4-sided polygon with lines |
mult_matrix | Concatenates another transformation onto the current one |
not_clipped | Returns whether the rectangle intersect with the current clip region |
overlay_clear | Erase a selection rectangle without drawing a new one |
overlay_rect | Draws a selection rectangle, erasing a previous one by XOR'ing it first. |
polygon | Fills a 3-sided polygon. The polygon must be convex |
polygon2 | Fills a 4-sided polygon. The polygon must be convex |
pop_clip | Puts the drawing back |
pop_matrix | Pops the current transformation matrix from the stack |
push_clip | Limits drawing to a region |
push_matrix | Saves the current transformation matrix on the stack |
push_no_clip | Pushes an empty clip region onto the stack so nothing will be clipped |
rectf | Draws a filled rectangle |
rectf_with_rgb | Draws a filled rectangle with specified RGB color |
rescale_offscreen | Rescales the offscreen |
reset_spot | Resets the spot within the window |
restore_clip | Restores the clip region |
rotate | Concatenates rotation transformation onto the current one |
rtl_draw | Draws a UTF-8 string right to left starting at the given x, y location |
scale | Concatenates scaling transformation onto the current one |
scale2 | Concatenates scaling transformation onto the current one |
set_clip_region | Sets the clip region |
set_color_rgb | Sets the color using rgb values |
set_cursor | Sets the cursor style |
set_cursor2 | Sets the cursor style |
set_draw_color | Sets the drawing color |
set_font | Sets the current font, which is then used in various drawing routines |
set_height | Sets the line spacing for the current font |
set_line_style | Sets the line style |
set_spot | Sets spot within the window |
set_status | Sets the status |
shortcut_label | Get a human-readable string from a shortcut value |
show_colormap | Shows a color map |
size | Gets the current font size, which is used in various drawing routines |
transform_dx | Transforms distance using current transformation matrix |
transform_dy | Transforms distance using current transformation matrix |
transform_x | Transforms coordinate using the current transformation matrix |
transform_y | Transforms coordinate using the current transformation matrix |
transformed_vertex | Adds coordinate pair to the vertex list without further transformations |
translate | Concatenates translation transformation onto the current one |
vertex | Adds a single vertex to the current path |
width | Returns the typographical width of a string |
width2 | Returns the typographical width of a sequence of n characters |
width3 | Returns the typographical width of a single character |
write_to_bmp_file | Transforms raw data to bmp file |
write_to_jpg_file | Transforms raw data to jpg file |
write_to_png_file | Transforms raw data to png file |
xyline | Draws a horizontal line from (x,y) to (x1,y) |
xyline2 | Draws a horizontal line from (x,y) to (x1,y), then vertical from (x1,y) to (x1,y2) |
xyline3 | Draws a horizontal line from (x,y) to (x1,y), then a vertical from (x1,y) to (x1,y2) and then another horizontal from (x1,y2) to (x3,y2) |
yxline | Draws a vertical line from (x,y) to (x,y1) |
yxline2 | Draws a vertical line from (x,y) to (x,y1), then a horizontal from (x,y1) to (x2,y1) |
yxline3 | Draws a vertical line from (x,y) to (x,y1) then a horizontal from (x,y1) to (x2,y1), then another vertical from (x2,y1) to (x2,y3) |