Пример #1
0
 /// <summary>
 /// Sets new renderer data for the widget. The renderer determines how the widget looks.
 /// </summary>
 /// <param name="rendererData">new renderer data</param>
 /// <remarks>
 /// The renderer data is shared with this widget. When the data is changed, this widget will be updated as well.
 /// </remarks>
 public void SetRenderer(RendererData rendererData)
 {
     if (!tguiWidget_setRenderer(CPointer, rendererData.CPointer))
     {
         throw new TGUIException(Util.GetStringFromC_ASCII(tgui_getLastError()));
     }
 }
Пример #2
0
 public RendererData(RendererData copy)
     : base(tguiRendererData_copy(copy.CPointer))
 {
 }
Пример #3
0
 public void addRenderer(string id, RendererData renderer)
 {
     tguiTheme_addRenderer(CPointer, Util.ConvertStringForC_ASCII(id), renderer.CPointer);
 }