Module Expr Str Assign NameStore ListLoad Str ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr CompareIn Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str BinOpMult AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore BinOpMult BinOpAdd BinOpMult NameLoad AttributeLoad NameLoad attr NameLoad Num If AttributeLoad NameLoad attr body If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index BinOpAdd NameLoad Num Str body Return NameLoad Return CompareEq SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad BinOpAdd NameLoad Num Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpSub NameLoad Num Assign AttributeStore NameLoad attr BinOpSub NameLoad Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr For NameStore Call NameLoad Num BinOpSub NameLoad Num body If Call AttributeLoad NameLoad attr NameLoad BinOpSub NameLoad Num body Assign AttributeStore NameLoad attr NameLoad Break orelse Assign AttributeStore NameLoad attr Num For NameStore Call NameLoad BinOpSub NameLoad Num Num Num body If Call AttributeLoad NameLoad attr NameLoad BinOpSub NameLoad Num body Assign AttributeStore NameLoad attr BinOpSub NameLoad NameLoad Break orelse Assign AttributeStore NameLoad attr Num For NameStore Call NameLoad Num BinOpSub NameLoad Num body If Call AttributeLoad NameLoad attr Num NameLoad body Assign AttributeStore NameLoad attr NameLoad Break orelse Assign AttributeStore NameLoad attr Num For NameStore Call NameLoad BinOpSub NameLoad Num Num Num body If Call AttributeLoad NameLoad attr Num NameLoad body Assign AttributeStore NameLoad attr BinOpSub NameLoad NameLoad Break orelse Assign AttributeStore NameLoad attr Num For NameStore Call NameLoad Num BinOpSub NameLoad Num body If Call AttributeLoad NameLoad attr NameLoad Num body Assign AttributeStore NameLoad attr BinOpSub NameLoad Num Break For NameStore Call NameLoad BinOpSub NameLoad Num Num Num body If Call AttributeLoad NameLoad attr NameLoad Num body Assign AttributeStore NameLoad attr BinOpSub AttributeLoad NameLoad attr NameLoad Break For NameStore Call NameLoad Num BinOpSub NameLoad Num body If Call AttributeLoad NameLoad attr BinOpSub NameLoad Num NameLoad body Assign AttributeStore NameLoad attr BinOpSub NameLoad Num Break For NameStore Call NameLoad BinOpSub NameLoad Num Num Num body If Call AttributeLoad NameLoad attr BinOpSub NameLoad Num NameLoad body Assign AttributeStore NameLoad attr BinOpSub AttributeLoad NameLoad attr NameLoad Break Assign NameStore Num Assign NameStore Num Assign NameStore BinOpAdd AttributeLoad NameLoad attr Num Assign NameStore BinOpAdd AttributeLoad NameLoad attr Num Assign NameStore BinOpSub BinOpSub NameLoad AttributeLoad NameLoad attr Num Assign NameStore BinOpSub BinOpSub NameLoad AttributeLoad NameLoad attr Num Assign NameStore BinOpSub NameLoad Num Assign NameStore BinOpSub NameLoad Num Assign TupleStore NameStore NameStore NameStore NameStore ListComp BinOpDiv NameLoad Call NameLoad NameLoad comprehension NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore NameStore ListComp BinOpDiv NameLoad Call NameLoad NameLoad comprehension NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore NameLoad Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore NameLoad Assign TupleStore NameStore NameStore NameStore NameStore ListComp BinOpAdd NameLoad BinOpMult NameLoad NameLoad comprehension NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore NameStore ListComp BinOpAdd NameLoad BinOpMult NameLoad NameLoad comprehension NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad For NameStore Call NameLoad Num body For NameStore Call NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad BinOpAdd NameLoad BinOpMult NameLoad Num BinOpAdd BinOpAdd NameLoad Num BinOpMult NameLoad Num BinOpAdd BinOpAdd NameLoad Num BinOpMult BinOpAdd NameLoad Num Num BinOpAdd NameLoad BinOpMult BinOpAdd NameLoad Num Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore BinOpAdd NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpAdd NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpSub BinOpAdd NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpSub BinOpAdd NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad Return TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad BinOpAdd AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad BinOpAdd AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad AttributeLoad NameLoad attr TupleLoad Str NameLoad TupleLoad Str AttributeLoad NameLoad attr Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr BinOpSub NameLoad AttributeLoad NameLoad attr BinOpSub NameLoad AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list If CompareEq NameLoad Str body Import alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Num keyword Str keyword TupleLoad Num Num Num Num FunctionDef arguments args defaults body Expr Call NameLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpSub BinOpDiv AttributeLoad NameLoad attr Num BinOpDiv NameLoad Num Assign AttributeStore NameLoad attr BinOpSub BinOpDiv AttributeLoad NameLoad attr Num BinOpDiv NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr
N/A N/A Draw a NinePatch image.

NinePatch is a format for storing how to cut up a 9-part resizable
rectangular image within the image pixel data directly.

For more information on the NinePatch format, see
http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch.

 N/A __all__ N/A NinePatch pyglet.gl * PixelData N/A object N/A __init__ N/A N/A self image N/A N/A N/A image_data N/A N/A image get_image_data N/A N/A self has_alpha N/A A N/A image_data format N/A N/A self data N/A N/A image_data get_data RGBA N/A N/A image width 4 N/A N/A self width N/A image width N/A N/A self height N/A image height N/A is_black N/A N/A self x y N/A N/A N/A p N/A N/A N/A y N/A self width x 4 N/A N/A self has_alpha N/A N/A N/A N/A N/A self data N/A N/A p 3 N/A N/A False N/A N/A N/A N/A self data N/A p N/A p 3 N/A N/A NinePatch N/A object N/A N/A A scalable 9-patch image.
     N/A padding_top None N/A padding_bottom None N/A padding_right None N/A padding_left None N/A stretch_top None N/A stretch_left None N/A stretch_right None N/A stretch_bottom None __init__ N/A N/A self image N/A N/A N/A Create NinePatch cuts of an image

        Arguments:
            image - an ImageData (Texture, TextureRegion, etc)
            texture - force cut ImageDatas to be Textures (or Regions)
         N/A data N/A PixelData image N/A width N/A data width N/A height N/A data height N/A N/A self width N/A width 2 N/A N/A self height N/A height 2 N/A N/A self texture N/A N/A image get_texture N/A x N/A range 1 N/A width 1 N/A N/A N/A N/A data is_black x N/A height 1 N/A N/A N/A self stretch_left x N/A N/A N/A N/A self stretch_left 1 N/A x N/A range N/A width 2 0 -1 N/A N/A N/A N/A data is_black x N/A height 1 N/A N/A N/A self stretch_right N/A width x N/A N/A N/A N/A self stretch_right 1 N/A y N/A range 1 N/A height 1 N/A N/A N/A N/A data is_black 0 y N/A N/A N/A self stretch_bottom y N/A N/A N/A N/A self stretch_bottom 1 N/A y N/A range N/A height 2 0 -1 N/A N/A N/A N/A data is_black 0 y N/A N/A N/A self stretch_top N/A height y N/A N/A N/A N/A self stretch_top 1 N/A x N/A range 1 N/A width 1 N/A N/A N/A N/A data is_black x 0 N/A N/A N/A self padding_left N/A x 1 N/A N/A x N/A range N/A width 2 0 -1 N/A N/A N/A N/A data is_black x 0 N/A N/A N/A self padding_right N/A N/A self width x N/A N/A y N/A range 1 N/A height 1 N/A N/A N/A N/A data is_black N/A width 1 y N/A N/A N/A self padding_bottom N/A y 1 N/A N/A y N/A range N/A height 2 0 -1 N/A N/A N/A N/A data is_black N/A width 1 y N/A N/A N/A self padding_top N/A N/A self height y N/A N/A u1 1 N/A v1 1 N/A u2 N/A N/A self stretch_left 1 N/A v2 N/A N/A self stretch_bottom 1 N/A u3 N/A N/A width N/A self stretch_right 1 N/A v3 N/A N/A height N/A self stretch_top 1 N/A u4 N/A width 1 N/A v4 N/A height 1 N/A N/A u1 u2 u3 u4 N/A N/A s N/A float width N/A s N/A u1 u2 u3 u4 N/A N/A v1 v2 v3 v4 N/A N/A s N/A float height N/A s N/A v1 v2 v3 v4 N/A N/A tu1 tv1 _ _ _ _ tu2 tv2 _ _ _ _ N/A N/A self texture tex_coords N/A u_scale N/A tu2 tu1 N/A u_bias tu1 N/A v_scale N/A tv2 tv1 N/A v_bias tv1 N/A N/A u1 u2 u3 u4 N/A N/A u_bias N/A u_scale s N/A s N/A u1 u2 u3 u4 N/A N/A v1 v2 v3 v4 N/A N/A v_bias N/A v_scale s N/A s N/A v1 v2 v3 v4 N/A N/A self tex_coords N/A u1 v1 u2 v1 u3 v1 u4 v1 u1 v2 u2 v2 u3 v2 u4 v2 u1 v3 u2 v3 u3 v3 u4 v3 u1 v4 u2 v4 u3 v4 u4 v4 N/A N/A self indices N/A N/A y N/A range 3 N/A N/A x N/A range 3 N/A N/A N/A N/A N/A self indices extend N/A N/A x N/A y 4 N/A N/A x 1 N/A y 4 N/A N/A x 1 N/A N/A y 1 4 N/A x N/A N/A y 1 4 N/A get_vertices N/A N/A self x y width height N/A N/A N/A Get 16 2D vertices for the given image region N/A x1 x N/A y1 y N/A x2 N/A x N/A self stretch_left N/A y2 N/A y N/A self stretch_bottom N/A x3 N/A N/A x width N/A self stretch_right N/A y3 N/A N/A y height N/A self stretch_top N/A x4 N/A x width N/A y4 N/A y height N/A N/A x1 y1 x2 y1 x3 y1 x4 y1 x1 y2 x2 y2 x3 y2 x4 y2 x1 y3 x2 y3 x3 y3 x4 y3 x1 y4 x2 y4 x3 y4 x4 y4 N/A draw N/A N/A self x y width height N/A N/A N/A Draw the nine-patch at the given image dimensions. N/A width N/A max width N/A N/A self width 2 N/A height N/A max height N/A N/A self height 2 N/A vertices N/A N/A self get_vertices x y width height N/A N/A glPushAttrib GL_ENABLE_BIT N/A N/A glEnable GL_BLEND N/A N/A glBlendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA N/A N/A glEnable N/A N/A self texture target N/A N/A glBindTexture N/A N/A self texture target N/A N/A self texture id N/A N/A N/A N/A pyglet graphics draw_indexed 16 GL_QUADS N/A self indices N/A v2i vertices N/A t2f N/A self tex_coords N/A N/A glPopAttrib N/A draw_around N/A N/A self x y width height N/A N/A N/A Draw the nine-patch around the given content area N/A N/A N/A self draw N/A x N/A self padding_left N/A y N/A self padding_bottom N/A N/A width N/A self padding_left N/A self padding_right N/A N/A height N/A self padding_bottom N/A self padding_top N/A N/A N/A N/A __name__ __main__ N/A N/A sys N/A image N/A N/A N/A pyglet image load N/A N/A sys argv N/A 1 N/A ninepatch N/A NinePatch image N/A window N/A N/A N/A pyglet window Window resizable True N/A label N/A N/A N/A pyglet text Label Hello, NinePatch font_size 16 anchor_y bottom color N/A 0 0 0 255 on_draw N/A N/A N/A N/A N/A N/A glClearColor 0.7 0.7 0.7 1.0 N/A N/A N/A window clear N/A width N/A label content_width N/A height N/A label content_height N/A N/A label x N/A N/A N/A window width 2 N/A width 2 N/A N/A label y N/A N/A N/A window height 2 N/A height 2 N/A N/A N/A ninepatch draw_around N/A label x N/A label y width height N/A N/A N/A label draw N/A N/A window event N/A N/A N/A N/A pyglet app run