<commit_before>////////////////////////////////////////////////////////////////////////////////
//
//  ADOBE SYSTEMS INCORPORATED
//  Copyright 2008 Adobe Systems Incorporated
//  All Rights Reserved.
//
//  NOTICE: Adobe permits you to use, modify, and distribute this file
//  in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////

package flex.intf
{
import flash.events.IEventDispatcher;

public interface IViewport extends IEventDispatcher
{
    function get width():Number;
    function get height():Number;
    
    function get contentWidth():Number;
    function get contentHeight():Number;

    function get verticalScrollPosition():Number;
    function set verticalScrollPosition(value:Number):void;
    
    function get horizontalScrollPosition():Number;
    function set horizontalScrollPosition(value:Number):void;
    
    function verticalScrollPositionDelta(unit:uint):Number
    function horizontalScrollPositionDelta(unit:uint):Number
    
    function get clipContent():Boolean;
    function set clipContent(value:Boolean):void;    
}

}<commit_msg>Transferred from the Adobe Open Source Subversion Repository<commit_after>////////////////////////////////////////////////////////////////////////////////
//
//  ADOBE SYSTEMS INCORPORATED
//  Copyright 2008 Adobe Systems Incorporated
//  All Rights Reserved.
//
//  NOTICE: Adobe permits you to use, modify, and distribute this file
//  in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////

package flex.intf
{
import flash.events.IEventDispatcher;

public interface IViewport extends IEventDispatcher
{
    function get width():Number;
    function get height():Number;
    
    /**
     * The positive extent of the content, relative to the 0,0
     * origin, along the X axis.
     */
    function get contentWidth():Number;
    
    /**
     * The positive extent of the content, relative to the 0,0 
     * origin, along the Y axis.
     */
    function get contentHeight():Number;

     /**
     *  The X coordinate of the origin of the region the target is
     *  scrolled to.  
     * 
     *  Setting this property causes the target's 
     *  <code>scrollRect</code> to be set, if necessary, to:
     *  <pre>
     *  new Rectangle(horizontalScrollPosition, verticalScrollPosition, width, height)
     *  </pre>
     *  Where <code>width</code> and <code>height</code> are properties
     *  of the target.
     * 
     *  @default 0
     *  @see target
     *  @see verticalScrollPosition
     */
    function get horizontalScrollPosition():Number;
    function set horizontalScrollPosition(value:Number):void;
     
     /**
     *  The Y coordinate of the origin of the region this Group is
     *  scrolled to.  
     * 
     *  Setting this property causes the <code>scrollRect</code> to
     *  be set, if necessary, to:
     *  <pre>
     *  new Rectangle(horizontalScrollPosition, verticalScrollPosition, width, height)
     *  </pre>                 
     *  Where <code>width</code> and <code>height</code> are properties
     *  of the target.
     * 
     *  @default 0
     *  @see horizontalScrollPosition
     */
    function get verticalScrollPosition():Number;
    function set verticalScrollPosition(value:Number):void;
    
    /**
     *  Returns the amount one would have to add to the viewport's current 
     *  verticalScrollPosition to scroll by the requested "scrolling" unit.
     * 
     *  The value of unit must be one of the following flash.ui.Keyboard
     *  constants: UP, DOWN, PAGE_UP, PAGE_DOWN, HOME, END.
     * 
     *  To scroll by a single row use UP or DOWN and to scroll to the
     *  first or last row, use HOME or END.
     */
    function horizontalScrollPositionDelta(unit:uint):Number
    
    /**
     *  Returns the amount one would have to add to the viewport's current 
     *  verticalScrollPosition to scroll by the requested "scrolling" unit.
     * 
     *  The value of unit must be one of the following flash.ui.Keyboard
     *  constants: UP, DOWN, PAGE_UP, PAGE_DOWN, HOME, END.
     * 
     *  To scroll by a single row use UP or DOWN and to scroll to the
     *  first or last row, use HOME or END.
     */
    function verticalScrollPositionDelta(unit:uint):Number
     
    /**
     *  When scrolling is enabled, clip the target's contents by 
     *  setting its scrollRect.  If this property is set to false,
     *  then the target's scrollRect will be null, even if its
     *  scrollPosition is non-zero or its content size is larger
     *  than its actual size.
     * 
     *  @default true
     *  @see target
     *  @see updateScrollRect
     *  @see verticalScrollPosition
     *  @see horizontalScrollPosition
     */
    function get clipContent():Boolean;
    function set clipContent(value:Boolean):void;    
}

}
{'fraction_non_alphanumeric': 0.13975903614457832, 'fraction_numerical': 0.002811244979919679, 'mean_word_length': 2.1726114649681527, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6982565', 'n_tokens_mistral': 1320, 'n_tokens_neox': 1258, 'n_words': 460}