private ClassDisplay ConvertToClassDisplay(Class c) { ClassDisplay cd = new ClassDisplay { MeetingTime = $"{dao.ConvertDay(c.startDay)} {dao.ConvertTime(c.startHour, c.startMinute)} - {dao.ConvertTime(c.endHour, c.endMinute)}", Instructor = $"{c.instructorFirstMidName} {c.instructorLastName}", Campus = c.campus, Room = $"{c.building} {c.room}", IsLecture = c.isLecture }; return(cd); }
public static void native_set_clipping_region( ClassDisplay display, CompoundBox bounds ) { DrawBuffer.render(); int x = (int) bounds.property_position.property_x; int y = (int) bounds.property_position.property_y; int w = (int) bounds.property_size.property_x; int h = (int) bounds.property_size.property_y; Plasmacore.device.ScissorRectangle = new Rectangle(x,y,w,h); }
public static bool fullscreen( ClassDisplay display ) { return true; }
public static CompoundVector2 native_scale_to_fit( ClassDisplay display, int width, int height ) { Bard.log( "TODO: NativeDisplay::native_scale_to_fit()" ); return new CompoundVector2(width,height); }
public static void fullscreen( ClassDisplay display, bool setting ) { }