ruby-****@sourc*****
ruby-****@sourc*****
2005年 11月 17日 (木) 19:39:26 JST
------------------------- REMOTE_ADDR = 15.211.169.100 REMOTE_HOST = REMOTE_USER = ruby-gnome2-hiki URL = /hiki.cgi?Pango%3A%3ARenderer ------------------------- @@ -1,5 +1,5 @@ = class Pango::Renderer -Pango::Renderer is a base class for objects that are used to render Pango objects such as Pango::GlyphString and Pango::Layout. +Pango::Renderer is a base class for objects that are used to render Pango objects such as Pango::GlyphString and Pango::Layout. ((* Since 1.8 *)) == Object Hierarchy * Object @@ -48,7 +48,7 @@ * Returns: self --- draw_trapezoid(part, y1, x11, x21, y2, x12, x22) - Draws a trapezoid with the parallel sides aligned with the X axis using the given Pango::Renderer; coordinates are in device space. + Draws a trapezoid with the parallel sides aligned with the X axis using the given Pango::Renderer; coordinates are in device space. ((* Since 1.8 *)) * part: type of object this trapezoid is part of (Pango::Renderer#Part) * y1: Y coordinate of top of trapezoid * x11: X coordinate of left end of top of trapezoid @@ -59,7 +59,7 @@ * Returns: self --- draw_glyph(font, glyph, x, y) - Draws a single glyph with coordinates in device space. + Draws a single glyph with coordinates in device space. ((* Since 1.8 *)) * font: a Pango::Font * glyph: the glyph index(Integer) of a single glyph * x: X coordinate of left edge of baseline of glyph @@ -67,43 +67,43 @@ * Returns: self --- activate - Does initial setup before rendering operations on the Pango::Renderer. Pango::Renderer#deactive should be called when done drawing. Calls such as Pango::Renderer#draw_layout automatically activate the layout before drawing on it. Calls to Pango::Renderer#activate and Pango::Renderer#deactivate can be nested and the Pango::Renderer will only be initialized and deinitialized once. + Does initial setup before rendering operations on the Pango::Renderer. Pango::Renderer#deactive should be called when done drawing. Calls such as Pango::Renderer#draw_layout automatically activate the layout before drawing on it. Calls to Pango::Renderer#activate and Pango::Renderer#deactivate can be nested and the Pango::Renderer will only be initialized and deinitialized once. ((* Since 1.8 *)) * Returns: self --- deactivate - Cleans up after rendering operations on the Pango::Renderer. See docs for Pango::Renderer#activate. + Cleans up after rendering operations on the Pango::Renderer. See docs for Pango::Renderer#activate. ((* Since 1.8 *)) * Returns: self --- get_color(part) - Gets the current rendering color for the specified part. + Gets the current rendering color for the specified part. ((* Since 1.8 *)) * part: the part to get the color for (Pango::Renderer#Part) * Returns: the Pango::Color for the specified part, or nil if it hasn't been set and should be inherited from the environment. --- set_color(part, color) - Sets the color for part of the rendering. + Sets the color for part of the rendering. ((* Since 1.8 *)) * part: the part to change the color of (Pango::Renderer#Part) * color: the new Pango::Color or nil to unset the current color * Returns: self --- part_changed(part) - Informs Pango that the way that the renderering is done for part has changed in a way that would prevent multiple pieces being joined together into one drawing call. For instance, if a subclass of Pango::Renderer was to add a stipple option for drawing underlines, it needs to call Pango::Renderer#part_changed(Pango::Renderer::PART_UNDERLINE). When the stipple changes or underlines with different stipples might be joined together. Pango automatically calls this for changes to colors. (See Pango::Renderer#set_color) + Informs Pango that the way that the renderering is done for part has changed in a way that would prevent multiple pieces being joined together into one drawing call. For instance, if a subclass of Pango::Renderer was to add a stipple option for drawing underlines, it needs to call Pango::Renderer#part_changed(Pango::Renderer::PART_UNDERLINE). When the stipple changes or underlines with different stipples might be joined together. Pango automatically calls this for changes to colors. (See Pango::Renderer#set_color) ((* Since 1.8 *)) * part: the part for which rendering has changed (Pango::Renderer#Part) * Returns: self --- matrix - Gets the transformation matrix that will be applied when rendering. See Pango::Renderer#matrix=. + Gets the transformation matrix that will be applied when rendering. See Pango::Renderer#matrix=. ((* Since 1.8 *)) * Returns: the Pango::Matrix, or nil if no matrix has been set (which is the same as the identity matrix). --- matrix=(matrix) - Sets the transformation matrix that will be applied when rendering. + Sets the transformation matrix that will be applied when rendering. ((* Since 1.8 *)) * matrix: a Pango::Matrix, or nil to unset any existing matrix (No matrix set is the same as setting the identity matrix). * Returns: matrix --- set_matrix(matrix) - Same as Pango::Renderer#matrix=. + Same as Pango::Renderer#matrix=. ((* Since 1.8 *)) * matrix: a Pango::Matrix, or nil to unset any existing matrix (No matrix set is the same as setting the identity matrix). * Returns: self == Constants === Part Part defines different items to render for such purposes as setting colors. -You can omit "Renderer::" like as Pango::PART_FOREGROUND instead of Pango::Renderer::PART_FOREGROUND. +You can omit "Renderer::" like as Pango::PART_FOREGROUND instead of Pango::Renderer::PART_FOREGROUND. ((* Since 1.8 *)) --- PART_FOREGROUND the text itself --- PART_BACKGROUND