- public bool emit_event (Event event)
This function is used to emit an event on the main stage.
- public void ensure_current ()
This function essentially makes sure the right GL context is current
for the passed stage.
- public void ensure_redraw ()
Ensures that this is redrawn
- public void ensure_viewport ()
Ensures that the GL viewport is updated with the current stage window
size.
- public bool get_accept_focus ()
- public unowned Actor get_actor_at_pos (PickMode pick_mode, int x, int y)
Checks the scene at the coordinates x
and y
and returns a pointer to the Actor at those coordinates.
- public Color get_color ()
Retrieves the stage color.
- public Fog get_fog ()
Retrieves the current depth cueing settings from the stage.
- public bool get_fullscreen ()
Retrieves whether the stage is full screen or not
- public unowned Actor get_key_focus ()
Retrieves the actor that is currently under key focus.
- public void get_minimum_size (out uint width, out uint height)
- public bool get_motion_events_enabled ()
- public bool get_no_clear_hint ()
- public Perspective get_perspective ()
Retrieves the stage perspective.
- public RectangleInt get_redraw_clip_bounds ()
Gets the bounds of the current redraw for
this in stage pixel coordinates.
- public bool get_throttle_motion_events ()
- public unowned string get_title ()
Gets the stage title.
- public bool get_use_alpha ()
- public bool get_use_fog ()
Gets whether the depth cueing effect is enabled on
this.
- public bool get_user_resizable ()
- public void hide_cursor ()
Makes the cursor invisible on the stage window
- public bool is_default ()
Checks if this is the default stage,
or an instance created using Stage but internally using the same
implementation.
- public void queue_redraw ()
Queues a redraw for the passed stage.
- public uint8[] read_pixels (int x, int y, int width = -1, int height = -1)
Makes a screenshot of the stage in RGBA 8bit data, returns a linear
buffer with width
* 4 as rowstride.
- public void redraw ()
Forces a redraw of the entire stage.
- public void set_accept_focus (bool accept_focus)
Sets whether the this should accept
the key focus when shown.
- public void set_color (Color color)
Sets the stage color.
- public void set_fog (Fog fog)
Sets the fog (also known as "depth cueing") settings for the
this.
- public void set_fullscreen (bool fullscreen)
Asks to place the stage window in the fullscreen or unfullscreen
states.
- public void set_key_focus (Actor? actor)
Sets the key focus on actor
.
- public void set_minimum_size (uint width, uint height)
Sets the minimum size for a stage window, if the default backend uses
Stage inside a window
- public void set_motion_events_enabled (bool enabled)
Sets whether per-actor motion events (and relative crossing events)
should be disabled or not.
- public void set_no_clear_hint (bool no_clear)
Sets whether the this should clear
itself at the beginning of each paint cycle or not.
- public void set_perspective (Perspective perspective)
Sets the stage perspective.
- public void set_throttle_motion_events (bool throttle)
Sets whether motion events received between redraws should be
throttled or not.
- public void set_title (string title)
Sets the stage title.
- public void set_use_alpha (bool use_alpha)
Sets whether the this should honour
the opacity and the alpha channel of the
color
- public void set_use_fog (bool fog)
Sets whether the depth cueing effect on the stage should be enabled or
not.
- public void set_user_resizable (bool resizable)
Sets if the stage is resizable by user interaction (e.g. via window
manager controls)
- public void show_cursor ()
Shows the cursor on the stage window