Ejemplo n.º 1
0
		////////////////////////////////////////////////////////////////////////////////
		// virtual
		void onWindowGeometryChangeRequested( const EventType& eventIn)
		{
			int x, y, width, height;
			eventIn.getRectValue(x, y, width, height);

			std::cout << "Event: window geometry change requested" << std::endl;
			std::cout << "  uuid: " << eventIn.getStringValue() << std::endl;
			std::cout << "  location: (" << x << ", " << y << ")" << std::endl;
			std::cout << "  size: (" << width << ", " << height << ")" << std::endl;
		};
Ejemplo n.º 2
0
    ////////////////////////////////////////////////////////////////////////////////
    // virtual
    void onWindowGeometryChangeRequested(const EventType& event)
    {
        int x, y, width, height;
        event.getRectValue(x, y, width, height);

        // This sometimes gets called with a zero-size request.  Don't pass these along.
        if(width > 0 && height > 0)
        {
            LLPluginMessage message(LLPLUGIN_MESSAGE_CLASS_MEDIA_BROWSER, "geometry_change");
            message.setValue("uuid", event.getStringValue());
            message.setValueS32("x", x);
            message.setValueS32("y", y);
            message.setValueS32("width", width);
            message.setValueS32("height", height);
            sendMessage(message);
        }
    }