~ubuntu-branches/ubuntu/vivid/mygui/vivid

« back to all changes in this revision

Viewing changes to Wrappers/TestApp.Sharp/Test_TextBox.cs

  • Committer: Package Import Robot
  • Author(s): Scott Howard, Bret Curtis, Scott Howard
  • Date: 2014-09-18 17:57:48 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140918175748-dd8va78mvpw1jbes
Tags: 3.2.1-1
[ Bret Curtis ]
* Updated license for majority of files from LGPL to Expat (MIT)

[ Scott Howard ]
* New upstream release
* Updated patch to add build option for system GLEW libraries
* All patches accepted upstream except shared_libraries.patch
* Bumped SONAME due to dropped symbols, updated *.symbols and package
  names
* Updated license of debian/* to Expat with permission of all authors
* Don't install Doxygen autogenerated md5 and map files (thanks
  lintian)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
using System;
2
 
using MyGUI.Sharp;
3
 
 
4
 
namespace TestApp.Sharp
5
 
{
6
 
    public class Test_TextBox
7
 
    {
8
 
        public static void Test()
9
 
        {
10
 
            TextBox text = Gui.Instance.CreateWidget<TextBox>("TextBox", new IntCoord(320, 220, 100, 100), Align.Default, "Main");
11
 
            text.Caption = "TextBox";
12
 
 
13
 
            Colour colour = text.TextColour;
14
 
            text.TextColour = Colour.White;
15
 
 
16
 
            Align align = text.TextAlign;
17
 
            text.TextAlign = Align.Center;
18
 
 
19
 
            text.FontHeight = text.FontHeight + 1;
20
 
            string font = text.FontName;
21
 
            text.FontName = "Default";
22
 
 
23
 
            IntSize size = text.GetTextSize();
24
 
            IntCoord coord = text.GetTextRegion();
25
 
        }
26
 
    }
27
 
}