31 #include "../View/root_view.h"
32 #include "../../Display/Window/display_window.h"
33 #include "../../Display/Window/keys.h"
38 class TextureView_Impl;
91 std::shared_ptr<TextureView_Impl> impl;
static Colorf transparent
rgba(0, 0, 0, 0).
Definition: color.h:1263
void on_key_down(const clan::InputEvent &)
void set_viewport(const Rectf &rect)
Set position and size within the canvas.
void layout_local() override
Layout local root.
2D (x,y) point structure - Float
Definition: point.h:73
2D (left,top,right,bottom) rectangle structure - Float
Definition: rect.h:485
Floating point color description class (for float).
Definition: color.h:661
void on_mouse_move(const clan::InputEvent &)
void on_mouse_down(const clan::InputEvent &)
void on_key_up(const clan::InputEvent &)
2D Graphics Canvas
Definition: canvas.h:73
Base class for views participating as a root view in the user interface.
Definition: root_view.h:38
Canvas get_root_canvas() const override
Pointf root_from_screen_pos(const Pointf &pos) override
Map from screen to local content coordinates.
static Mat4< Type > identity()
Create the identity matrix.
Definition: mat4.h:530
void set_root_needs_render() override
Signals this view needs to be rendered again.
4D matrix
Definition: mat2.h:51
void on_mouse_up(const clan::InputEvent &)
Definition: texture_view.h:41
void on_mouse_dblclk(const clan::InputEvent &)
void set_background_color(const Colorf &background_color=Colorf::transparent)
bool root_hidden() const override
Test if view is set to hidden.
friend class TextureView_Impl
Definition: texture_view.h:93
void set_clear_background(bool enable=true)
void set_event_window(const DisplayWindow &event_window, const Mat4f &transform_mouse_matrix=Mat4f::identity())
Set the window to use to automatically handle window events.
TextureView(Canvas &canvas)
void set_cursor_window(const DisplayWindow &cursor_window)
Set the window to use to automatically set the cursor (including mouse capture)
Pointf root_to_screen_pos(const Pointf &pos) override
Map from local content to screen coordinates.
void on_window_close()
User defined events. Call these if set_event_window() is not used.
Top-level window class.
Definition: display_window.h:102
void set_root_hidden(bool value) override
Hides a view from layout and rendering.
Rectf get_viewport() const
Returns the position and size within the canvas.