Sha256: c06c8ee23c0b059e577408e5c6fe66ea9f0c3ad08696a975ac19e4f023022ca4

Contents?: true

Size: 1.02 KB

Versions: 3

Compression:

Stored size: 1.02 KB

Contents

// -*- c++ -*-
#pragma once
#ifndef __REFLEX_SRC_IOS_WINDOW_DATA_H__
#define __REFLEX_SRC_IOS_WINDOW_DATA_H__


#include <map>
#include <xot/time.h>
#include <reflex/point.h>
#include <reflex/painter.h>
#include <reflex/window.h>
#include <reflex/view.h>


@class NativeWindow;


namespace Reflex
{


	typedef std::map<View::Ref, bool> CapturingViews;


	struct Window::Data
	{

		NativeWindow* native;

		String title;

		int hide_count;

		bool redraw;

		Painter painter;

		View::Ref root, focus;

		Point prev_position, prev_size;

		double prev_time_update, prev_time_draw, prev_fps;

		CapturingViews capturing_views;

		Data ()
		:	native(nil), hide_count(1), redraw(true), root(create_root_view()), prev_fps(0)
		{
			prev_time_update = prev_time_draw = Xot::time();
		}

		operator bool () const
		{
			return native;
		}

		bool operator ! () const
		{
			return !operator bool();
		}

		static View* create_root_view ()
		{
			View* v = new View;
			v->set_name("ROOT");
			return v;
		}

	};// Window::Data


}// Reflex


#endif//EOH

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
reflexion-0.1.12 src/ios/window_data.h
reflexion-0.1.11 src/ios/window_data.h
reflexion-0.1.10 src/ios/window_data.h