コード例 #1
0
ファイル: DemoSprites.cs プロジェクト: ARLM-Attic/wordplay
    /// <summary>
    /// Triggered when the pane list is changed.
    /// </summary>
    private void OnPaneChanged(
        object o,
        EventArgs args)
    {
        // Change the pane
        currentPane = panes[paneList.Active];
        currentPane.Configure(Allocation.Width, Allocation.Height);

        // Trigger a full redraw
        QueueDraw();
    }
コード例 #2
0
ファイル: DemoSprites.cs プロジェクト: ARLM-Attic/wordplay
    /// <summary>
    /// Triggered when the drawing area is configured.
    /// </summary>
    private void OnConfigure(
        object obj,
        ConfigureEventArgs args)
    {
        // Pull out some fields
        EventConfigure ev     = args.Event;
        Window         window = ev.Window;
        int            width  = Allocation.Width;
        int            height = Allocation.Height;

        // Create the backing pixmap
        pixmap = new Pixmap(window, width, height, -1);

        // Update the current pane
        // TODO, there is a bug with this and I don't know why
        if (currentPane != null)
        {
            currentPane.Configure(width, height - 50);
        }

        // Mark ourselves as done
        args.RetVal = true;
    }
コード例 #3
0
ファイル: DemoSprites.cs プロジェクト: dmoonfire/wordplay
    /// <summary>
    /// Triggered when the pane list is changed.
    /// </summary>
    private void OnPaneChanged(
		object o,
		EventArgs args)
    {
        // Change the pane
        currentPane = panes[paneList.Active];
        currentPane.Configure(Allocation.Width, Allocation.Height);

        // Trigger a full redraw
        QueueDraw();
    }