// Path: src/main/java/clientapi/gui/widget/data/WidgetAlignment.java
// public interface WidgetAlignment {
// 
//     float getValue();
// }


import clientapi.gui.widget.data.WidgetAlignment;
import clientapi.gui.widget.data.WidgetPos;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.ScaledResolution;
/*
 * Copyright 2018 ImpactDevelopment
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package clientapi.gui.widget;


/**
 * A widget, an element rendered on your HUD
 *
 * @author Brady
 * @since 5/28/2017
 */
public interface Widget {

    /**
     * Renders this widget on a screen with the specified
     * scaled resolution using the specified font renderer.
     *
     * @param font The font that used to render text
     * @param sr The screen size
     */
    void render(FontRenderer font, ScaledResolution sr);

    /**
     * Sets this widget's position on the screen
     *
     * @param pos The new position
     * @return This widget
     */
    Widget setPos(WidgetPos pos);

    /**
     * Sets this widget's horizontal alignment
     *
     * @param alignment The new alignment
     * @return This widget
     */
// Path: src/main/java/clientapi/gui/widget/data/WidgetAlignment.java
// public interface WidgetAlignment {
// 
//     float getValue();
// }


// Path: src/main/java/clientapi/gui/widget/Widget.java
import clientapi.gui.widget.data.WidgetAlignment;
import clientapi.gui.widget.data.WidgetPos;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.ScaledResolution;

/*
 * Copyright 2018 ImpactDevelopment
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package clientapi.gui.widget;


/**
 * A widget, an element rendered on your HUD
 *
 * @author Brady
 * @since 5/28/2017
 */
public interface Widget {

    /**
     * Renders this widget on a screen with the specified
     * scaled resolution using the specified font renderer.
     *
     * @param font The font that used to render text
     * @param sr The screen size
     */
    void render(FontRenderer font, ScaledResolution sr);

    /**
     * Sets this widget's position on the screen
     *
     * @param pos The new position
     * @return This widget
     */
    Widget setPos(WidgetPos pos);

    /**
     * Sets this widget's horizontal alignment
     *
     * @param alignment The new alignment
     * @return This widget
     */
    Widget setAlignment(WidgetAlignment alignment);