Searched defs:skin (Results 1 - 25 of 43) sorted by relevance

12

/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/
H A DContainerTest.java17 Skin skin; field in class:ContainerTest
22 skin = new Skin(Gdx.files.internal("data/uiskin.json"));
74 table.add(new Label(text, skin)).fill().expand();
94 skin.dispose();
H A DImageTest.java31 Skin skin; field in class:ImageTest
38 skin = new Skin(Gdx.files.internal("data/uiskin.json"));
56 skin.dispose();
H A DLabelScaleTest.java30 Skin skin; field in class:LabelScaleTest
38 skin = new Skin(Gdx.files.internal("data/uiskin.json"));
46 Label label1 = new Label("This text is scaled 2x.", skin);
49 "This text is scaled. This text is scaled. This text is scaled. This text is scaled. This text is scaled. ", skin);
63 skin.dispose();
H A DScrollPane2Test.java33 Skin skin; field in class:ScrollPane2Test
39 skin = new Skin(Gdx.files.internal("data/uiskin.json"));
41 ScrollPane pane2 = new ScrollPane(new Image(new Texture("data/group-debug.png")), skin);
63 ScrollPane pane = new ScrollPane(mytable, skin);
94 skin.dispose();
H A DSoundTest.java41 Skin skin; field in class:SoundTest
47 skin = new Skin(Gdx.files.internal("data/uiskin.json"));
49 TextButton play = new TextButton("Play", skin);
50 TextButton stop = new TextButton("Stop", skin);
51 final Slider pitch = new Slider(0.1f, 4, 0.1f, false, skin);
53 final Label pitchValue = new Label("1.0", skin);
54 final Slider volume = new Slider(0.1f, 1, 0.1f, false, skin);
56 final Label volumeValue = new Label("1.0", skin);
58 final Slider pan = new Slider(-1f, 1f, 0.1f, false, skin);
60 final Label panValue = new Label("0.0", skin);
[all...]
H A DTableTest.java37 Skin skin; field in class:TableTest
47 skin = new Skin(Gdx.files.internal("data/uiskin.json"));
52 NinePatch patch = skin.getPatch("default-round");
54 Label label = new Label("This is some text.", skin);
71 table.add(new TextButton("Text Button", skin));
81 TextButton button = new TextButton("Text Button", skin);
93 root.add(new Label("meow meow meow meow meow meow meow meow meow meow meow meow", skin)).colspan(3).expandX();
94 root.add(new TextButton("Text Button", skin));
96 root.add(new TextButton("Text Button", skin));
97 root.add(new TextButton("Toggle Button", skin
[all...]
H A DTextAreaTest.java30 private Skin skin; field in class:TextAreaTest
36 skin = new Skin(Gdx.files.internal("data/uiskin.json"));
40 skin);
46 TextField textField = new TextField("Text field", skin);
74 skin.dispose();
H A DTextButtonTest.java30 private Skin skin; field in class:TextButtonTest
36 skin = new Skin(Gdx.files.internal("data/uiskin.json"));
38 TextButton t = new TextButton("Button" + i, skin);
66 skin.dispose();
H A DUISimpleTest.java38 Skin skin; field in class:UISimpleTest
48 // A skin can be loaded via JSON or defined programmatically, either is fine. Using a skin is optional but strongly
50 skin = new Skin();
52 // Generate a 1x1 white texture and store it in the skin named "white".
56 skin.add("white", new Texture(pixmap));
59 skin.add("default", new BitmapFont());
63 textButtonStyle.up = skin.newDrawable("white", Color.DARK_GRAY);
64 textButtonStyle.down = skin.newDrawable("white", Color.DARK_GRAY);
65 textButtonStyle.checked = skin
[all...]
H A DGroupCullingTest.java33 private Skin skin; field in class:GroupCullingTest
46 skin = new Skin(Gdx.files.internal("data/uiskin.json"));
49 root.add(new ScrollPane(labels, skin)).expand().fill();
51 root.add(drawnLabel = new Label("", skin));
54 labels.add(new Label("Label: " + i, skin) {
67 skin.dispose();
H A DUITest.java60 Skin skin; field in class:UITest
68 skin = new Skin(Gdx.files.internal("data/uiskin.json"));
81 ImageButtonStyle style = new ImageButtonStyle(skin.get(ButtonStyle.class));
86 Button buttonMulti = new TextButton("Multi\nLine\nToggle", skin, "toggle");
87 Button imgButton = new Button(new Image(image), skin);
88 Button imgToggleButton = new Button(new Image(image), skin, "toggle");
90 Label myLabel = new Label("this is some text.", skin);
99 final CheckBox checkBox = new CheckBox(" Continuous rendering", skin);
101 final Slider slider = new Slider(0, 10, 1, false, skin);
103 TextField textfield = new TextField("", skin);
[all...]
H A DLabelTest.java37 Skin skin; field in class:LabelTest
47 skin = new Skin(Gdx.files.internal("data/uiskin.json"));
48 skin.getAtlas().getTextures().iterator().next().setFilter(TextureFilter.Nearest, TextureFilter.Nearest);
49 skin.getFont("default-font").getData().markupEnabled = true;
51 skin.getFont("default-font").getData().setScale(scale);
60 table.add(new Label("This is regular text.", skin));
62 table.add(new Label("This is regular text\nwith a newline.", skin));
64 Label label3 = new Label("This is [RED]regular text\n\nwith newlines,\naligned bottom, right.", skin);
69 Label label4 = new Label("This is regular text with NO newlines, wrap enabled and aligned bottom, right.", skin);
74 Label label5 = new Label("This is regular text with\n\nnewlines, wrap\nenabled and aligned bottom, right.", skin);
[all...]
H A DMipMapTest.java51 Skin skin; field in class:MipMapTest
88 skin = new Skin(Gdx.files.internal("data/uiskin.json"));
96 hwMipMap = new CheckBox("Hardware Mips", skin);
97 minFilter = new SelectBox(skin);
99 magFilter = new SelectBox(skin.get(SelectBoxStyle.class));
106 table.add(new Label("Min Filter", skin)).spaceRight(5);
108 table.add(new Label("Mag Filter", skin)).spaceRight(5);
142 skin.dispose();
/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/
H A DTextTooltip.java26 public TextTooltip (String text, Skin skin) { argument
27 this(text, TooltipManager.getInstance(), skin.get(TextTooltipStyle.class));
30 public TextTooltip (String text, Skin skin, String styleName) { argument
31 this(text, TooltipManager.getInstance(), skin.get(styleName, TextTooltipStyle.class));
38 public TextTooltip (String text, TooltipManager manager, Skin skin) { argument
39 this(text, manager, skin.get(TextTooltipStyle.class));
42 public TextTooltip (String text, TooltipManager manager, Skin skin, String styleName) { argument
43 this(text, manager, skin.get(styleName, TextTooltipStyle.class));
H A DCheckBox.java32 public CheckBox (String text, Skin skin) { argument
33 this(text, skin.get(CheckBoxStyle.class));
36 public CheckBox (String text, Skin skin, String styleName) { argument
37 this(text, skin.get(styleName, CheckBoxStyle.class));
H A DDialog.java43 private Skin skin; field in class:Dialog
56 public Dialog (String title, Skin skin) { argument
57 super(title, skin.get(WindowStyle.class));
58 setSkin(skin);
59 this.skin = skin;
63 public Dialog (String title, Skin skin, String windowStyleName) { argument
64 super(title, skin.get(windowStyleName, WindowStyle.class));
65 setSkin(skin);
66 this.skin
[all...]
H A DImage.java64 public Image (Skin skin, String drawableName) { argument
65 this(skin.getDrawable(drawableName), Scaling.stretch, Align.center);
137 public void setDrawable (Skin skin, String drawableName) { argument
138 setDrawable(skin.getDrawable(drawableName));
H A DImageButton.java32 public ImageButton (Skin skin) { argument
33 this(skin.get(ImageButtonStyle.class));
36 public ImageButton (Skin skin, String styleName) { argument
37 this(skin.get(styleName, ImageButtonStyle.class));
H A DImageTextButton.java38 public ImageTextButton (String text, Skin skin) { argument
39 this(text, skin.get(ImageTextButtonStyle.class));
40 setSkin(skin);
43 public ImageTextButton (String text, Skin skin, String styleName) { argument
44 this(text, skin.get(styleName, ImageTextButtonStyle.class));
45 setSkin(skin);
H A DSlider.java43 public Slider (float min, float max, float stepSize, boolean vertical, Skin skin) { argument
44 this(min, max, stepSize, vertical, skin.get("default-" + (vertical ? "vertical" : "horizontal"), SliderStyle.class));
47 public Slider (float min, float max, float stepSize, boolean vertical, Skin skin, String styleName) { argument
48 this(min, max, stepSize, vertical, skin.get(styleName, SliderStyle.class));
H A DTextButton.java32 public TextButton (String text, Skin skin) { argument
33 this(text, skin.get(TextButtonStyle.class));
34 setSkin(skin);
37 public TextButton (String text, Skin skin, String styleName) { argument
38 this(text, skin.get(styleName, TextButtonStyle.class));
39 setSkin(skin);
/external/libgdx/tests/gdx-tests-lwjgl3/src/com/badlogic/gdx/tests/lwjgl3/
H A DLwjgl3TestStarter.java50 private Skin skin; field in class:Lwjgl3TestStarter.TestChooser
58 skin = new Skin(Gdx.files.internal("data/uiskin.json"));
66 ScrollPane scroll = new ScrollPane(table, skin);
74 final TextButton testButton = new TextButton(testName, skin);
132 skin.dispose();
H A DDragNDropTest.java40 private Skin skin; field in class:DragNDropTest
48 skin = new Skin(Gdx.files.internal("data/uiskin.json"));
83 root.add(new Label(file, skin)).left().row();
/external/skia/src/views/animated/
H A DSkBorderView.cpp29 void SkBorderView::setSkin(const char skin[]) argument
31 init_skin_anim(skin, &fAnim);
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/extensions/
H A DControllersTest.java39 Skin skin; field in class:ControllersTest
67 skin = new Skin(Gdx.files.internal("data/uiskin.json"));
71 console = new List(skin);
74 TextButton clear = new TextButton("Clear", skin);

Completed in 499 milliseconds

12