#NEWLINE# @ classmethod #NEWLINE# def get( cls , c , cb , * props ) : #NEWLINE# #INDENT# 'Initiate a request to get the render information for a given component.\n\n        The information can be for example the exact pixel size and position, the\n        font size, visibility, margin, padding or border of the component in the\n        browser. See possible values from the {@link CssProperty} enumerable.\n\n        The information will be delivered asynchronously from the client, and\n        passed as a parameter to the callback method.\n\n        You can limit the amount of properties transmitted over the connection by\n        passing the desired property names as the last parameter for the method.\n\n        @param c:\n                   The component whose render information you wish to get.\n        @param cb:\n                   The callback object which will receive the information when it\n                   is available.\n        @param props:\n                   Optional. The list of CSS properties you wish to get from the\n                   client (limit the amount of transferred data). You can pass\n                   any type of objects here, the C{__str__()} method\n                   will be used to convert them to actual property names.\n                   Preferably use the L{CssProperty} enumerable for feasible values.\n        ' #NEWLINE# if ( c . getApplication ( ) is None ) : #NEWLINE# #INDENT# raise ValueError ( "The component must be attached to the application before you try to get it's RenderInfo" ) #NEWLINE# #UNINDENT# from muntjac.addon.csstools.render_info_fetcher import RenderInfoFetcher #NEWLINE# fetcher = RenderInfoFetcher ( cb , cb , * props ) #NEWLINE# c . getApplication ( ) . getMainWindow ( ) . addWindow ( fetcher )