const {contextBridge, ipcRenderer} = require("electron");
contextBridge.exposeInMainWorld('ipcRenderer', ipcRenderer)
mainWindow = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
preload: path.join(app.getAppPath(), 'preload.js')
}
});
app_namespace.Media.circles circle = new app_namespace.Media.circles();
circle.Width = 400;
circle.Height = 400;
circle.HorizontalAlignment = HorizontalAlignment.Left;
circle.VerticalAlignment = VerticalAlignment.Top;
circle.Margin = new Thickness(pointerPosition.X - 200, pointerPosition.Y - 200, 0, 0);
Canvas.SetZIndex(circle, 2);
maingrid.Children.Add(circle);
Storyboard sb = circle.Resources["anim_pulse"] as Storyboard;
sb.Begin();
sb.Completed += (s, h) => maingrid.Children.Remove(circle);
maingrid.Children.Add(circle);
#include <iostream>
#include <string>
using namespace std;
struct Vector {
float x, y, z;
};
int main()
{
Vector v;
v.x=15, v.y=25, v.z=35;
cout << v.x << endl;
system("pause");
return 0;
}