Class Xiron::Osd
In: ext/audioport.c
Parent: Object

Methods

clear   dispose   encoding=   has_freetype?   has_unscaled?   height   hide   image   line   new   palette   palette=   point   rect   set_size   show   stream   text   text_size   width  

Public Class methods

Creates an osd drawable to draw into. If only particular optional parameters should be given, use a hash (e.g. "w" => 640, "h" => 480). By default, the new osd starts at 0,0 and has the size of the video.

Public Instance methods

Erases the drawable.

Frees the osd. Be sure the osd isn’t used when call this and never be used again.

Specifying encoding of texts. nil means current locale encoding (default).

Is true, if the osd object is capable to render freetype2 fonts.

Is true, if the osd can be rendered independent from the video resolution.

The height of the osd.

Removes the osd from video window.

Draws given image at given position. The image is an array of arrays (lines) of palette indices.

Draws a line with specified parameters.

Returns the currently used palette.

Sets the palette of the osd to the given one.

Draws a point at given position.

Draws a rectangular with specified parameters.

Set the osd size to current framesize of stream or given size.

Renders the osd into the video window at given position.

The Stream, this Osd is connected with.

Draws a text with specified parameters. If font and fontsize given, it is saved for future call of Osd#text and Osd#text_size.

Returns the amount of space that would be used, if the text would be rendered with given parameters. If font and fontsize given, it is saved for future call of Osd#text and Osd#text_size.

The width of the osd.

[Validate]