mkv.MyGUI
Class MyGUIStyle
java.lang.Object
mkv.MyGUI.MyGUIStyle
- public class MyGUIStyle
- extends java.lang.Object
MyGUIStyle is a simple collection of colours and a font(s) that is used to
give a constant look and feel to all elements drawn through processing.
Version: 0.01
Created by John Beech
Website: http://mkv25.net/
Current features include:
- Specify font, font size
- Set colours for:
- Background
- Button Face
- Button Highlight
- Button Shadow
- Button Text
- General Face
- General Highlight
- General Shadow
- General Disabled
- Highlighted Text
- Scroll Bar Background
Constructor Summary |
MyGUIStyle(processing.core.PApplet root)
|
MyGUIStyle(processing.core.PApplet root,
int tint)
|
MyGUIStyle(processing.core.PApplet root,
processing.core.PFont font,
int fontSize,
int buttonFace,
int buttonHighlight,
int buttonShadow,
int buttonText)
|
MyGUIStyle(processing.core.PApplet root,
processing.core.PFont font,
int fontSize,
int background,
int buttonFace,
int buttonHighlight,
int buttonShadow,
int buttonText,
int icon,
int face,
int highlight,
int shadow,
int disabled,
int highlightText,
int scrollBar)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
font
public processing.core.PFont font
fontSize
public int fontSize
strokeWeight
public int strokeWeight
padding
public int padding
background
public int background
buttonFace
public int buttonFace
buttonHighlight
public int buttonHighlight
buttonShadow
public int buttonShadow
buttonText
public int buttonText
icon
public int icon
highlight
public int highlight
face
public int face
shadow
public int shadow
disabled
public int disabled
highlightText
public int highlightText
scrollBar
public int scrollBar
MyGUIStyle
public MyGUIStyle(processing.core.PApplet root)
MyGUIStyle
public MyGUIStyle(processing.core.PApplet root,
int tint)
MyGUIStyle
public MyGUIStyle(processing.core.PApplet root,
processing.core.PFont font,
int fontSize,
int background,
int buttonFace,
int buttonHighlight,
int buttonShadow,
int buttonText,
int icon,
int face,
int highlight,
int shadow,
int disabled,
int highlightText,
int scrollBar)
MyGUIStyle
public MyGUIStyle(processing.core.PApplet root,
processing.core.PFont font,
int fontSize,
int buttonFace,
int buttonHighlight,
int buttonShadow,
int buttonText)
setDefaultColors
public void setDefaultColors()
setFont
public void setFont(processing.core.PFont newFont)
setFont
public void setFont(processing.core.PFont newFont,
int newFontSize)
setStrokeWeight
public void setStrokeWeight(int weight)
setPadding
public void setPadding(int pad)
tintColor
public void tintColor(int c)
tintDefault
public void tintDefault(int c)
tintColor
public int tintColor(int c,
int tint)
tintColor
public int tintColor(int c,
int tint,
float str)
setTransparency
public void setTransparency(float a)
setTransparency
public void setTransparency(int a)
copy
public MyGUIStyle copy()