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

« back to all changes in this revision

Viewing changes to Wrappers/TestApp.Sharp/Test_Button.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_Button
7
 
    {
8
 
        public static void Test()
9
 
        {
10
 
            Button button = Gui.Instance.CreateWidget<Button>("Button", new IntCoord(10, 10, 100, 100), Align.Default, "Main");
11
 
 
12
 
            /*uint index = uint.MaxValue;
13
 
            index = button.ImageIndex;
14
 
            button.ImageIndex = uint.MaxValue;
15
 
            index = button.ImageIndex;
16
 
            button.ImageIndex = 0;
17
 
            index = button.ImageIndex;*/
18
 
 
19
 
            /*bool value = false;
20
 
            value = button.StateCheck;
21
 
            button.StateCheck = false;
22
 
            value = button.StateCheck;
23
 
            button.StateCheck = true;
24
 
            value = button.StateCheck;*/
25
 
 
26
 
            bool value = false;
27
 
            value = button.StateSelected;
28
 
            button.StateSelected = false;
29
 
            value = button.StateSelected;
30
 
            button.StateSelected = true;
31
 
            value = button.StateSelected;
32
 
 
33
 
            //StaticImage image = button.GetStaticImage();
34
 
        }
35
 
    }
36
 
}