Example #1
0
        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);
        }
Example #2
0
 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);
 }
Example #3
0
 public static bool fullscreen( ClassDisplay display )
 {
     return true;
 }
Example #4
0
 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);
 }
Example #5
0
 public static void fullscreen( ClassDisplay display, bool setting )
 {
 }