Difference between revisions of "Category:gc"

From Inspired-Lua Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
== Quick Overview==
 
== Quick Overview==
*'''[[gc:begin]]''' -
+
*'''[[gc:begin]]''' -
*'''[[gc:clipRect]]'''(?, x, y, width, height) -
+
*'''[[gc:clipRect]]'''(?, x, y, width, height) -
*'''[[gc:drawArc]]'''(x, y, width, height, start angle, finish angle).
+
*'''[[gc:drawArc]]'''(x, y, width, height, start angle, finish angle).
*'''[[gc:drawImage]]'''(image,x,y) First argument in format “[[TI.Image]]”, x and y the coords.
+
*'''[[gc:drawImage]]'''(image,x,y) First argument in format “[[TI.Image]]”, x and y the coords.
*'''[[gc:drawLine]]'''(xstart, ystart, xend, yend) Draws a line starting at the point (xstart,ystart) and ending at the point (xend, yend)
+
*'''[[gc:drawLine]]'''(xstart, ystart, xend, yend) Draws a line starting at the point (xstart,ystart) and ending at the point (xend, yend)
*'''[[gc:drawPolyLine]]'''(int list1 [,int list2, .., int listN]) Draws a shape from a list contaning successively the x and y coordinates of each point the line have to draw. *'''[[gc:drawRect]]'''(x, y, xwidth, yheight) Draws a rectangle at (x,y) with the “x” side being “xwidth” long and the “y” side being “yheight” long
+
*'''[[gc:drawPolyLine]]'''(int list1 [,int list2, .., int listN]) Draws a shape from a list contaning successively the x and y coordinates of each point the line have to draw.
*'''[[gc:drawString]]'''(string, x, y, position) position is the string’s anchor point and can be "baseline", “bottom”, “middle”, or “top”.
+
*'''[[gc:drawRect]]'''(x, y, xwidth, yheight) Draws a rectangle at (x,y) with the “x” side being “xwidth” long and the “y” side being “yheight” long
*'''[[gc:fillArc]]'''(x, y, width, height, start angle, finish angle) see [[drawArc]] *'''[[gc:fillPolygon]]'''(int list1 [,int list2, .., int listN]) see [[drawPolyLine]]
+
*'''[[gc:drawString]]'''(string, x, y, position) position is the string’s anchor point and can be "baseline", “bottom”, “middle”, or “top”.  
 +
*'''[[gc:fillArc]]'''(x, y, width, height, start angle, finish angle) see [[drawArc]]
 +
*'''[[gc:fillPolygon]]'''(int list1 [,int list2, .., int listN]) see [[drawPolyLine]]
 
*'''[[gc:fillRect]]'''(x, y, width, height) see [[drawRect]]
 
*'''[[gc:fillRect]]'''(x, y, width, height) see [[drawRect]]
 
*'''[[gc:finish]]''' -
 
*'''[[gc:finish]]''' -
 
*'''[[gc:getStringHeight]]'''(string) - Returns the string's height.
 
*'''[[gc:getStringHeight]]'''(string) - Returns the string's height.
*'''[[gc:getStringWidth]]'''(string) - Returns the string's width *'''[[gc:isColorDisplay]]''' Bool (Read-only) Returns 1 if the device has a color display, 0 if not.
+
*'''[[gc:getStringWidth]]'''(string) - Returns the string's width
*'''[[gc:setAlpha]]'''(alpha) - where alpha is an integer between 0 and 255. Sets the transparency.
+
*'''[[gc:isColorDisplay]]''' Bool (Read-only) Returns 1 if the device has a color display, 0 if not.
*'''[[gc:setColorRGB]]'''(red, green, blue) RGB values are integers, from 0 to 255. *'''[[gc:setFont]]'''(font, type, size), with font : {“sansserif”, "serif", ..}, type {“b”, “r”, “i”}, size(int)
+
*'''[[gc:setAlpha]]'''(alpha) - where alpha is an integer between 0 and 255. Sets the transparency.
*'''[[gc:setPen]]'''(thickness, smoothness) : thickness {“thin”, “medium”, "thick"}, smoothness {“smooth”, "dotted", "dashed"} <br>
+
*'''[[gc:setColorRGB]]'''(red, green, blue) RGB values are integers, from 0 to 255.
 +
*'''[[gc:setFont]]'''(font, type, size), with font : {“sansserif”, "serif", ..}, type {“b”, “r”, “i”}, size(int)
 +
*'''[[gc:setPen]]'''(thickness, smoothness) : thickness {“thin”, “medium”, "thick"}, smoothness {“smooth”, "dotted", "dashed"}
 +
<br>

Revision as of 12:00, 24 May 2011

Quick Overview

  • gc:begin -
  • gc:clipRect(?, x, y, width, height) -
  • gc:drawArc(x, y, width, height, start angle, finish angle).
  • gc:drawImage(image,x,y) First argument in format “TI.Image”, x and y the coords.
  • gc:drawLine(xstart, ystart, xend, yend) Draws a line starting at the point (xstart,ystart) and ending at the point (xend, yend)
  • gc:drawPolyLine(int list1 [,int list2, .., int listN]) Draws a shape from a list contaning successively the x and y coordinates of each point the line have to draw.
  • gc:drawRect(x, y, xwidth, yheight) Draws a rectangle at (x,y) with the “x” side being “xwidth” long and the “y” side being “yheight” long
  • gc:drawString(string, x, y, position) position is the string’s anchor point and can be "baseline", “bottom”, “middle”, or “top”.
  • gc:fillArc(x, y, width, height, start angle, finish angle) see drawArc
  • gc:fillPolygon(int list1 [,int list2, .., int listN]) see drawPolyLine
  • gc:fillRect(x, y, width, height) see drawRect
  • gc:finish -
  • gc:getStringHeight(string) - Returns the string's height.
  • gc:getStringWidth(string) - Returns the string's width
  • gc:isColorDisplay Bool (Read-only) Returns 1 if the device has a color display, 0 if not.
  • gc:setAlpha(alpha) - where alpha is an integer between 0 and 255. Sets the transparency.
  • gc:setColorRGB(red, green, blue) RGB values are integers, from 0 to 255.
  • gc:setFont(font, type, size), with font : {“sansserif”, "serif", ..}, type {“b”, “r”, “i”}, size(int)
  • gc:setPen(thickness, smoothness) : thickness {“thin”, “medium”, "thick"}, smoothness {“smooth”, "dotted", "dashed"}